Monitoring VMWare vSphere with SNMP Traps

Enable SNMP Trap on ESXi 4/5

Use the vicfg-snmp command from Perl SDK:

# send traps to centreon.example.com at standard udp port 162 and community public
vicfg-snmp --server esxi.example.com --portnumber 443 --username root --password rootpass \
 -t centreon.example.com@162/public

# start the snmp service:
vicfg-snmp --server esxi.example.com --portnumber 443 --username root --password rootpass --enable

Test with:

vicfg-snmp --server esxi.example.com --portnumber 443 --username root --password rootpass --test

You should see something like these in /var/log/snmptt.log

Wed Jan  4 10:47:27 2012 .1.3.6.1.6.3.1.1.5.2 0 "Status Event" 192.168.1.253 - SNMP is reinitializing

Install VMWare MIBs to NET-SNMP

A copy of the MIB

Extract the mibs to /usr/share/snmp/esx.

Add mibs to snmp system, edit /etc/snmp/snmp.conf :

mibdirs +/usr/share/snmp/esx
nagios/centreon/monitoring_vmware_vsphere_with_snmp_traps.txt · Last modified: 2012-01-05 12:01 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0