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

I'm trying to moitoring switch with nagios. I had made everithing like in this tutorial: http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html, 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
1  
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
add comment

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

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

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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