One of the key features of System Center 2012 Operations Manager 2012 (SCOM) is its ability to monitor SNMP devices. I have used this ability recently to monitor the temperature of the server’s room – and once the temperature goes high it sends an alert to the IT team.
To achieve this you will first need to add the device to the network discovery on SCOM. I believe that most of you already know how to do that so I will skip this step. As UPS devices are not familiar to SCOM, I had to add the OID I wish to monitor to the device. You will first need to identify which OID you need to use. You can get this information either by contacting the manufacturer of the UPS or by browsing its MIB and searching for the exact value.
In this case, I have added a ‘Gamatronic G4’ device. This device actually monitors (like SCOM does) the temperature of the servers room with two distinct sensors. It also monitors lots of other things (like water level and etc…) but I was only interested in temperature.
I have contacted the manufacturer of the device, which is located here in Israel and they were generous enough to send me the MIB. To view the MIB properly you will need some sort of a MIB browser and I highly recommend ManageEngine’s free SNMP browser.
Once I have loaded the MIB, I’ve searched for the OID of the temperature and found it pretty easily: .188.8.131.52.4.1.6050.6.3.1.1.4.1.
Now its time for some SCOM authoring. I have created a two step SNMP probe monitor. This monitor is going to do a ‘SNMP GET’ every x minutes, query a specific OID and compare its value to what I set. So here are the steps:
- Go to Operations Manager console Authoring section and create a new Monitor
- Next choose SNMP and select ‘SNMP Probe Monitor’
- Give the new monitor a name, make sure you clear the enabled checkbox and save it to some unsealed MP
- Now enter your desired OID. in my case its going to be .184.108.40.206.4.1.6050.6.3.1.1.4.1 (please note the dot in the beginning’. Also note the frequency settings. This will be checked every 2 minutes.
- Now you will have to choose your threshold. In my case, I want it to send alarm once the temperature is over 25c. when you query SNMP device, the value is identified by SCOM using ‘SnmpVarBinds/SnmpVarBind[X]/Value’
- Since this is a two step monitor, you will need to set the OID and threshold twice – once for Healthy status and the other for un-healthy status (Warning or Critical)
- According to what you have set in the previous steps, choose the proper config for the monitor’s Health state
- If you’d like to get an alert in the SCOM console, configure it here. note that in the details of the alert I add the exact temperature gathered by SCOM
The last step is to create an override for your UPS device and set its state to Enabled.
That’s it! you should now be able to receive alerts generated by your UPS 🙂