| Monitor vCenter Appliance via SNMP |
|
As we all rely more and more on vCenter for managing datacenters with VMware ESX hosts and for delivering our virtual desktops, we have to be sure vCenter services are running smootly. So monitoring is important. First there was only vCenter on a Windows host. Works fine. Monitoring was possible because you controlled the Windows box and the database. Now there is the new vCenter Virtual Appliance running on SuSE 11.1. Very interesting and probably the way to go in the future. But how to monitor the vCenter services? For monitoring I mostly use Simple Network Monitoring Protocol (SNMP). Really great, not simple. The vCenter appliance has not got the SNMP daemon installed by default, so some activity is required. Glad we have root access to the machine. Here we go: Check the Suse version: # cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 Add the repository of this Suse version to YAST, the Suse software manager tool. Use SSH to login to the vCenter server. # yast
The software is installed. Quit YAST.
Allow the monitoring server to connect to the snmpd daemon: # vi /etc/hosts.allow sshd: ALL : ALLOW snmpd: ALL : ALLOW ALL: KNOWN Start the SNMP daemon and make sure it starts after a reboot: # service snmpd start # service snmpd on Try a snmp quey from the monitoring server: # snmpwalk -v2c -c public vcenter01.r71.nl SNMPv2-MIB::sysDescr.0 = STRING: Linux vcenter01.r71.nl 2.6.32.29-0.3-default SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-TC::linux DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (169539) 0:28:15.39 SNMPv2-MIB::sysContact.0 = STRING: Roderick SNMPv2-MIB::sysName.0 = STRING: vcenter01.r71.nl SNMPv2-MIB::sysLocation.0 = STRING: R71 .. It works!
Now configure your monitoring tool. If you don't have a good monitoring tool (shame on you) then get 360° Viewpoint!
|