Page 1 of 1

(Return code of 127 is out of bounds - plugin may be missing

Posted: Mon Dec 10, 2012 3:00 pm
by happy
Hi

I am setting up Nagios for the first time on CentOS. I am currently configured to get alerts for my Windows machines, and such. I am now trying to configure monitoring for my switch and am able to do ping test but am not able to do snmp checks:

# Service definition to monitor switch uptime using check_snmp
define service{
use generic-service
hostgroup_name switches
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}

I get error message in the web interface: (Return code of 127 is out of bounds - plugin may be missing)

It appears that I don't have check_snmp in nagios/libexec.

I tried

yum install net-snmp-utils
and started snmp service

The check_snmp does not show up under nagios/libexec ... do I need to recompile? If someone has understanding of this then can you tell me what should be done to fix it?

Many Thanks!

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Mon Dec 10, 2012 4:40 pm
by jsmurphy
If you did not have net-snmp installed when you compiled the nagios-plugins package, then you will need to recompile that package now that it is installed. Once you've done that everything should be good :)

Re: (Return code of 127 is out of bounds - plugin may be mis

Posted: Mon Dec 10, 2012 5:46 pm
by happy
Thanks ... makes sense ... I am up and running ... :)