Nagios Error: “Return code of 127 is out of bounds – plugin may be missing”

If you are monitoring network devices in Nagios and you get the following error:

 “Return code of 127 is out of bounds – plugin may be missing” 
Most likely you are missing some SNMP packages. Make sure you have the following:


Run this command to make sure that you don't have them:

For RHEL\CentOS\Fedora:

rpm -qa | grep net-snmp

For Debian based distros:

dpkg --get-selections | grep net-snmp

If the command does not return anything, then you are missing all three packages. Proceed to install them using your package manager.

After you are done verify that the packages are installed:

# rpm -qa | grep net-snmp

One last step. You will need to stop Nagios to recompile and re-install the Nagios Plug-ins.

Go to the folder where the plug-ins are downloaded.

 /configure --with-nagios-user=nagios --with-nagios-group=nagios
 Make Install
 service nagios start

Tagged under: Linux, nagios, snmp, net-snmp