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
trrampaul
Posts: 5
Joined: Thu Aug 15, 2019 10:06 am

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

Post by trrampaul »

Good day,

I have some Linux servers returning this error (it's an inherited problem, apparently it was working before):

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

Any ideas on how to rectify? I removed the server from known_hosts etc.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

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

Post by mbellerue »

That is usually the output that SSH gives when the remote system's identity changes. You've removed the server from known_hosts, and that should do it. The next thing to try would be logging into the Nagios server, su - nagios, and then try to ssh to the server you want to monitor. That will get you the full output, and we can troubleshoot from there.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
trrampaul
Posts: 5
Joined: Thu Aug 15, 2019 10:06 am

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

Post by trrampaul »

su - nagios (from nagios server)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b7:72:4c:b6:10:f1:67:fb:49:99:f0:c6:83:76:ce:ec.
Please contact your system administrator.
Add correct host key in /home/nagios/.ssh/known_hosts to get rid of this message.
Offending key in /home/nagios/.ssh/known_hosts:43
RSA host key for 172.20.10.210 has changed and you have requested strict checking.
Host key verification failed.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

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

Post by mbellerue »

Offending key in /home/nagios/.ssh/known_hosts:43
So maybe the host key was in known_hosts twice? It's saying it can find it at line 43. I'd recommend making a backup of the nagios/.ssh/known_hosts file, delete line 43, and try again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked