ESX host list from a specified DC
Re: ESX host list from a specified DC
@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
I ran the command below and used the IP address for the VCenter server.
And this is the results.
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
Code: Select all
/usr/local/nagios/libexec/check_esx3.pl -D 192.168.1.20 -u username -p password -l runtime -s listhostAnd 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;;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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ESX host list from a specified DC
@tgriep, awesome that works, you saved my life 
Re: ESX host list from a specified DC
Your welcome.
Shall I close and lock up this post as solved?
Shall I close and lock up this post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ESX host list from a specified DC
@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
Closing it up - feel free to create a new thread if you have a question in the future!
Former Nagios Employee