check_snmp_storage.pl returns "Put snmp login info!"

Tom Throckmorton throck at duke.edu
Sat Jan 19 00:44:01 CET 2008


On 01/18/2008 05:39 PM, Bret Goodfellow wrote:
> Here's what I get:
> ./check_snmp_storage.pl -H somehost -C community -m /tmp -w 95 -c 98 -f
> -v
> Alarm at 15
> SNMP v1 login
> Filter : /tmp
>  .
>  .
>  .
> /tmp: 6%used(221MB/3937MB) (<95%) : OK

Reading the check_snmp_storage code again, I see that you'll get that error if
you haven't specified a community.  Looking at your check_command in the
service definition:

>>     check_command        check_snmp_storage!-C public -m /temp -w 95 -c 98 -f!

...you have an unnecessary trailing '!' on the check_command, which I think
will be silently ignored, based on your command_line def), but I can't recall
whether or not spaces in the ARGn macros are legal (I think not, but the docs
don't specify and I haven't tested).

The usual form is something like:

In your checkcommand def:

..
command_name  check_foo
command_line  $USERn$/check_foo.pl -H $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
...

In your service def:

...
host_name	somehost
check_command  check_foo!arg1value!arg2value!arg3value
...

Can you try formatting your commands as such?

-tt


-- 
Tom Throckmorton
OIT - CSI
Duke University

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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