check_snmp_storage.pl error: Service check did not exit properly

Chris atstake at gmail.com
Mon Feb 2 05:54:39 CET 2009


I can type the following

./check_snmp_storage.pl -H foo -C foo -m / -r -w 80% -c 90%

and get the correct information. But I'm having trouble adding it to
nagios configuration file.

My partitions are not same for every host (eg. some hosts have a /tmp
partition and some don't)

In my commands.cfg I defined:

define command{
        command_name    check_snmp_storage
        command_line    $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$
-C $ARG1$ -m $ARG2$ -w 80% -c 90% -r
        }


And I define the service in my unix.cfg file as:

define service{
        use                             generic-service
        host_name                       server_name
        service_description             Disk /
        check_command                   check_snmp_storage!foo!/
        }

When I restart Nagios, I get status critical in Nagios web interface
for this service check. Status Information says: (Service check did
not exit properly)

Could anyone please tell me what I'm doing wrong here?

Thanks.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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