Page 1 of 1

Adding first switch

Posted: Fri Apr 01, 2011 3:48 am
by ditlevw
Hi guys

I've just installed my first Nagios-server and I'm having some issues with adding my first switch.

I've removed the "#" from the "cfg_file=/usr/local/nagios/etc/objects/switch.cfg"-line ind the config-file.

I've also edited the section with hostname, alias and IP. When I try to restart the service, I get this error:

root@Nagios:~/downloads/nagios-plugins-1.4.11# /etc/init.d/nagios restart
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.


What am I doing wrong?

Re: Adding first switch

Posted: Mon Apr 04, 2011 12:39 am
by ditlevw
I found the error in "cfg_file=/usr/local/nagios/etc/objects/switch.cfg". Apparently there are more than one line with hostname-info to change.

Sorry for the inconvenience.

/Ditlevw