Page 1 of 1

The vMA host <vMA> is NOT in the known_hosts file.

Posted: Fri Dec 11, 2015 7:32 pm
by jyoti22
Hi Team,

I am doing ESXi monitoring for VMA Host. I have done the configuration and it looks correct from XI server

Code: Select all

[root@XI ~]# ssh [email protected]
The authenticity of host '10.25.xx.xx (10.25.xx.xx)' can't be established.
RSA key fingerprint is d7:f1:97:de:b1:a5:60:8c:7f:02:cf:d4:b5:d0:dd:67.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.25.xx.xx'(RSA) to the list of known hosts.
Welcome to vSphere Management Assistant
[email protected]'s password:
Last failed login: Fri Dec 11 22:37:34 UTC 2015 from 10.105.xx.xx on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Fri Dec 11 22:40:18 2015 from 10.161.4.180
vi-admin@NagiosvMA:~> uname -a
Linux NagiosvMA 3.0.101-0.40-default #1 SMP Thu Sep 18 13:09:38 UTC 2014 (44b8c9                                                                                        5) x86_64 x86_64 x86_64 GNU/Linux
Test for plugin is also successful

Code: Select all

vi-admin@NagiosvMA:~>  ~/box293_check_vmware.pl --server 10.25.xx.xx --check vCenter_Name_Version
OK: VMware vCenter Server 5.1.0 build-1882349

[nagios@XI ~]$ /usr/local/nagios/libexec/check_by_ssh -E 1 -l vi-admin -H 10.25.xx.xx -C "~/box293_check_vmware.pl --server 10.25.xx.xx --check vCenter_Name_Version"
OK: VMware vCenter Server 5.1.0 build-1882349
However, When I added the vMA on Webconsole, I get below error

The vMA host 10.25.25.183 is NOT in the known_hosts file.
Please refer to the box293_check_vmware manual on how to configure this Nagios host to communicate with the vMA host.

Kindly help me on it. Thanks

Re: The vMA host <vMA> is NOT in the known_hosts file.

Posted: Mon Dec 14, 2015 1:42 am
by Box293
jyoti22 wrote:

Code: Select all

[root@XI ~]# ssh [email protected]
I can see you are doing this as the root user.

The box293_check_vmware manual has clear steps to setup the SSH certificates as the "nagios" user. This is very important.

Once you have resolved this, and can ssh to the vMA appliance ([email protected]) as the nagios user without being prompted for credentials follow these steps:

Establish an SSH session to this Nagios XI host as user root

Code: Select all

mkdir /var/www/.ssh
cp /home/nagios/.ssh/known_hosts /var/www/.ssh/
cp /home/nagios/.ssh/id_dsa /var/www/.ssh/
setfacl -R -m u:apache:r-x /var/www/.ssh/
exit

Re: The vMA host <vMA> is NOT in the known_hosts file.

Posted: Tue Dec 15, 2015 11:09 am
by jyoti22
Thanks Box293,
After running below commands, issue got resolved and I can configure ESXi monitoring. You can mark this as resolved.

Re: The vMA host <vMA> is NOT in the known_hosts file.

Posted: Tue Dec 15, 2015 11:29 am
by rkennedy
Glad to see this is resolved @jyoti22! I will now close this thread out, but feel free to open a new one if you ever need assistance.