Page 1 of 1

Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Posted: Wed Jul 31, 2019 4:27 am
by niesten
Hi,

I'm trying to get monitoring working on our ESXi 6.5 hosts.
In my search for suitable plugins I discovered box293_check_vmware.pl (https://exchange.nagios.org/directory/P ... re/details).

Some details of my environment:
ESXI 6.5 Host (no vCenter)
Nagios Core 4.4.2 in a Docker container (jasonrivers/nagios:4.4.2) on Ubuntu Server 16.04
vMA-6.5.0.0-4569350 Host
Following these instructions https://exchange.nagios.org/components/ ... 0&cf_id=29

I got stuck on the point when to test the plugin from the vMA:

Code: Select all

 ~/box293_check_vmware.pl --server 192.168.1.210 --checkHost_OS_Name_Version
This command returns:

Code: Select all

UNKNOWN: Server version unavailable at 'https://esxihost02:443/sdk/vimService.wsdl' at /usr/lib/perl5/5.10.0/VMware/VICommon.pm line 734.
I tried also several other checks, but it always results in the same error!

Before digging into to the code and spending a lot of time, I would like to check if anyone else ran into this issue.
Thanks in advance for your help!

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Posted: Wed Jul 31, 2019 4:50 pm
by tgriep
When running the credstore_admin.pl script to add the hosts to the credstore, did they return that they were added to the store?
Can you try and re-add them and run the test again?

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Posted: Thu Aug 08, 2019 4:00 am
by niesten
I discovered several issues in my environment:
- DNS was not working (DNS servers not reachable) on the vMA. As a quickfix I put the names of the hypervisors in the hosts file
- I used a rerstricted account on the hypervisors. As a temp workaround using an admin account

These fixes solved the issue and I was able to run several checks succesfully.

I'll investigate further how to solve the issues in a sustainable way to get the monitoring production ready. But these exercises are not box293_check_vmware.pl related anymore, so I won't bother you in this forum.

Thank you for your help!

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Posted: Thu Aug 08, 2019 7:39 am
by scottwilkerson
Great!

Locking thread