Monitor Vmware ESX

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

gsaray101 wrote:is there any template where we logon to vcenter and read through all the vms located in that vcenter?
I'm sure someone could write a script that polled the vcentre which returned all the VMs and then created collectors for all the VMs.

To be honest if you add them one at a time and then keep on top of them its fine. We have 60 and have a process for adding new machines to the network from start to finish including adding it onto cacti.

Did you find the guide useful? Have you got it working?
ottow
Posts: 17
Joined: Mon Oct 12, 2009 6:59 am

Re: Monitor Vmware ESX

Post by ottow »

Finally, a way to monitor a ESX/ESXi host in Cacti. Thank you _very_ much for your efforts Lee!

I do have one issue though; the output from check_esx3.pl when checking NET on an individual host is always 0 for both net_receive and net_send. I can check a VM just fine, but not the actual host. All other checks against a host works fine (MEM, CPU, IO).
I downloaded the latest version of check_esx3.pl from OP5 but it made no difference...
Any ideas as to why this is happening?
This is under ESX 4.1 btw.

Otto
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

ottow wrote:Finally, a way to monitor a ESX/ESXi host in Cacti. Thank you _very_ much for your efforts Lee!

I do have one issue though; the output from check_esx3.pl when checking NET on an individual host is always 0 for both net_receive and net_send. I can check a VM just fine, but not the actual host. All other checks against a host works fine (MEM, CPU, IO).
I downloaded the latest version of check_esx3.pl from OP5 but it made no difference...
Any ideas as to why this is happening?
This is under ESX 4.1 btw.

Otto
Hi Ottow,

No problem, just thought I would share my guide with all as I had to do for my work.

Does your user have the correct rights to poll the individual net stats? What type of adapter do they have? Are you polling the Vcentre or direct esx hyper visor?

Thanks.

Lee
isse
Posts: 16
Joined: Tue Nov 25, 2008 5:50 am

Re: Monitor Vmware ESX

Post by isse »

Can this work from a Windows Cacti server ?

/N
ottow
Posts: 17
Joined: Mon Oct 12, 2009 6:59 am

Re: Monitor Vmware ESX

Post by ottow »

Lee,

I am polling the ESX host, not the Vcenter. I want to plot performance metrics for my ESX hosts and not for induvidual VMs.
I am polling as root so I don't think there should be any permission issues.
The adapters are Broadcom NetXtreme II 57711E/NC532i 10gbit.

I did find a different issue however that effectively stopped me from using this solution; the check_esx3.pl makes the CPU on my Cacti box jump to 100% when executing... It is an old box and is due for replacement so I will implement this on my next iteration of my Cacti system.

/Otto
ironique
Posts: 3
Joined: Fri Feb 25, 2011 10:44 am

Re: Monitor Vmware ESX

Post by ironique »

ldjones48 wrote:
ironique wrote:Hi ldjones48,

Have followed your guide, but when I test the check_esx3.pl to see if it returns anything, I get the following:

CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://<vCenter-IP>:443/sdk/vimService.wsdl' at /usr/share/perl/5.10/VMware/VICommon.pm line 545

Have googled around but cant seem to find a fix for it! Help!?
Hi Ironique,

Do you have any firewalls between the cacti server and your vCentre server? If so are they allowing your cacti source IP?

Lee
Actually, both the vCenter server and the cacti server are VMs in the same ESX cluster. I have 3 ESX hosts in cluster. No firewalls between them.
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

isse wrote:Can this work from a Windows Cacti server ?

/N
Hi isse,

Not sure it will to be honest. This has been written in Pearl.

Lee
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

ottow wrote:Lee,

I am polling the ESX host, not the Vcenter. I want to plot performance metrics for my ESX hosts and not for induvidual VMs.
I am polling as root so I don't think there should be any permission issues.
The adapters are Broadcom NetXtreme II 57711E/NC532i 10gbit.

I did find a different issue however that effectively stopped me from using this solution; the check_esx3.pl makes the CPU on my Cacti box jump to 100% when executing... It is an old box and is due for replacement so I will implement this on my next iteration of my Cacti system.

/Otto
Hi Otto,

What sort of stats you after for the host? CPU etc? Because if its just the network, I would suggest polling your switch for that job.

Hmmm bit weird, I did notice a spike in the cpu usage when I put it on my cacti but it has a lot of juice and can handle it fine.

Regards,

Lee
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

ironique wrote:
ldjones48 wrote:
ironique wrote:Hi ldjones48,

Have followed your guide, but when I test the check_esx3.pl to see if it returns anything, I get the following:

CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://<vCenter-IP>:443/sdk/vimService.wsdl' at /usr/share/perl/5.10/VMware/VICommon.pm line 545

Have googled around but cant seem to find a fix for it! Help!?
Hi Ironique,

Do you have any firewalls between the cacti server and your vCentre server? If so are they allowing your cacti source IP?

Lee
Actually, both the vCenter server and the cacti server are VMs in the same ESX cluster. I have 3 ESX hosts in cluster. No firewalls between them.
Can you paste the command you are running please?
ottow
Posts: 17
Joined: Mon Oct 12, 2009 6:59 am

Re: Monitor Vmware ESX

Post by ottow »

Good point about the switch Lee, I will grab the data from there instead.

Thanks!

Otto
mamema
Posts: 5
Joined: Sun Oct 25, 2009 5:12 pm

Re: Monitor Vmware ESX

Post by mamema »

ldjones48 wrote:
gsaray101 wrote:is there any template where we logon to vcenter and read through all the vms located in that vcenter?
I'm sure someone could write a script that polled the vcentre which returned all the VMs and then created collectors for all the VMs.

To be honest if you add them one at a time and then keep on top of them its fine. We have 60 and have a process for adding new machines to the network from start to finish including adding it onto cacti.

Did you find the guide useful? Have you got it working?
I have it working, with the help of your guide was no problem. Thanks for your effort. Of course now i want more performance counters like the ones in the Vcenter console...:-)

regards

mamema
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

mamema wrote:
ldjones48 wrote:
gsaray101 wrote:is there any template where we logon to vcenter and read through all the vms located in that vcenter?
I'm sure someone could write a script that polled the vcentre which returned all the VMs and then created collectors for all the VMs.

To be honest if you add them one at a time and then keep on top of them its fine. We have 60 and have a process for adding new machines to the network from start to finish including adding it onto cacti.

Did you find the guide useful? Have you got it working?
I have it working, with the help of your guide was no problem. Thanks for your effort. Of course now i want more performance counters like the ones in the Vcenter console...:-)

regards

mamema
Hi Mamema,

Good to see it was useful. Out of interest how many VM's are you polling? What is the load on your cacti server like?

Lee
dmanchanda
Posts: 1
Joined: Thu Mar 10, 2011 3:31 pm

Re: Monitor Vmware ESX

Post by dmanchanda »

Hi Lee,
My graphs for VMs are working fine, but i want to get graphs for DISC IOs, Read, Write latencies from the LUNs attached to the hypervisor (HOST). any idea on this .

Thanks in advance
Deepak
ldjones48
Posts: 17
Joined: Tue Feb 15, 2011 6:33 am

Re: Monitor Vmware ESX

Post by ldjones48 »

dmanchanda wrote:Hi Lee,
My graphs for VMs are working fine, but i want to get graphs for DISC IOs, Read, Write latencies from the LUNs attached to the hypervisor (HOST). any idea on this .

Thanks in advance
Deepak
Hi Deepak,

Not to sure on this to be honest, I know you can for each VM.

Lee
roadragedsb
Posts: 1
Joined: Wed Mar 23, 2011 4:00 pm

Re: Monitor Vmware ESX

Post by roadragedsb »

ironique wrote:
ldjones48 wrote:
ironique wrote:Hi ldjones48,

Have followed your guide, but when I test the check_esx3.pl to see if it returns anything, I get the following:

CHECK_ESX3.PL CRITICAL - Server version unavailable at 'https://<vCenter-IP>:443/sdk/vimService.wsdl' at /usr/share/perl/5.10/VMware/VICommon.pm line 545

Have googled around but cant seem to find a fix for it! Help!?
Hi Ironique,

Do you have any firewalls between the cacti server and your vCentre server? If so are they allowing your cacti source IP?

Lee
Actually, both the vCenter server and the cacti server are VMs in the same ESX cluster. I have 3 ESX hosts in cluster. No firewalls between them.
Did anyone figure this one out? I too am now having the same problem. Was running fine for some time but I recently added/upgraded a few Perl modules and started getting the error above about "Server version unavailable".

I am running the vSphere SDK for Perl 4.1 and have reinstalled this as a test and grabbed the latest check_esx3.pl.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests