Getting UNKNOWN status for DISKUSED
Posted: Fri Apr 12, 2013 5:42 pm
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
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