SNMP error


#1

Hi, I am trying to get nagios to monitor my switch through snmp, I have followed the nagios manual to setit all up but I get Critical under Status and under status information I get this (Return code of 127 is out of bounds - plugin may be missing). Anyone have any ideas what this is?


#2

hi!

the error “Return code of 127 is out of bounds - plugin may be missing” means that nagios can’t find your plug in; check your paths and rights :slight_smile:


#3

The paths are correct, what rights do I to set the files to?


#4

Just found out that I actually do have the plugins missing. Does anyone have these files they can send me or link me:
check_hpjd
check_snmp


#5

They come with the nagios-plugins but won’t install unless the pre-requisites are met, so you need to fix that and recompile them

from the REQUIREMENTS readme file:

check_hpjd: - Requires the NET-SNMP package available from http://net-snmp.sourceforge.net/ The snmpget binary is all that is required. ... check_snmp: - Requires the NET-SNMP package available from http://net-snmp.sourceforge.net/

Better install net-snmp I reckon

HTH

/S


#6

Please,
post the syntax command that you use.

Tnx


#7

Thanks for the help, as soon as I installed net-snmp I recompiled the nagios plugin and it work straight away :slight_smile: