The confusion arises at the command line:
Code: Select all
$ echo $?
0
Here's the command as I run it at the command line:
Code: Select all
# perl /usr/local/nagios/libexec/check_http_xpath.pl -I 10.10.10.10 -l admin -a password -u /xml.asp -c '/status/perf_status/array[1]/load_percent<=90'
OK: load_percent=81|/status/perf_status/array[1]/load_percent=81
Code: Select all
Aug 5 18:03:39 monag nagios: Warning: Return code of 255 for check of service 'Array 1 Load' on host 'raid1' was out of bounds.
Aug 5 18:03:39 monag nagios: SERVICE ALERT: raid1;Array 1 Load;UNKNOWN;HARD;3;(Return code of 255 is out of bounds)
Code: Select all
# Check Array Load
define command{
command_name check_raid_array_load
command_line /usr/local/nagios/libexec/check_http_xpath.pl -H $HOSTADDRESS$ -l admin -a $ARG2$ -u /admin/xml.asp -c '/status/perf_status/array[`'$ARG3$`']/load_percent<=90' -w '/status/perf_status/array[`'$ARG3$`']/load_percent<=75'
}
Here's the service definition:
Code: Select all
define service{
use generic-service ; defined in generic
host_name raid1
service_description Array 1 Load ; give description
check_command check_raid_array_load!password!1 ; defined commandline
normal_check_interval 10 ; useful time check
}
Any ideas here?
This is on a freshly installed Nagios VM. CentOS 6.5, Nagios core 4.0.5.
Thanks.