check_snmp pulgin not found giving "Return code 127


I have installed Nagios using the Quickstart Installation Guide. After a succesful installation I am attemping to set up a switch monitor. I am getting a “Return code of 127 is out of bounds - plugin may be missing”. After hours of seraching the FAQ’s and this forum I determined that the plugin check_snmp is missing in the /usr/local/nagios/libexec directory. I ran a find on check_snmp and got this results:

[root@ndt ~]# find / -name ‘check_sn*’

I have re-downloaded the plugins and re-installed. I restarted Nagios with command /etc/rc.d/init.d/nagios reload
Reults of the find where the same.

Since I am new to unix/linx I am at aloss as to how to get the check_snmp plugin installed.
Can anyone take mercy on me and help me out. I would greatly appreciate it.




Have you installed Net-SNMP?

[root@localhost nagios-plugins-1.4.11]# cat REQUIREMENTS
        - Requires the NET-SNMP package available from





I downloaded and installed … 2.4.tar.gz
using the instructions form the quick start “Compile and Install Nagios Plugins” :

I will download the Net-SNMP and see if that will work.

Thanks for the help.


After I downloaded and installed the net-snmp I re-installed the nagios plug-ins. check_snmp is now in the /usr/local/nagios/libexec directory. Now I am getting NO data received from the host, so I know it is working, just have to check the switch.cfg file for any errors. Thanks all. Appreciate the help