Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to monitoring switch with Nagios. I had made everything like in this tutorial, but I'm getting Status Information in Nagios browser window like this:

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

So I had checked the google and found that I need to install check_snmp plugin. So how can I do it?

share|improve this question

migrated from stackoverflow.com Dec 22 '10 at 3:15

This question came from our site for professional and enthusiast programmers.

check_snmp is IIRC installed by default. check /usr/lib/nagios/plugins. Also what brand of switch are you trying to monitor? –  Zypher Dec 22 '10 at 3:21

3 Answers 3

That error message is very misleading, as you will get it for a number of issues that have nothing to do with a missing plug-in. Most commonly you will receive it if Nagios cannot communicate with the target. Start by checking that the Nagios server has permission to read SNMP data from the switch.

share|improve this answer

Thanks for useful link! I uncommented this line

# cfg_file = / usr / local / nagios / etc / objects / switch.cfg nagios.cfg

in and it worked. It was my mistake.

Alsa in directory /usr/local/nagios/libexec was missing file check_snmp, so I've made download of plugin from heare http://pkgs.org/requires/nagios-plugins-snmp and installed it

share|improve this answer

It would be helpful if you'd provided the relevant parts of the config.

If you followed the instructions you referenced, you probably already have check_snmp built and installed (by default it's in /usr/local/nagios/libexec) however if the Makefile can't find the required libs at compile time it won't build the executable. Go have a look.

If it has been built, did you add an entry to commands.cfg for the script?

See also http://nagios.sourceforge.net/docs/3_0/monitoring-routers.html

If you're still stuck show us the relevant command, host and service entries from your config

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.