Page 2 of 2

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Thu Nov 14, 2019 9:49 am
by IT-OPS-SYS
I followed the instructions but still failing to work.

just a simple question do we need to do anything on the vCenter 6.7 appliance side as all my setting on vma and nagios seems to be working fine.

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Thu Nov 14, 2019 1:24 pm
by mbellerue
Yes, there are steps that need to happen on the vCenter Server. I tried to copy them here, but the formatting from the PDF to the forum does not work very well. The instructions for vCenter Server start on Page 10 of this document.
https://exchange.nagios.org/components/ ... 0&cf_id=29

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Fri Nov 15, 2019 6:26 am
by IT-OPS-SYS
i am able to execute the command from the vi-admin now.

I am now getting the plugin timed out error when I am trying to run the command from the nagios server as Nagios user:

nagios@cvrmnagiosxi001 libexec] ./check_by_ssh -E 1 -l vi-admin -H <vma ip address> -C "~/box293_check_vmware.pl --server <vcenter server> --check vCenter_Name_Version".

kindly help

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Fri Nov 15, 2019 11:14 am
by mbellerue
Just to confirm, you are able to run the box_293_check_vmware.pl plugin as vi-admin from the VMA server. Is that correct?

If so, let's verify that ssh is connecting properly. Try ssh -l vi-admin <vma_ip_address> and show the full output. It should let you in without asking for a password.

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Mon Nov 18, 2019 3:43 am
by IT-OPS-SYS
i am able to run the plugin from the nagios server as well using the nagios user but when i am checking on the vmware wizard i sttill see the error

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Mon Nov 18, 2019 2:39 pm
by tgriep
When testing the connections from the Component, they are ran as the Apache user so there are some additional steps required to get the tests to work.

Establish an SSH session to this Nagios XI host as user root
Type mkdir /var/www/.ssh and press Enter
Type cp /home/nagios/.ssh/known_hosts /var/www/.ssh/ and press Enter
Type cp /home/nagios/.ssh/id_dsa /var/www/.ssh/ and press Enter
Type setfacl -R -m u:apache:r-x /var/www/.ssh/ and press Enter
Type exit and press Enter

Then see if the Test functions.

If not, tail the Apache logs by running

Code: Select all

tail -f /var/log/httpd/*_log
Click the Test Ping from the component and post the output of the tail command here.

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Wed Nov 20, 2019 5:46 am
by IT-OPS-SYS
it worked after setting the permission for the apache user.

Re: vcenter 6.7 monitoring using the box293_check plugin

Posted: Wed Nov 20, 2019 7:45 am
by scottwilkerson
IT-OPS-SYS wrote:it worked after setting the permission for the apache user.
Great!

Locking thread