Issue Establishing SSH Session With vMA Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: Issue Establishing SSH Session With vMA Host

Post 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]$
Thanks so much,
Tom
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue Establishing SSH Session With vMA Host

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: Issue Establishing SSH Session With vMA Host

Post 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 ~]#
Thanks so much,
Tom
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue Establishing SSH Session With vMA Host

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: Issue Establishing SSH Session With vMA Host

Post 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.
Thanks so much,
Tom
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue Establishing SSH Session With vMA Host

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: Issue Establishing SSH Session With vMA Host

Post by hillhealthcenter »

Thanks so much for your help. It's OK to close the post.
Thanks so much,
Tom
Locked