Monitor UPS temperature using SCOM and SNMP

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: .1.3.6.1.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:

  1. Go to Operations Manager console Authoring section and create a new Monitor

    Create SNMP Monitor

    Create SNMP Monitor

  2. Next choose SNMP and select ‘SNMP Probe Monitor’

    SNMP Probe Monitor

    SNMP Probe Monitor

  3. Give the new monitor a name, make sure you clear the enabled checkbox and save it to some unsealed MP

    SNMP General Settings

    SNMP General Settings

  4. Now enter your desired OID. in my case its going to be .1.3.6.1.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.

    SNMP OID Time Settings

    SNMP OID Time Settings

  5. 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’

    SNMP First Expression

    SNMP First Expression

  6. 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)

    SNMP Second Expression

    SNMP Second Expression

  7. According to what you have set in the previous steps, choose the proper config for the monitor’s Health state

    SNMP Health State

    SNMP Health State

  8. 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

    SNMP Alert Details

    SNMP Alert Details

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 🙂

 

 

Incoming search terms:

  • scom 2012 r2 temperature probe
  • scom 2012 snmp probe monitor
  • scom snmp temp
  • using scom to monitor ups

What do you think about this post?