ESXi 5.1.0 Monitoring

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
brianstivala
Posts: 23
Joined: Fri Nov 26, 2010 5:10 am

ESXi 5.1.0 Monitoring

Post by brianstivala »

Hi All,

Can someone tell how to monitor ESXi 5.1 from cacti? I have installed cacti and somehow I have enabled SNMP on ESXi 5.1.
As per attached picture you can see that the ESXi host is UP.

I have downloaded a template to monitor this host however I'm not getting any graphs/reading -nan, see attached picture.

Has anyone succeeded monitoring an ESXi 5.1 server from cacti, maybe step by step tutorials,

Thanks!!


Regards,
Brian
Attachments
graph.png
graph.png (33.71 KiB) Viewed 6112 times
ESXi.png
ESXi.png (10.31 KiB) Viewed 6112 times
jmroth
Cacti User
Posts: 60
Joined: Sun Jan 20, 2002 7:00 pm

Re: ESXi 5.1.0 Monitoring

Post by jmroth »

AFAIK you can't do much with SNMP on ESXi.

Usually you perform monitoring via CIM on ESXi, or by the means of vCenter.

I don't know the details but for our Nagios setup I'll have to do the works in the near future.
mrsnmp
Posts: 1
Joined: Mon May 13, 2013 1:53 pm

Re: ESXi 5.1.0 Monitoring

Post by mrsnmp »

Times have changed.

ESXi 5.1 has a complete SNMPv1/v2c/v3 agent.

There is an ESX Shell 'esxcli'[1] comand to configure the agent (replaces the vicfg-snmp cmd) described here:
http://blogs.vmware.com/vsphere/2012/11 ... i-5-1.html
Or power cli: http://communities.vmware.com/thread/432820


VMware is also publishing its mib modules for all products in one place:
http://communities.vmware.com/community ... agementapi
The zip file contains an 'agentcap' mib named VMWARE-AGENTCAP-MIB
that specifies by release what the agent supports. The ESXi SNMP agent can also be polled
to ask it what MIB modules it implements:

$snmpwalk -v1 -c public localhost:1165 sysORTable
SNMPv2-MIB::sysORDescr.1 = STRING: SNMPv2-MIB, RFC 3418
SNMPv2-MIB::sysORDescr.2 = STRING: IF-MIB, RFC 2863
SNMPv2-MIB::sysORDescr.3 = STRING: IP-MIB RFC 4293
SNMPv2-MIB::sysORDescr.4 = STRING: IP-FORWARD-MIB RFC 4292
SNMPv2-MIB::sysORDescr.5 = STRING: UDP-MIB RFC 4113
SNMPv2-MIB::sysORDescr.6 = STRING: TCP-MIB RFC 4022
SNMPv2-MIB::sysORDescr.7 = STRING: ENTITY-MIB RFC 4133
SNMPv2-MIB::sysORDescr.8 = STRING: IEEE8021-BRIDGE-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.9 = STRING: IEEE8021-Q-BRIDGE-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.10 = STRING: IEEE8023-LAG-MIB, REVISION 200706200000Z
SNMPv2-MIB::sysORDescr.11 = STRING: LLDP-V2-MIB, REVISION 200906080000Z
SNMPv2-MIB::sysORDescr.12 = STRING: HOST-RESOURCES-MIB, RFC 2790
SNMPv2-MIB::sysORDescr.13 = STRING: VMWARE-SYSTEM-MIB, REVISION 201008020000Z
SNMPv2-MIB::sysORDescr.14 = STRING: VMWARE-VMINFO-MIB, REVISION 201006220000Z
SNMPv2-MIB::sysORDescr.15 = STRING: VMWARE-RESOURCES-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.16 = STRING: VMWARE-CIMOM-MIB, REVISION 201008200000Z
SNMPv2-MIB::sysORDescr.17 = STRING: VMWARE-ENV-MIB, REVISION 201005120000Z

Note that this agent provides the latest IETF standards for a complete IPv4 and IPv6 so that
might cause problems for older SNMP mgmt software (RFC 2011 or MIB2/1213).

Lastly here's a useful blog posting describing the networking MIB modules:
http://blogs.vmware.com/vsphere/2013/04 ... art-1.html

[1] ESXCLI command line poster: http://blogs.vmware.com/vsphere/files/2 ... poster.png
DraGun
Posts: 44
Joined: Thu May 24, 2012 11:21 am

Re: ESXi 5.1.0 Monitoring

Post by DraGun »

Hi,

In my case, I created Input Data Methods, with perl scripts using vSphere SDK for Perl.
And I can retrieve datas for cluster, as host and datastore.

Rgds,
Errare humanum est, perseverare diabolicum
jimbobrown
Posts: 2
Joined: Tue May 21, 2013 2:57 pm

Re: ESXi 5.1.0 Monitoring

Post by jimbobrown »

DraGun wrote:Hi,

In my case, I created Input Data Methods, with perl scripts using vSphere SDK for Perl.
And I can retrieve datas for cluster, as host and datastore.

Rgds,
Is there anyway you can share those perl scripts? I'm trying to get some monitoring going for our 5.1 environment and am at a bit of a loss.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: ESXi 5.1.0 Monitoring

Post by BSOD2600 »

brianstivala wrote:Can someone tell how to monitor ESXi 5.1 from cacti? I have installed cacti and somehow I have enabled SNMP on ESXi 5.1.
As per attached picture you can see that the ESXi host is UP.

I have downloaded a template to monitor this host however I'm not getting any graphs/reading -nan, see attached picture.
Someone needs to download the vmware MIBS, find out what fields are present, and then update the existing script(s) or create new ones. http://docs.cacti.net/ contains guides. If you're still unable to figure it out, then hire someone (like me ;) ) who can develop them for you.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: ESXi 5.1.0 Monitoring

Post by cigamit »

I am running ESXi 5.1 and monitoring most everything with the normal HOST MIB templates without much issue. A few graphs, like Linux Load Average aren't returning anything, but I get the individual CPU Loads.

On another front, I have been playing with a script that logs in and pulls all the VM information from a VCenter host itself. Its loosely based upon a few scripts that I found online, and then fixed to work properly with ESX 5.1 (works from any host, while the perl scripts out there are limited to Windows). I have been working on developing a plugin for it, but haven't updated it much recently. Namely at this point, I am going to add the ability to then add the VM directly to Cacti to monitor. But we can get really fancy from here if we wanted. I can show if CDs are mounted, and what ISO is mounted (to help discover issues with Migrations). We could essentially do anything from here that the VMWare Infrastructure client could do, such as powering on / off VMs, removing snapshots, unmounting ISO, installing VMWare Tools, etc... all just depends on powerful you want it to become.
Attachments
VCenterPlugin2.png
VCenterPlugin2.png (66.47 KiB) Viewed 5852 times
VCenterPlugin.png
VCenterPlugin.png (32.58 KiB) Viewed 5852 times
wuwentao
Posts: 3
Joined: Mon Jun 03, 2013 2:59 am

Re: ESXi 5.1.0 Monitoring

Post by wuwentao »

I'm using ESXi 5.0 now,Thanks all for the useful information.
Romavolya
Posts: 1
Joined: Thu Sep 05, 2013 2:09 am

Re: ESXi 5.1.0 Monitoring

Post by Romavolya »

cigamit wrote:I am running ESXi 5.1 and monitoring most everything with the normal HOST MIB templates without much issue. A few graphs, like Linux Load Average aren't returning anything, but I get the individual CPU Loads.

On another front, I have been playing with a script that logs in and pulls all the VM information from a VCenter host itself. Its loosely based upon a few scripts that I found online, and then fixed to work properly with ESX 5.1 (works from any host, while the perl scripts out there are limited to Windows). I have been working on developing a plugin for it, but haven't updated it much recently. Namely at this point, I am going to add the ability to then add the VM directly to Cacti to monitor. But we can get really fancy from here if we wanted. I can show if CDs are mounted, and what ISO is mounted (to help discover issues with Migrations). We could essentially do anything from here that the VMWare Infrastructure client could do, such as powering on / off VMs, removing snapshots, unmounting ISO, installing VMWare Tools, etc... all just depends on powerful you want it to become.
When you are ready to plug vcenteresxi5.1 for cacti? Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests