Page 2 of 2

Re: ESX host list from a specified DC

Posted: Tue Sep 13, 2016 7:02 pm
by anil4u_04
@tgriep , nope it give me the same error, but if we dont provide the vcenter name/ip it doesn't know the DC right ..? may be i am wrong.

Re: ESX host list from a specified DC

Posted: Wed Sep 14, 2016 9:45 am
by tgriep
I ran the command below and used the IP address for the VCenter server.

Code: Select all

/usr/local/nagios/libexec/check_esx3.pl -D 192.168.1.20 -u username -p password -l runtime -s listhost

And this is the results.

Code: Select all

CHECK_ESX3.PL OK - 3/3 Hosts up: 192.168.1.1(UP), 192.168.1.2(UP), 192.168.1.3(UP) | hostcount=3units;;
The plugin I am using might be a newer version than you are using so you could update to the same version that I used.
Here is the link to it.
https://github.com/shinken-monitoring/p ... ck_esx3.pl

When you run the command, you should use the IP address for your VCenter server.

Make sure you installed the VMWare perl SDK that is compatible with your VMWare hosts and check the log files on the VMWare servers for any errors that could help

Re: ESX host list from a specified DC

Posted: Thu Sep 15, 2016 5:02 pm
by anil4u_04
@tgriep, awesome that works, you saved my life :D

Re: ESX host list from a specified DC

Posted: Fri Sep 16, 2016 9:31 am
by tgriep
Your welcome.
Shall I close and lock up this post as solved?

Re: ESX host list from a specified DC

Posted: Fri Sep 16, 2016 6:29 pm
by anil4u_04
@tgriep, yes we can close this , again thanks a lot for your help really appreciate it. Thanks.

Re: ESX host list from a specified DC

Posted: Mon Sep 19, 2016 9:39 am
by rkennedy
Closing it up - feel free to create a new thread if you have a question in the future!