Hello,
I'm stuck with the following error in the cacti.log
I have already suppressed the known_hosts file from my nagios user in the /var/log/nagios.ssh dierectory and repopulated using the ssh nagios@myserver
but still the same error.
06/24/2020 07:20:15 PM - CMDPHP: Poller[0] Host[88] DS[610] CMD: perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.125, output: Remote command execution failed: Host key verification failed.
Can anybody help me to resolve this problem please ?
Remote command execution failed
Moderators: Developers, Moderators
-
- Posts: 34
- Joined: Tue Jun 08, 2010 9:11 am
Re: Remote command execution failed
I created a data input method to graph datas from a remote server.
I can ssh myserver without authentication from the nagios user, and the command perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.221 is successfull
Can somebody tell me wich user is sending the command to the remote server, is it the nagios user or the cacti user.
I don't understand why I still have this message.
Please Help
I can ssh myserver without authentication from the nagios user, and the command perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.221 is successfull
Can somebody tell me wich user is sending the command to the remote server, is it the nagios user or the cacti user.
I don't understand why I still have this message.
Please Help
-
- Posts: 34
- Joined: Tue Jun 08, 2010 9:11 am
Re: Remote command execution failed
I believe my problem is due to the fact the the cacti user is requesting for an authentication with the nagios user on the remote server instead of the cacti user.
I did a chmod 700 on the .ssh directory for nagios and cacti on the remote server, and chmod 600 for the known_hosts and authorize_keys, but nothing better.
Below is my test with cacti account and nagios account, as you can see the connection with cacti account is loging to the remote server with the nagios account: how do I solve this problem ?
I did a chmod 700 on the .ssh directory for nagios and cacti on the remote server, and chmod 600 for the known_hosts and authorize_keys, but nothing better.
Below is my test with cacti account and nagios account, as you can see the connection with cacti account is loging to the remote server with the nagios account: how do I solve this problem ?
[root@GLNXNGIOS ~]# su cacti
bash-3.2$ perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.221
nagios@128.1.110.221's password:
0
bash-3.2$ exit
exit
[root@GLNXNGIOS ~]# su nagios
sh-3.2$ perl /usr/share/cacti/scripts/check_VLNXDIAP_working_users.pl 128.1.110.221
0
sh-3.2$
-
- Posts: 34
- Joined: Tue Jun 08, 2010 9:11 am
Re: Remote command execution failed
Regenerating a pair key with ssh-keygen connected with the cacti user and then copying the public key with ssh-copy-id -i id_rsa.pub nagios@vlnxdiapx solved the problem.
Who is online
Users browsing this forum: No registered users and 3 guests