check_snmp_mem.pl Numeric value for warning or critical

Greg Pangrazio pangrazi at gmail.com
Tue Jun 8 21:39:03 CEST 2010


I am trying to use the check_snmp_mem plugin v1.1 from nagios 3.2.0
installed from the Ubuntu repos.

When i run it from the command line ie:
/usr/bin/perl /usr/lib/nagios/plugins/check_snmp_mem.pl -H <HOST> -C
<COMM> -w90,20 -c95,30
i get the following response
Ram : 15%, Swap : 0% : ; OK


when i try to run it as a defined service in nagios I get
Current Status:	 UNKNOWN   (for 0d 3h 13m 25s)
Status Information:	Numeric value for warning or critical !
Usage: /usr/lib/nagios/plugins/check_snmp_mem.pl [-v] -H <host> -C
<snmp_community> [-2]
Performance Data:	(-l login -x passwd [-X pass -L <authp>,<privp>])
[-p <port>] -w <warn level> -c <crit level> [-I|-N|-E] [-f] [-m] [-t
<timeout>] [-V]

#snmp Check Mem
define command{
        command_name    check_snmp_mem
        command_line    /usr/bin/perl
/usr/lib/nagios/plugins/check_snmp_mem.pl -H $HOSTADDRESS -C $ARG1$ -w
$ARG2$,$ARG3$ -c $ARG4$,$ARG5$
        }



define service{
        host_name                       <HOST>;
        service_description             Memory;
        use                             generic-service;
        contact_groups                  v3locity;
        check_command                   check_snmp_mem!lcinfra33!90!20!95!30
        }

anyone have any suggestions?  Other snmp checks from this same family
run just fine, i am using check_snmp_storage on other hosts.
Greg Pangrazio

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list