Monitor Vmware ESX

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

Moderators: Developers, Moderators

Post Reply
proseba
Posts: 1
Joined: Fri Oct 21, 2011 1:53 pm

Re: Monitor Vmware ESX

Post by proseba »

hello all,

the guide is very good, everything went well except that when testing the script, they indicate that connect ok, but I did not give details, check firewall and all is well .. the problem is that it displays data, look:

CHECK_ESX3.PL OK - "machine" net Receive = 0.00 KB / s, send = 0.00 KB / s | = 0.00KB net_receive;; net_send = 0.00KB;;

. / machine my_ip net_vm esxiograph.sh user "password"
read: 0 write: 0

My cacti version is 0.8.7d

vCenter version: 4.1.0

Any ideas on who may be going on ...

if anyone can help I would appreciate :roll:
noshybabs
Posts: 29
Joined: Wed Sep 02, 2009 8:38 am

Re: Monitor Vmware ESX

Post by noshybabs »

Has anyone got this working for ESX5 yet?
Cacti Version 0.8.7e
Cacti OS win32
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.2.x
PHP Version 5.2.9
X505
Posts: 39
Joined: Fri Jun 29, 2007 3:53 pm
Contact:

Re: Monitor Vmware ESX

Post by X505 »

noshybabs wrote:Has anyone got this working for ESX5 yet?
Mine is :)
http://www.hypervisor.fr/?p=3361
grax
Posts: 5
Joined: Fri Feb 27, 2009 9:02 am

Re: Monitor Vmware ESX

Post by grax »

X505 wrote:
noshybabs wrote:Has anyone got this working for ESX5 yet?
Mine is :)
http://www.hypervisor.fr/?p=3361
i have ESX 5
and i have empty graphs..
i don,t know, why.
NICJerry
Posts: 7
Joined: Wed Nov 16, 2011 5:43 pm

Re: Monitor Vmware ESX

Post by NICJerry »

I am also having trouble with getting zeroes back in the response:

CHECK_ESX3.PL OK - "XXX" net receive=0.00 KB/s, send=0.00 KB/s | net_receive=0.00KB;; net_send=0.00KB;;

The really strange thing is this works for some VMs, but not others. I have set up nine VMs using the same method, and 3 of the 9 aren't returning results at all. All numbers are 0.00 (as opposed to -nan). Some of these VMs are even on the same ESX host, yet one works and the other doesn't. Is there any explanation for that? Any help would be appreciated. Thanks. This is Cacti 0.8.7g, vSphere 4.1. I don't see any version for check_esx3.pl.
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re: Monitor Vmware ESX

Post by morgentau »

X505 wrote:
noshybabs wrote:Has anyone got this working for ESX5 yet?
Mine is :)
http://www.hypervisor.fr/?p=3361
Hello,

i followed your instructions and finally with a bit of fiddling i got this to work on the Cluster via vSphere Client/Host. It also gets me some data on the single ESXi Hosts... except for the VMFS Usage i get 100% only...

I just thougt it would be nice to be able to see how many VM's are on each single ESXi Host... instead of just the total on the Cluster.

I wonder how the CPU and Network counts are calculated. I've got a 2 CPU, 4 Core, 2 network Interfaces each for the VM's, the ESXi Host and for the vSPhere Client Network...

Just to show how it looks... but still, the unsolved issue with the VMFS. I did not find out how to show the 8 individuall arrays which are attached to the ESXi system.
esxi_cluster.jpg
esxi_cluster.jpg (133.94 KiB) Viewed 11935 times
esxi_host.jpg
esxi_host.jpg (101.97 KiB) Viewed 11935 times
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
vanhaakonnen
Posts: 2
Joined: Mon Dec 05, 2011 5:14 am

Re: Monitor Vmware ESX

Post by vanhaakonnen »

Hi,

i also wanted to monitor my esxi 5 host with cacti with the scripts from http://www.hypervisor.fr/?p=3361.

My problem is that all graphs shows "0" or "100%" full on the datastore. This seems to be the values if the scripts doesn´t work correctly.

When I try to run one of these scripts directly on the server I get something like this:

Code: Select all

root@monitoring:/usr/share/cacti/site/scripts# ./vi_host_cpu.pl 
Can't locate VMware/VIRuntime.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at /usr/share/cacti/site/scripts/check_vmware.pl line 39.
BEGIN failed--compilation aborted at /usr/share/cacti/site/scripts/check_vmware.pl line 39.
percent:0.00
I have a Ubuntu 11.10 64Bit and installed (I think) the vmware SDK for perl. What goes wrong here? Any ideas? :-?
wcpon
Posts: 16
Joined: Thu Dec 22, 2011 11:32 pm

Re: Monitor Vmware ESX

Post by wcpon »

Is there anyone try to monitor VMware ESXi?
Hope someone can guide me ~

Thanks.
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

Re: Monitor Vmware ESX

Post by gsaray101 »

How is everybody's experience that uses cacti to collect stats from ESX hosts? Any pointers would be really appreciated?
NICJerry
Posts: 7
Joined: Wed Nov 16, 2011 5:43 pm

Re: Monitor Vmware ESX

Post by NICJerry »

Has anyone seen problems with the results from this routine? I have it installed and apparently working, but the totals and 95th percentile do not seem accurate. The graphs are claiming terabytes worth of data being transferred in one month, which is not possible, I have 95th percentile readings that are higher than the max value which is also not possible. Can anyone offer any insight here? If I can provide more helpful info, let me know. Thanks.

The total in is: Total In: |sum:auto:current:2:auto|
The total out is: Total Out: |sum:auto:current:2:auto|
95th percentile is: (|95:bits:6:max:2| mbit in+out)
example.png
example.png (35.64 KiB) Viewed 11409 times
tgreer
Posts: 1
Joined: Fri Jan 20, 2012 8:15 pm

Re: Monitor Vmware ESX

Post by tgreer »

NICJerry wrote:Has anyone seen problems with the results from this routine? I have it installed and apparently working, but the totals and 95th percentile do not seem accurate. The graphs are claiming terabytes worth of data being transferred in one month, which is not possible, I have 95th percentile readings that are higher than the max value which is also not possible. Can anyone offer any insight here? If I can provide more helpful info, let me know. Thanks.

The total in is: Total In: |sum:auto:current:2:auto|
The total out is: Total Out: |sum:auto:current:2:auto|
95th percentile is: (|95:bits:6:max:2| mbit in+out)
Hi

I was wondering if thats with ESX5?

I'm struggling to get info from ESX5. All I want is network info for the VMs.

Can anyone give some guidance?

Thanks
NICJerry
Posts: 7
Joined: Wed Nov 16, 2011 5:43 pm

Re: Monitor Vmware ESX

Post by NICJerry »

Is anyone still using these scripts/templates? Are there better ones out there?

I swear, these numbers are not right. I tried removing the CDEF functions and the numbers got a little closer, changed the 95th percentile to bytes instead of bits, but the totals are still WAY off. As you can see from the pic below, the Cacti graph is showing much higher results than the vSphere server.

Anybody?
getGraph2.png
getGraph2.png (36.29 KiB) Viewed 11322 times
wica128
Posts: 3
Joined: Fri May 11, 2012 9:10 am

Re: Monitor Vmware ESX

Post by wica128 »

Hi,

I don't like to see passwords in 'ps' or logs.
So I wanne mention the option -f /some/file/auth, that check_esx3.pl has.

content of /some/file/auth
username=root
password=iForget

I have include my esxiograph.sh
Attachments
esxiograph.sh
esxiograph.sh using auth file
(4.21 KiB) Downloaded 762 times
dt2310
Posts: 2
Joined: Mon May 28, 2012 9:23 pm

Re: Monitor Vmware ESX

Post by dt2310 »

please ,what will write. TKS!
Attachments
1.jpg
1.jpg (68.82 KiB) Viewed 9951 times
Khue
Posts: 45
Joined: Fri Jun 29, 2012 3:43 pm

Re: Monitor Vmware ESX

Post by Khue »

I've been trying to get this to work with my vCenter. Progress is going slow, but steady. I finally dead ended. Here is my situation:

Code: Select all


root@cacti:/var/data/cacti/scripts# perl check_esx3.pl -H vcenter.domain -N servername -u readonlyservice -p Passw0rdsareforchumps -l NET
Can't locate Nagios/Plugin.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at check_esx3.pl line 31.
BEGIN failed--compilation aborted at check_esx3.pl line 31.

root@cacti:/var/data/cacti/scripts#
I read though the post a bit and found this:
Echinocactus wrote: You have to install the CPAN Plugin:

perl -MCPAN -e 'install Nagios::Plugin'
I then proceeded to do this but I got a TON of errors. I am not really sure where to go from here. Any suggestions are welcome. Thanks guys!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest