check_snmp_storage.pl returns "Put snmp login info!"

Bret Goodfellow Bret.Goodfellow at questar.com
Fri Jan 18 22:24:36 CET 2008


I have the snmpd running on a client box.  I have nagois monitoring this
box without any issues.  I decided to implement a new plugin I found,
check_snmp_storage.pl.  From the "nagios server" I can issue this
command to the client box, and I get a valid response, e.g.
 
[root at nagois_server ]# su - nagois
-sh-3.00$    cd /usr/lib64/nagios/plugins
-sh-3.00$    ./check_snmp_storage.pl -H star -C public -m /temp -w 95 -c
98 -f
/temp: 2%used(35MB/1984MB) (<95%) : OK | '/temp'=35MB;1885;1945:0:1984
-sh-3.00$
 
But, when I implement this plugin in Nagios, I get the following
response:  "Put snmp login info!"
Why does the plugin work from the shell prompt, but fails when run from
Nagios?
 
My service is defined as:
 
define service{
    use                            generic-service
    host_name                star
    service_description    snmp /temp Free Space
    is_volatile                    0
    check_period            24x7
    max_check_attempts    3
    normal_check_interval    5
    retry_check_interval        1
    contact_groups            linux-admins
    notification_interval        1440
    notification_period        24x7
    notification_options        w,u,c,r
    check_command        check_snmp_storage!-C public -m /temp -w 95 -c
98 -f!
    }
 
My command is defined as:
 
define command{
    command_name    check_snmp_storage
    command_line    $USER$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$
    }
 
Can anyone help me here?
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080118/757e7c4c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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