start nagios with nagios -v nagios.cfg You have a error in you config file. The above command will provide you with a detailed output, and you will see in what line the error is .. Go and fix it and retry.
On Fri, Jul 24, 2009 at 12:44 PM, Dayo Adewunmi <contactd...@gmail.com>wrote: > Hi > > I tried adding either of these lines to nagios.cfg: > > cfg_file=/usr/local/nagios/etc/objects/ebola.cfg > cfg_dir=/usr/local/nagios/etc/objects/desktops > > And when I restart nagios this is what happens: > > "Running configuration check... CONFIG ERROR! Restart aborted. Check your > Nagios configuration." > > > Matej wrote: > >> Check the Configuration tab in nagios web interface, there it shows the >> "live" config aka. what it read and loaded. >> You probably need to add the new config to your nagios.cfg file, so >> Nagios can read it. You also have a parameter in nagios.cfg, that you can >> set to a folder, and it reads all *.cfg files in that folder, thaat way you >> dont need to specify all config files seperatly. >> >> On Fri, Jul 24, 2009 at 11:52 AM, Dayo Adewunmi >> <contactd...@gmail.com<mailto: >> contactd...@gmail.com>> wrote: >> >> Hi all >> >> I copied localhost.cfg to create an object definition for a new host: >> http://pastebin.com/f21c9df1c >> >> No matter how often I restart nagios, the new host isn't being >> monitored. >> >> Best regards >> >> Dayo Adewunmi >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> <mailto:Nagios-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> >> >> -- >> lp >> Matej >> > > -- lp Matej
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null