Re: box293_check_vmware.pl plugin timed out Nagios Core 3.4.
Posted: Fri May 22, 2015 12:09 pm
When I run the command as a nagios user (su nagios) the results are as expected. When I run the commands from root it asked for the root password for the vMA. I a trying to achieve a correct configuration so that Nagios' web interface displays the results. Nagios displays
UNKNOWN: 'Host_OS_Name_Version10124$$$$$' is not a valid --check argument!
command.cfg:
define command{
command_name box293_check_vmware
command_line $USER1$/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.xxx.xxx.xxx -C "nice -n19 ~/box293_check_vmware.pl --server $ARG1$ --check $ARG2$\"$ARG3$\"\"$ARG$$\"\"$ARG5$\"\"$ARG6$\"\"$ARG7$\"\"$ARG8$\""
}
Linux.cfg:
define service{
use local-service
host_name 10.zzz.zzz.zzz
service_description vCenter Version1
check_command box293_check_vmware!$HOSTADDRESS$!vCenter_Name_Version!!!!!!
initial_state u
max_check_attempts 3
check_interval 1440
retry_interval 7
active_checks_enabled 1
check_period 24x7
register 1
}
Check command: as nagios user (su nagios)- checks work this way, as root user they do not......
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server 10.zzz.zzz.zzz --check vCenter_Name_Version"
UNKNOWN: 'Host_OS_Name_Version10124$$$$$' is not a valid --check argument!
command.cfg:
define command{
command_name box293_check_vmware
command_line $USER1$/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.xxx.xxx.xxx -C "nice -n19 ~/box293_check_vmware.pl --server $ARG1$ --check $ARG2$\"$ARG3$\"\"$ARG$$\"\"$ARG5$\"\"$ARG6$\"\"$ARG7$\"\"$ARG8$\""
}
Linux.cfg:
define service{
use local-service
host_name 10.zzz.zzz.zzz
service_description vCenter Version1
check_command box293_check_vmware!$HOSTADDRESS$!vCenter_Name_Version!!!!!!
initial_state u
max_check_attempts 3
check_interval 1440
retry_interval 7
active_checks_enabled 1
check_period 24x7
register 1
}
Check command: as nagios user (su nagios)- checks work this way, as root user they do not......
/usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.xxx.xxx.xxx -C "~/box293_check_vmware.pl --server 10.zzz.zzz.zzz --check vCenter_Name_Version"