Page 2 of 2

Re: Issue Establishing SSH Session With vMA Host

Posted: Tue Feb 26, 2019 1:53 pm
by hillhealthcenter
[root@nagiosxi ~]# su nagios
[nagios@nagiosxi root]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 192.168.100.88 -C "~/box293_check_vmware.pl --server 192.168.103.210 --version"
box293_check_vmware Version: 2016-10-02
[nagios@nagiosxi root]$

Re: Issue Establishing SSH Session With vMA Host

Posted: Tue Feb 26, 2019 4:48 pm
by tgriep
What I would verify that the contents of these 2 folders have the same files.

Code: Select all

/home/nagios/.ssh
/var/www/.ssh/
Run this as root in a shell.

Code: Select all

tail -f /var/log/*_log
Then test the credentials in the XI GUI and post the output from the tail command.

Re: Issue Establishing SSH Session With vMA Host

Posted: Wed Feb 27, 2019 8:46 am
by hillhealthcenter
Here are the files:

[root@nagiosxi ~]# ls /home/nagios/.ssh/
id_dsa id_dsa.pub id_rsa id_rsa.pub known_hosts known_hosts.old
[root@nagiosxi ~]# ls /var/www/.ssh/
id_dsa known_hosts
[root@nagiosxi ~]#

Re: Issue Establishing SSH Session With vMA Host

Posted: Wed Feb 27, 2019 9:51 am
by tgriep
As long as the files are the same and the contents of them are the same, that is what is needed.
Try running the tail command from my previous post and see what type of messages are generated.

Re: Issue Establishing SSH Session With vMA Host

Posted: Wed Feb 27, 2019 10:46 am
by hillhealthcenter
Troy Lea just asked to try the wizard again and surprisingly it's working! (strange) The checks are working and the wizard is working.

Re: Issue Establishing SSH Session With vMA Host

Posted: Wed Feb 27, 2019 4:12 pm
by tgriep
That is good news that is is working. Let us know if you have any further questions or that it is OK to close the post.

Re: Issue Establishing SSH Session With vMA Host

Posted: Wed Feb 27, 2019 4:32 pm
by hillhealthcenter
Thanks so much for your help. It's OK to close the post.