Monitor Vmware ESX
Moderators: Developers, Moderators
VM Host Stats
Does anyone know if there are any plugins like the ones at the bottom of this page? http://www.zenoss.com/product/screenshots for monitoring VM's
I'm also running on v 8.7a and I got this going. The only thing I've noticed is the cpu graphs for majority of the vmware servers look like it's graphing at 100% instead of the correct cpu utilization. Only a handful are graphing correctly. Any one else experiencing this?
*Update - Never mind....it looks like it's going over 100%.
*Update - Never mind....it looks like it's going over 100%.
- Attachments
-
- correct graph 1.JPG (137.46 KiB) Viewed 28729 times
-
- correct graph 2.JPG (139.64 KiB) Viewed 28729 times
-
- different graph.JPG (146.9 KiB) Viewed 28729 times
Last edited by karias on Mon Dec 03, 2007 2:55 pm, edited 1 time in total.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
could you please post pictures as png / jpeg ?
Thanks in advance !
could you please post pictures as png / jpeg ?
Thanks in advance !
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Hi there,karias wrote:I'm also running on v 8.7a and I got this going. The only thing I've noticed is the cpu graphs for majority of the vmware servers look like it's graphing at 100% instead of the correct cpu utilization. Only a handful are graphing correctly. Any one else experiencing this?
I experienced the same problem with ESX 3.0.1. It disappeard with 3.0.2.
Cheers
Manfredo
No Items in Associated Data Queries
Hi,
I imported the ESX template successfully and added one of our ESX hosts. SNMP is configured on it and snmpwalk retrieves data successfully:
But the problem is when I add the ESX Host inside cacti, there are no items listed for the data queries ( see the attached picture ).
Verbose Query works and tells the following:
I don't know where the problem could be.
Hope that somebody can help me with this problem!
Thanks,
Matthias
I imported the ESX template successfully and added one of our ESX hosts. SNMP is configured on it and snmpwalk retrieves data successfully:
Code: Select all
# snmpwalk -v2c -c blabla myhost .1.3.6.1.4.1.6876.2.1.1.1
SNMPv2-SMI::enterprises.6876.2.1.1.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.6876.2.1.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.6876.2.1.1.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.6876.2.1.1.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.6876.2.1.1.1.4 = INTEGER: 4
SNMPv2-SMI::enterprises.6876.2.1.1.1.5 = INTEGER: 5
SNMPv2-SMI::enterprises.6876.2.1.1.1.6 = INTEGER: 6
SNMPv2-SMI::enterprises.6876.2.1.1.1.7 = INTEGER: 7
SNMPv2-SMI::enterprises.6876.2.1.1.1.8 = INTEGER: 8
SNMPv2-SMI::enterprises.6876.2.1.1.1.9 = INTEGER: 9
SNMPv2-SMI::enterprises.6876.2.1.1.1.10 = INTEGER: 10
SNMPv2-SMI::enterprises.6876.2.1.1.1.11 = INTEGER: 11
SNMPv2-SMI::enterprises.6876.2.1.1.1.12 = INTEGER: 12
SNMPv2-SMI::enterprises.6876.2.1.1.1.13 = INTEGER: 13
SNMPv2-SMI::enterprises.6876.2.1.1.1.14 = INTEGER: 14
SNMPv2-SMI::enterprises.6876.2.1.1.1.15 = INTEGER: 15
Verbose Query works and tells the following:
Code: Select all
+ Running data query [15].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/vmware_mem.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query displayname'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query vmid'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query gueststate'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query vmstate'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_vmware_mem.php 10.1.1.201 9 2:161:500:nagios:::MD5::[None] query total'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/vmware_mem.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/vmware_mem.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/vmware_mem.xml'
Hope that somebody can help me with this problem!
Thanks,
Matthias
- Attachments
-
- cacti_esx.JPG (132.03 KiB) Viewed 28502 times
I am having the same problem with the CPU Graphs. I did update my scripts and I checked them twice to make sure the config.php was changed to global.php.
Matt, are you using Ping or SNMP to verify your servers are up? I had to switch from Ping to SNMP and that fixed the problem.
Also, it appears that ESX3 has removed the VMWare specific SNMP subagents that allow you to pull data from the VM's. This seems to be a big part of the reason a lot of us are having problems.
You can use the SDK and pull the data directly from the VCMS server or directly from an ESX server.
More details: http://unnoc.org/
Maybe someone would like to take a stab at converting the VI Perl Toolkit calls to work with Cacti? http://sourceforge.net/projects/viperltoolkit/
Matt, are you using Ping or SNMP to verify your servers are up? I had to switch from Ping to SNMP and that fixed the problem.
Also, it appears that ESX3 has removed the VMWare specific SNMP subagents that allow you to pull data from the VM's. This seems to be a big part of the reason a lot of us are having problems.
You can use the SDK and pull the data directly from the VCMS server or directly from an ESX server.
More details: http://unnoc.org/
Maybe someone would like to take a stab at converting the VI Perl Toolkit calls to work with Cacti? http://sourceforge.net/projects/viperltoolkit/
Also, I am trying to track users logged in to get an idea of how many people are using the VM's. It appears to be incrementing instead of clearing the data .
Example, if I log in today, then log again tomorrow, it shows 2 users logged in. If I log in the following day, it shows 3 users logged in. Anything we can do to fix that?
DOH! It's a Unix tool and I'm using it on Windows. Wonder if I can fix that somehow....
Example, if I log in today, then log again tomorrow, it shows 2 users logged in. If I log in the following day, it shows 3 users logged in. Anything we can do to fix that?
DOH! It's a Unix tool and I'm using it on Windows. Wonder if I can fix that somehow....
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
Hi all,
I have a question. How can i see the Data Stores that my ESX server is using? I have 3 146GB data stores, and none of them show up in my graphs. I have tried the following Data queries and they all show me 0 rows:
Unix - Get Mounted Partitions
ucd/net - Get Monitored Partitions
SNMP - Get Mounted Partitions returns 6 rows, which are my partitions that ESX is installed on, but i see nothing for monitoring the Datastore drives.
Anyone have any thoughts? I can send an SNMP walk if that would help
app
I have a question. How can i see the Data Stores that my ESX server is using? I have 3 146GB data stores, and none of them show up in my graphs. I have tried the following Data queries and they all show me 0 rows:
Unix - Get Mounted Partitions
ucd/net - Get Monitored Partitions
SNMP - Get Mounted Partitions returns 6 rows, which are my partitions that ESX is installed on, but i see nothing for monitoring the Datastore drives.
Anyone have any thoughts? I can send an SNMP walk if that would help
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
About VM CPU usage
Hello,
According to VMware MIB, the CPU utilization is "Time the virtual machine has been running on the CPU (seconds)."
So the CDEF "CPU Seconds As Percentage" should be something like "cdef=CURRENT_DATA_SOURCE,300,/"
But resulting graph are "wrong" compared to esxtop output. I guess the number of hardware CPU should be considered to get a relevant percentage.
On two servers, it seems "/ 10" give a percentage closed to the reality, but why ??
Another improvement point: network counters has been deprecated and new 64 bits counters (High Capacity) has been defined. See /usr/lib/vmware/snmp/mibs/VMWARE-RESOURCES-MIB.mib for details.
Yves
According to VMware MIB, the CPU utilization is "Time the virtual machine has been running on the CPU (seconds)."
So the CDEF "CPU Seconds As Percentage" should be something like "cdef=CURRENT_DATA_SOURCE,300,/"
But resulting graph are "wrong" compared to esxtop output. I guess the number of hardware CPU should be considered to get a relevant percentage.
On two servers, it seems "/ 10" give a percentage closed to the reality, but why ??
Another improvement point: network counters has been deprecated and new 64 bits counters (High Capacity) has been defined. See /usr/lib/vmware/snmp/mibs/VMWARE-RESOURCES-MIB.mib for details.
Yves
vmfs partitions are not visible in the service console except with vdf - I guess it comes from a file in /proc/vmware/apperrault wrote: SNMP - Get Mounted Partitions returns 6 rows, which are my partitions that ESX is installed on, but i see nothing for monitoring the Datastore drives.
Anyone have any thoughts? I can send an SNMP walk if that would help
These partitions are not published in the vmware MIB either (see content in /usr/lib/vmware/snmp/mibs)
So, I would answer - no, it is not possible to monitor easily the datastores through SNMP.
-
- Posts: 13
- Joined: Thu Nov 22, 2007 5:05 am
ESX 3.5
Has anyone got round to updating this for ESX 3.5 yet?
It does work for the base ESX server but monitoring for each of the VM's doesn't work - looks like the mib's have changed.
Might get round to doing it myself if no-one else already has..
It does work for the base ESX server but monitoring for each of the VM's doesn't work - looks like the mib's have changed.
Might get round to doing it myself if no-one else already has..
I have ESX 3.5.0 and cacti version 0.8.7a and it works well !
and on cacti:
Code: Select all
# cat /etc/snmp/snmpd.conf
$# Sample snmpd.conf containing VMware MIB module entries.
# This is a simple snmpd.conf that may help you test SNMP.
# It is not recommended for production use. Consult the
# snmpd.conf(5) man pages to set up a secure installation.
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rocommunity public
trapcommunity public
trapsink localhost
trapsink 192.168.1.200
# VMware MIB modules. To enable/disable VMware MIB items
# add/remove the following entries.
dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so
# Allow Systems Management Data Engine SNMP to connect to snmpd using SMUX
smuxpeer .1.3.6.1.4.2.675.10824.1
- Attachments
-
- cacti_esx.GIF (22.89 KiB) Viewed 27344 times
Who is online
Users browsing this forum: No registered users and 5 guests