|
From: Dan D. <hok...@gm...> - 2005-05-16 19:09:59
|
>=20 > My understanding is that I should be able to put hostname.cfg files into = a > directory that I've identified with the cfg_dir directive > "cfg_dir=3D/usr/local/nagios/etc/hosts". Correct. I do the same, but for entire sites in individual files.=20 Here is the example in nagios.cfg: >=20 > # You can also tell Nagios to process all config files (with a .cfg > # extension) in a particular directory by using the cfg_dir > # directive as shown below: >=20 > #cfg_dir=3D/usr/local/nagios/etc/servers > #cfg_dir=3D/usr/local/nagios/etc/printers > #cfg_dir=3D/usr/local/nagios/etc/switches > #cfg_dir=3D/usr/local/nagios/etc/routers Remove the '#' from the beginning of the 'cfg_dir' lines...=20 As to the error about the 'cfg_file=3D/usr/local/nagios/etc/hosts.cfg' line= ,=20 make sure that no such line actually exists in your nagios.cfg file. It it= =20 does, either remove it or put a '#' at the beginning of the line. -Dan |