The hydroxyphosphates with formula Co1.7M0.3(OH)PO4 ( M = Ni, Cu) have been prepared from hydrothermal synthesis. The compounds have been characterized by X-ray powder diffraction and spectroscopic measurements. Diffuse reflectance data of both phases show bands belonging to the two chromophores, octahedral and trigonal bipyramidal, of the Co(II) ions together with others associated to the chromophores of nickel(II) and copper(II) ions. Magnetization measurements of Co1.7Ni0.3(OH) PO4 show the presence of two maxima at ca. 62 and 5 K, respectively. The first peak was attributed to a three-dimensional antiferromagnetic ordering and the second one reveals the existence of a spin glass-like state. This behaviour was confirmed from the ac measurements obtained at different frequencies and applied fields. The Co1.7Cu0.3(OH) PO4 phase exhibits only one maximum at 65 K in both chi(m) and ac measurements associated to the three-dimensional antiferromagnetic interactions; however, the existence of spin glass behaviour is not observed. ZFC-FC curves for the cobalt - nickel and cobalt - copper compounds show irreversibility just below T-N indicating the existence of higher spin decompensations than in the Co-2(OH)PO4 phase. This difference and its influence in the magnetic anomalies observed at low temperatures is the more important effect in the magnetic measurements of the ordered Co-2(OH) PO4 phase substituted at about 15% of the Co2+ (S = 3/2) by Ni2+ (S = 1) or Cu2+ (S = 1/2) ions. The origin of the frustration, which is necessary to achieve a disordered ground state, is investigated in these kinds of spin glass compounds. Taking into account the possible magnetic exchange pathways, which are essential to install competition and ensure cooperativeness of the freezing process, correlations between structural and magnetic properties have been performed.