Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
niesten
Posts: 2
Joined: Tue Apr 07, 2015 4:50 am

Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Post 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!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
niesten
Posts: 2
Joined: Tue Apr 07, 2015 4:50 am

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring ESXi 6.5 hosts using box293_check_vmware.pl

Post by scottwilkerson »

Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked