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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

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

Post by jyoti22 »

Thanks Box293,
After running below commands, issue got resolved and I can configure ESXi monitoring. You can mark this as resolved.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
Locked