Status Information "null" in check_wmi_plus
Posted: Mon Sep 03, 2012 8:04 am
Hello everyone, I'm new to the world of nagios ... and certainly because of this I can not run the plugin "check_wmi_plugin." The problem was always returns (null) in "Status Information". The "commands" in "commands.cfg" it defined like this:
"define command {
command_name check_wmi_plus
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m $ARG1$ -u $USER8$ -p $USER9$ -s $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$
}
"define command {
command_name check_win_uptime
command_line command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkuptime -u $USER8$ -p $USER9$ -w $ARG1$ -c $ARG2$ $ARG3$ $ARG4$ $ARG5$
} "
Instead of "service" in "service.cfg" in this way
"define service {
use generic-service
host_name myserver.domain.it
service_description Win Uptime
check_command check_win_uptime! 10min:! 20min:
normal_check_interval 10
retry_check_interval 1
} "
Running ". / Check_wmi_plus.pl myserver.domain.it-H-u administrator-p password-w m checkuptime 10min: 20min-c:" everything works.
What's wrong?
"define command {
command_name check_wmi_plus
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m $ARG1$ -u $USER8$ -p $USER9$ -s $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$
}
"define command {
command_name check_win_uptime
command_line command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkuptime -u $USER8$ -p $USER9$ -w $ARG1$ -c $ARG2$ $ARG3$ $ARG4$ $ARG5$
} "
Instead of "service" in "service.cfg" in this way
"define service {
use generic-service
host_name myserver.domain.it
service_description Win Uptime
check_command check_win_uptime! 10min:! 20min:
normal_check_interval 10
retry_check_interval 1
} "
Running ". / Check_wmi_plus.pl myserver.domain.it-H-u administrator-p password-w m checkuptime 10min: 20min-c:" everything works.
What's wrong?