I am relatively new at this, however i am running the nagios plugins on ubuntu 12.04 server have everything installed, configured CPETEST(remote computer) on the Nagios Server, and i get Remote command execution failed: @@@@@@@@@@@@@@@@@ as my return status info, i can manually call check_ssh_reverse and on both the server and the remote pc i can ssh in. Any ideas on what could be causing the plugins to return this type? Any help or suggestions i greatly appreciated.
Thanks.
Remote command execution failed: @@@@@@@@@@@@@@@@@
Re: Remote command execution failed: @@@@@@@@@@@@@@@@@
if you su to the nagios user and run the plugin are you also able to run it without encountering a problem?
Re: Remote command execution failed: @@@@@@@@@@@@@@@@@
Yes, i found out the problem, i didn't have the -E flag in my ssh connection back
The Original command looked like this:
$USER1$/check_by_ssh -H localhost -l nagios -t 30 -o StrictHostKeyChecking=no -i /home/nagios/.ssh/id_dsa -C "/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0" -p $ARG1$
Then I added the -E argument and change the order of the variables so that the final version looks like:
$USER1$/check_by_ssh -E -p $ARG1$ -H localhost -l nagios -t 30 -o StrictHostKeyChecking=no -i /home/nagios/.ssh/id_dsa -C "/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0"
The Original command looked like this:
$USER1$/check_by_ssh -H localhost -l nagios -t 30 -o StrictHostKeyChecking=no -i /home/nagios/.ssh/id_dsa -C "/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0" -p $ARG1$
Then I added the -E argument and change the order of the variables so that the final version looks like:
$USER1$/check_by_ssh -E -p $ARG1$ -H localhost -l nagios -t 30 -o StrictHostKeyChecking=no -i /home/nagios/.ssh/id_dsa -C "/usr/local/nagios/libexec/check_load -w 5.0,4.0,3.0 -c 10.0,6.0,4.0"
Re: Remote command execution failed: @@@@@@@@@@@@@@@@@
Glad you worked it out, thanks for sharing the solution 