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?
Adding first switch
Adding first switch
Ditlev - Nagios newbie
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
Re: Adding first switch
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
Sorry for the inconvenience.
/Ditlevw
Ditlev - Nagios newbie
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)