SSH-Proxy - command not working in Nagios XI
Posted: Thu Feb 28, 2013 3:43 pm
I'm evaluating Nagios XI and found an issue attemtpting run the following service command. I'm using the VMWARE version.
$USER1$/check_by_ssh -H $HOSTADDRESS$ $ARG1$ $ARG2$
$ARG1 = -C "/usr/local/nagios/libexec/check_users -w 1 -c 2"
My first error, not certain why Nagios XI is goign to the www directory, the documentation "Nagios XI – Monitoring Hosts Using SSH" didn't have this as part of the setup.
OUTPUT: Remote command execution failed: Could not create directory '/var/www/.ssh'.
I created the .ssh directory on nagios server and gave nagios group access.
Now getting error when I run the test using "Test Check Command" from Service properties page.
NAGIOS XI OUTPUT: Remote command execution failed: Host key verification failed.
Copied certs to /var/www/.ssh and gave nagios group rw access
Now getting error:
NAGIOS XI OUTPUT: Remote command execution failed: Permission denied, please try again.
I am able to run the command from the Nagios server command line, so my ssh certs are good.
COMMAND LINE OUTPUT:
[nagios@testserver libexec]$ ./check_by_ssh -H insight-test -C "/usr/local/nagios/libexec/check_users -w 1 -c 2"
USERS WARNING - 1 users currently logged in |users=1;1;2;0
Thx,
Don
$USER1$/check_by_ssh -H $HOSTADDRESS$ $ARG1$ $ARG2$
$ARG1 = -C "/usr/local/nagios/libexec/check_users -w 1 -c 2"
My first error, not certain why Nagios XI is goign to the www directory, the documentation "Nagios XI – Monitoring Hosts Using SSH" didn't have this as part of the setup.
OUTPUT: Remote command execution failed: Could not create directory '/var/www/.ssh'.
I created the .ssh directory on nagios server and gave nagios group access.
Now getting error when I run the test using "Test Check Command" from Service properties page.
NAGIOS XI OUTPUT: Remote command execution failed: Host key verification failed.
Copied certs to /var/www/.ssh and gave nagios group rw access
Now getting error:
NAGIOS XI OUTPUT: Remote command execution failed: Permission denied, please try again.
I am able to run the command from the Nagios server command line, so my ssh certs are good.
COMMAND LINE OUTPUT:
[nagios@testserver libexec]$ ./check_by_ssh -H insight-test -C "/usr/local/nagios/libexec/check_users -w 1 -c 2"
USERS WARNING - 1 users currently logged in |users=1;1;2;0
Thx,
Don