Page 1 of 1

Plugin check_snmp_mem

Posted: Sat Mar 05, 2011 6:57 am
by Servo
Hello,

I import check_snmp_mem.pl into nagios XI
from adm cmd i test this plugin:
./check_snmp_mem.pl -H ip_address_of_cisco -C My_community -I -c80 -w 90
and test is OK - Processor:5%,I/O:35% : 7% : ; OK

But at Nagios XI i have a problem:
i'm create command:
check_snmp_cisco_mem
$USER1$/check_snmp_cisco_mem.pl -H $HOSTADDRESS$ -C My_community -I -c $ARG1$ -w $ARG2$

When i apply this command to service, at first check this service going to critical with error:
(Return code of 127 is out of bounds - plugin may be missing)

Re: Plugin check_snmp_mem

Posted: Mon Mar 07, 2011 12:17 pm
by mguthrie
Can you also post the service definition that you're using with this check?

A couple of possibilities:
- Is the check plugin returning only a single line of information?
- Is the check plugin exiting with an exit code between 0-3 (looks like "exit(1);" in the code).

Re: Plugin check_snmp_mem

Posted: Tue Mar 08, 2011 10:37 am
by tonyyarusso
Err, is the plugin executable called check_snmp_mem.pl or check_snmp_cisco_mem.pl? You're using both, and didn't include any evidence so far that the latter exists.