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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
happy
Posts: 20
Joined: Wed Nov 28, 2012 4:37 pm

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

Post 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!
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

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

Post 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 :)
happy
Posts: 20
Joined: Wed Nov 28, 2012 4:37 pm

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

Post by happy »

Thanks ... makes sense ... I am up and running ... :)
Locked