Return Code of 127 is out of bounds - Check_SNMP


I am completely new to Linux, and recently decided to setup a Nagios box for monitoring. I am trying to configure it to watch my switches, using the default setup for now. The service details I get back say that the Ping is working, but Uptime and Port1 Link Status both say Return code of 127 is out of bounds - plugin may be missing. I just installed Nagios, so the version should be up to date, Plugins version is 1.4.10. I don’t see the check_snmp plugin listed in /usr/local/nagios/libexec. Is this the problem? and if so, how can I go about fixing it?

Any help would be greatly appreciated.



Check the REQUIREMENTS doc in the plugin source directory. It looks like you may not have net-snmp installed . If not, you will need to install net-snmp and recompile the plugins.


I think i got check_snmp, however it is listed as check_snmp.c, and I cannot get it to compile. gcc turns out a laundry list of errors.