Monitor Vmware ESX
Moderators: Developers, Moderators
Monitor Vmware ESX
hi all,
Does somebody try to use cacti for VMware ESX
i have the mibs, but i can not to create any monitor
some help please
10x
vladi
vladi@we-can.co.il
Does somebody try to use cacti for VMware ESX
i have the mibs, but i can not to create any monitor
some help please
10x
vladi
vladi@we-can.co.il
-
- Posts: 4
- Joined: Wed Feb 16, 2005 9:16 am
Monitor Vmware ESX
here's something i made for vmware esx. it's a host template that includes some ucd/net snmp and generic stuff, but also things you can get from the VMWARE agent extensions.
perhaps you want to try the template on some test system... works fine for me but I don't give any guarantees. import the host template into cacti (i'm using 0.8.6d for this), drop the vmware_*.xml into your resource/script_queries directory and the php files into scripts directory.
there's graphs for each virtual machine's memUtil, cpuUtil, networking (packets and traffic) and disk (read/write operations and amount of bytes read/written). any improvements are welcome. especially the php scripts are pretty ugly... probably because i've never written php before.
don't forget the configure snmp in vmware. enable it from the web browser gui and make further configuration in /etc/snmp/snmpd.conf just like you do in any ucd-snmp/net-snmp system.
perhaps you want to try the template on some test system... works fine for me but I don't give any guarantees. import the host template into cacti (i'm using 0.8.6d for this), drop the vmware_*.xml into your resource/script_queries directory and the php files into scripts directory.
there's graphs for each virtual machine's memUtil, cpuUtil, networking (packets and traffic) and disk (read/write operations and amount of bytes read/written). any improvements are welcome. especially the php scripts are pretty ugly... probably because i've never written php before.
don't forget the configure snmp in vmware. enable it from the web browser gui and make further configuration in /etc/snmp/snmpd.conf just like you do in any ucd-snmp/net-snmp system.
- Attachments
-
- vmware_esx_cacti_0.8.6d-050522.zip
- first version of the vmware esx template
- (28.35 KiB) Downloaded 12803 times
-
- screeshot
- PICT_cactiesx_01_050522.PNG (14.02 KiB) Viewed 197297 times
-
- screeshot
- PICT_cactiesx_02_050522.PNG (13.81 KiB) Viewed 197297 times
-
- Posts: 4
- Joined: Wed Feb 16, 2005 9:16 am
ah neat this saves me a bit of time. I just found the MIB's last night and was going to work on this today.
Just one suggestion on the memory part, maybe doing an inverse stack on the free memory so that it comes from the top down and not bottom up, would help to be a bit more descriptive.
Just one suggestion on the memory part, maybe doing an inverse stack on the free memory so that it comes from the top down and not bottom up, would help to be a bit more descriptive.
- Aaron Jeskey
-
- Posts: 4
- Joined: Wed Feb 16, 2005 9:16 am
the php scripts could use some work, there's way too much snmp queries being done. looking at other scripts they seem to do some fetches from the database and cache stuff - maybe that'd be a good idea. and instead of script query i guess they should be redone for the script server thing in 0.8.6.
i have no idea how well the graphing will work when you e.g. shutdown all virtual machine and restart them in another order than when you initially created the graphs. it's kinda messy figuring out which cpu, memory, disk and nic in the RESOURCE mib belongs to which VM in INFO mib. i'm not completely sure how the indexing should be done. virtual machine can be down and then it won't have anything in the RESOURCE mib and machines can have more than one disk, nic and cpu, i guess.
i haven't tested with two cpu systems. all the VMs here are single cpu.
that reversed memory is a good idea, but i couldn't figure out how to do it.
i have no idea how well the graphing will work when you e.g. shutdown all virtual machine and restart them in another order than when you initially created the graphs. it's kinda messy figuring out which cpu, memory, disk and nic in the RESOURCE mib belongs to which VM in INFO mib. i'm not completely sure how the indexing should be done. virtual machine can be down and then it won't have anything in the RESOURCE mib and machines can have more than one disk, nic and cpu, i guess.
i haven't tested with two cpu systems. all the VMs here are single cpu.
that reversed memory is a good idea, but i couldn't figure out how to do it.
I am noticing that their poll-ability does suck. Each index should have a reference to the Virtual Machine, that right there would make things a lot smoother. It seems silly that a company that really bases their product off of scalability and consolidation (both things that really need to have well defined monitoring to know) has such a poor implementation of their monitoring.
I’ll email my contacts over at VMWare and see what their plans are for upcoming versions. If I hear anything I’ll let you know.
As for now, I am not even going to bother with this, not that my Virtual Servers reboot but the machines do, and if that causes an enumeration, what’s the point of graphing?
I’ll email my contacts over at VMWare and see what their plans are for upcoming versions. If I hear anything I’ll let you know.
As for now, I am not even going to bother with this, not that my Virtual Servers reboot but the machines do, and if that causes an enumeration, what’s the point of graphing?
- Aaron Jeskey
I think I have found away around the difficulties of losing the machine index when the VM PID changes
Table .1.3.6.1.4.1.6876.2.1.1
VM ID .1.3.6.1.4.1.6876.2.1.1.1
VM Name .1.3.6.1.4.1.6876.2.1.1.2
If you did something like BSOD2600 is doing in his Win32 Process monitor ( http://forums.cacti.net/viewtopic.php?t=6661 ) to base the indexing on the name, you could relate that back to the VM PID.
Just a thought.
Table .1.3.6.1.4.1.6876.2.1.1
VM ID .1.3.6.1.4.1.6876.2.1.1.1
VM Name .1.3.6.1.4.1.6876.2.1.1.2
If you did something like BSOD2600 is doing in his Win32 Process monitor ( http://forums.cacti.net/viewtopic.php?t=6661 ) to base the indexing on the name, you could relate that back to the VM PID.
Just a thought.
- Aaron Jeskey
Host names
how can I get the graphs to post the virtual server name instead of the 'vmIDX'?
- Attachments
-
- graph
- graph.JPG (36.25 KiB) Viewed 194255 times
New template version
After investigation, available information through ESX SNMP is really poor compared to what vmkusage/vmktree collects - especialy for memory usage and CPU.
By the way, I updated the template:
- use script server method
- include ESX reserved console memory
- use VM display name as key order for CPU and Memory
- create a virtual reference (vmDisplayName/hwname) as key order for disk and NIC
- improve graph titles and data source names
I still have doubts about graph units for VM NIC traffic (kb/sec or bits/sec)
and for CPU ?? I kept the original unit/legend from the previous template.
Let me know if that is wrong.
--
Update: I have found that the "ESX Memory Usage" graph is buggy concerning the "GPRINT" legends. I will post an update next week after I check the units
By the way, I updated the template:
- use script server method
- include ESX reserved console memory
- use VM display name as key order for CPU and Memory
- create a virtual reference (vmDisplayName/hwname) as key order for disk and NIC
- improve graph titles and data source names
I still have doubts about graph units for VM NIC traffic (kb/sec or bits/sec)
and for CPU ?? I kept the original unit/legend from the previous template.
Let me know if that is wrong.
--
Update: I have found that the "ESX Memory Usage" graph is buggy concerning the "GPRINT" legends. I will post an update next week after I check the units
- Attachments
-
- vmware_esx_cacti_0.8.6i-20061109.zip
- VMWare ESX Host Template for cacti 0.8.6i
- (32.44 KiB) Downloaded 12510 times
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
thanks for these new templates !
However, here's what I get when I try to import them :
thanks for these new templates !
However, here's what I get when I try to import them :
Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]
CDEF
[success] Total All Data Sources [update]
[success] Multiply by 1024 [update]
[success] Turn Bytes into Bits [update]
[success] Total All Data Sources, Multiply by 1024 [update]
[success] Turn kilobytes into bits [update]
GPRINT Preset
[success] Normal [update]
[success] Load Average [update]
[success] Exact Numbers [update]
Data Input Method
[success] Get SNMP Data [update]
[success] Get SNMP Data (Indexed) [update]
[success] Get Script Server Data (Indexed) [update]
Data Template
[success] ucd/net - CPU Usage - System [update]
[success] ucd/net - CPU Usage - User [update]
[success] ucd/net - CPU Usage - Nice [update]
[success] ucd/net - Load Average - 1 Minute [update]
[success] ucd/net - Load Average - 5 Minute [update]
[success] ucd/net - Load Average - 15 Minute [update]
[success] Host MIB - Logged in Users [update]
[success] Host MIB - Processes [update]
[success] VMware ESX - ESX Memory - Total [update]
[success] VMware ESX - ESX Memory - Free [new]
[success] VMware ESX - ESX Memory - Console [new]
[success] Interface - Traffic [update]
[success] Interface - Errors/Discards [update]
[success] Interface - Unicast Packets [update]
[success] Interface - Non-Unicast Packets [update]
[success] ucd/net - Hard Drive Space [update]
[success] Host MIB - Hard Drive Space [update]
[success] VMware ESX - VM CPU usage [update]
[success] VMware ESX - VM NIC packets [update]
[success] VMware ESX - VM NIC traffic [update]
[success] VMware ESX - VM disk read/write operations [update]
[success] VMware ESX - VM disk read/write (kB) [update]
[success] VMware ESX - VM memory usage [update]
Graph Template
[success] ucd/net - CPU Usage [update]
[success] ucd/net - Load Average [update]
[success] Host MIB - Logged in Users [update]
[success] Host MIB - Processes [update]
[success] VMware ESX - ESX Memory Usage [update]
+ Found Dependency: (Data Template Item) esx_mem_total
+ Found Dependency: (CDEF) Multiply by 1024
+ Found Dependency: (GPRINT Preset) Normal
+ Found Dependency: (Data Template Item) esx_mem_cos
+ Found Dependency: (Data Template Item) esx_mem_free
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
[success] Interface - Traffic (bits/sec) [update]
[success] Interface - Errors/Discards [update]
[success] Interface - Unicast Packets [update]
[success] Interface - Non-Unicast Packets [update]
[success] Interface - Traffic (bytes/sec) [update]
[success] Interface - Traffic (bits/sec, 95th Percentile) [update]
[success] Interface - Traffic (bits/sec, Total Bandwidth) [update]
[success] Interface - Traffic (bytes/sec, Total Bandwidth) [update]
[success] ucd/net - Available Disk Space [update]
[success] Host MIB - Available Disk Space [update]
[success] VMware ESX - VM CPU usage [update]
[success] VMware ESX - VM NIC packets [update]
[success] VMware ESX - VM NIC traffic (bits/sec) [update]
[success] VMware ESX - VM disk read/write operations [update]
[success] VMware ESX - VM disk read/write (kB) [update]
[success] VMware ESX - VM memory usage [update]
Data Query
[success] SNMP - Interface Statistics [update]
[success] ucd/net - Get Monitored Partitions [update]
[success] SNMP - Get Mounted Partitions [update]
[success] VMware ESX - Get VM CPU usage [update]
[success] VMware ESX - Get VM NIC statistics [update]
[success] VMware ESX - Get VM disk statistics [update]
[success] VMware ESX - Get VM memory usage [update]
Host Template
[success] VMware ESX server [update]
[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]
Who is online
Users browsing this forum: No registered users and 2 guests