Remote command execution failed: @@@@@@@@@@@@@@@@@

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Jaharagon
Posts: 2
Joined: Tue Jul 10, 2012 12:56 pm

Remote command execution failed: @@@@@@@@@@@@@@@@@

Post by Jaharagon »

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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@

Post by jsmurphy »

if you su to the nagios user and run the plugin are you also able to run it without encountering a problem?
Jaharagon
Posts: 2
Joined: Tue Jul 10, 2012 12:56 pm

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@

Post by Jaharagon »

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"
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Remote command execution failed: @@@@@@@@@@@@@@@@@

Post by jsmurphy »

Glad you worked it out, thanks for sharing the solution :)
Locked