vcenter 6.7 monitoring using the box293_check plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: vcenter 6.7 monitoring using the box293_check plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
IT-OPS-SYS
Posts: 184
Joined: Sun Jan 07, 2018 12:56 pm

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by IT-OPS-SYS »

it worked after setting the permission for the apache user.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: vcenter 6.7 monitoring using the box293_check plugin

Post by scottwilkerson »

IT-OPS-SYS wrote:it worked after setting the permission for the apache user.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked