Page 1 of 1

Getting UNKNOWN status for DISKUSED

Posted: Fri Apr 12, 2013 5:42 pm
by stecino
Hi All

Here is what I have

define command {
command_name check_netapp
command_line $USER1$/check-netapp2.pl -H $HOSTADDRESS$ -v $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ -o $ARG5$ -t $ARG6$
}

define service{
use generic-service
hostgroup_name prod_netapp
service_description Disk - /vol/proddoc02_vol02/.snapshot
check_command check_netapp!DISKUSED!80!90!public!/vol/proddoc02_vol02/!25
notifications_enabled 1
}

When I run it from the command line, it returns the results

[root@stageutil01 libexec]# ./check-netapp2.pl -H prodnetapp01 -v DISKUSED -w 80 -c 90 -C public -o /vol/proddoc02_vol02/ -t 25
DISKUSED OK - /vol/proddoc02_vol02/ – total: 1550.00 Gb – used 1023.04 Gb (66.00%) – free: 526.96 Gb|NetApp /vol/proddoc02_vol02/ Used Space=1023.04GB;Warning=1240.00GB;Critical=1395.00GB;Total=1550.00GB

But nagios does the polling I get UNKNOWN status

Anything I'm doing wrong? I have another netapp device that I'm running these command definition with different disk volume path and it's working fine.

Thanks in advance

Re: Getting UNKNOWN status for DISKUSED

Posted: Mon Apr 15, 2013 10:24 am
by scottwilkerson
I would check to see that the the

Code: Select all

 use lib
line toward thew top of the script has your correct path to your plugin directory

Re: Getting UNKNOWN status for DISKUSED

Posted: Mon Apr 15, 2013 12:30 pm
by stecino
The script it'self works fine against another netapp device, but for this one it fails.

I also checked the perl script, it's properly defined

use lib "/usr/local/nagios/libexec";

Re: Getting UNKNOWN status for DISKUSED

Posted: Mon Apr 15, 2013 12:52 pm
by slansing
Is it possible the information you are querying for on the other device is not present? Since the plugin does work for one of your devices it must be on the end of the device, or something to that end. What are the differences?

Re: Getting UNKNOWN status for DISKUSED

Posted: Wed Apr 17, 2013 8:00 pm
by stecino
In my host definition I was pointing to a wrong network interphase. So one I switched to right IP it worked

Re: Getting UNKNOWN status for DISKUSED

Posted: Thu Apr 18, 2013 9:43 am
by yancy
stecino,

Thanks for letting us know it's resolved.

-Yancy