check_snmp

I love NAGIOS

It’s so well documented, the documentation is always up to date etc.
I hope one day I will be able to say that without being sarcastic.
Honestly - I’ve never seen anything like it.

NAGIOS 3.0.3
OS = MANDRIVA 2009

PROBLEM:

  1. After installation check_snmp is defined in commands.cfg.
  2. It’s also defined in switch.cfg:

define service{
use generic-service ; Inherit values from a template
host_name switch7
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}

3.So you expect it to work ? HAHAHA. Are you stupid or what ?

Error: Service check command ‘check_snmp’ specified in service ‘Port 1 Link Status’ for host ‘switch7’ not defined anywhere!

Interesting isn’t it ?

Does anyone knows where to find UP TO DATE documentation which will tel me how to fix it ?

Reagrds

PEter

Hi Peter,

I would say the solution is obvious.

Your definition looks ok to me (being a complete Nagios/Linux newbie) aside from there is no space between the ! and the -c.

However your error is relating to a port status check and not an uptime check. Go back to your switch.cfg and comment out (#) the lines that relate to the checking of the status of port 1. That should resolve the issue…

Aside from that I am sure there are others who will know a lot more than me!