Page 1 of 1

Can't monitor a switch fault in nagios.cfg

Posted: Fri Jan 21, 2011 4:15 am
by Stijn
Hi,

I'm new to nagios, and yesterday I installed and configured nagios Core on an ubuntu machine like in the manual.
Now today I added a switch to monitor and in the manual there stands that I need to remove the "#" from the next line #cfg_file=/usr/local/nagios/etc/objects/switch.cfg, in the file vi /usr/local/nagios/etc/nagios.cfg. Ok I did that and added my switch like told in the manual.
Than I need to reload nagios and I get an error that nagios can't be restarted cuss the "#" is away from the next line.... . And when I set the "#" back on that line, than nagios reload without a problem. What do i do wrong?

Re: Can't monitor a switch fault in nagios.cfg

Posted: Fri Jan 21, 2011 8:08 am
by Stijn
I fixed this problem :-)

Re: Can't monitor a switch fault in nagios.cfg

Posted: Fri Jan 21, 2011 2:46 pm
by rdedon
Great! It sounds like you just had to do some editing to get it running.