ESX host list from a specified DC

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.
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Re: ESX host list from a specified DC

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

Re: ESX host list from a specified DC

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Re: ESX host list from a specified DC

Post by anil4u_04 »

@tgriep, awesome that works, you saved my life :D
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: ESX host list from a specified DC

Post by tgriep »

Your welcome.
Shall I close and lock up this post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Re: ESX host list from a specified DC

Post by anil4u_04 »

@tgriep, yes we can close this , again thanks a lot for your help really appreciate it. Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ESX host list from a specified DC

Post by rkennedy »

Closing it up - feel free to create a new thread if you have a question in the future!
Former Nagios Employee
Locked