remote command execution failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jrflores
Posts: 1
Joined: Tue Dec 21, 2021 7:38 pm

remote command execution failed

Post by jrflores »

Hi Team.

Good day.
We've encountered this unknown alarm after patching the remote server, we've copied the publickey and execute SSH passwordless to the server from the nagios but we still encountered the same error.

Here is the error:

Remote command execution failed: Authorized users only. All activity may be monitored and reported.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: remote command execution failed

Post by mbellerue »

Hello,

Encountering this type of error message after patching a server that you're monitoring use SSH key auth sounds like the remote server may have generated new SSH keys.

One easy way to test, and potentially resolve this in the one fell swoop, is to SSH into the Nagios XI server as root or another user and sudo to root, then su - nagios, and then as the nagios user, try to SSH into the remote server.

My guess is you will get a notification that the server's identity has changed, and it will give you instructions for removing the existing identity for the server from the nagios user's known hosts file. Usually the command is something like ssh-keygen -R <RemoteServerIP>

An alternative is that the authorized_keys file for the user on the remote server has been wiped.
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