check_snmp_storage plugin - 126 return code

James Pratt jpratt at norwich.edu
Mon Apr 20 21:55:10 CEST 2009



> -----Original Message-----
> From: lance raymond [mailto:lraymond at weatherflow.com]
> Sent: Monday, April 20, 2009 3:42 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_snmp_storage plugin - 126 return code
> 
> 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
> }
> 
> 

Just a shot in the dark, but you are missing the "-C community" in your
command definition above in commands.cfg. Could that be your issue?

Also, try running the same check as the nagios user via :

su - nagios -c "command to test here"

and see if you get the same result/126 return code...

hth,

jamie

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