Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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?
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.
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?
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.
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.
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.
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.
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...
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?
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 .
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.
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.