check_snmp_storage plugin - 126 return code

lance raymond lraymond at weatherflow.com
Mon Apr 20 21:42:20 CEST 2009


Not sure what's wrong, seems simple enough.  I am using the following as 
a guide on this plugin 
(http://nagios.manubulon.com/index_commands.html#storage)
 From the command line on the nagios server I can get it to work;

perl check_snmp_storage.pl -H x.x.x.x -C community -m / -w 90 -c 95 -r
/: 67%used(99233MB/147706MB) (<90%) : OK


I have the following 2 things setup.. in commands.cfg;
define command{
   command_name check_snmp_storage
   command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -m $ARG1$ 
-w $ARG2$ -c $ARG3$ $ARG4$
}


And the server has the following;
define service{
        use                             local-service
        host_name                 cs0
        service_description   Root / partition
        check_command       check_snmp_storage!/!90!95!-r
}



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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