Plugin check_vmware_api.pl error
Posted: Tue Apr 12, 2016 4:10 am
Hi Guys,
I am testing check_vmware_api.pl plugin but it is shows me an error, if I test the plugin looks like is working but when i configure the command file and added the service to the host, it shows this error on nagios gui.
Error:
Usage: check_vmware_api.pl -D
Plugin test:
root@NagiosCore4:/usr/local/nagios/libexec# ./check_vmware_api.pl -H 192.168.160.xx -u xxxx -p xxxx -l cpu
CHECK_VMWARE_API.PL OK - cpu usage=1508.00 MHz (2.90%) | cpu_usagemhz=1508.00MHz;; cpu_usage=2.90%;;
Command Define:
define command{
command_name check_vmware_api_host_cpu_usage
command_line $USER1$/check_vmware_api.pl -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l cpu -s usage -w $ARG1$ -c $ARG2$
}
Service Define
# check_vmware_api.pl
define service{
use local-service
host_name c1b1
service_description CPU_USAGE
check_command check_vmware_api_host_cpu_usage! -H 192.168.160.xx -u xxxx -p xxxx -l cpu
}
I need some help on this.
Br,
I am testing check_vmware_api.pl plugin but it is shows me an error, if I test the plugin looks like is working but when i configure the command file and added the service to the host, it shows this error on nagios gui.
Error:
Usage: check_vmware_api.pl -D
Plugin test:
root@NagiosCore4:/usr/local/nagios/libexec# ./check_vmware_api.pl -H 192.168.160.xx -u xxxx -p xxxx -l cpu
CHECK_VMWARE_API.PL OK - cpu usage=1508.00 MHz (2.90%) | cpu_usagemhz=1508.00MHz;; cpu_usage=2.90%;;
Command Define:
define command{
command_name check_vmware_api_host_cpu_usage
command_line $USER1$/check_vmware_api.pl -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l cpu -s usage -w $ARG1$ -c $ARG2$
}
Service Define
# check_vmware_api.pl
define service{
use local-service
host_name c1b1
service_description CPU_USAGE
check_command check_vmware_api_host_cpu_usage! -H 192.168.160.xx -u xxxx -p xxxx -l cpu
}
I need some help on this.
Br,