Create a calculated SNMP Rule in SCOM

Sometimes you need a SCOM Rule which was calculated from one or more SNMP values. Maybe the values have to be calculated, cause the value is in an unhandy format or unit. In this example i will create a Rule and a Performance View to show the autonomny time for an APC UPS. The originaly readed value is in 1/100 seconds, but i want it to show in minutes.

Creating the Rule

Insert this Code to the field Script:

As you see, you have to define the SNMP OID in the script. After this you can calculate with the returned value. To get the devices ip address and communitystring, you have to define this parameters, which could be readed by the script with Wscript.Arguments:

Please note, that all parameters have to be insert as one (1) line, separated only with a space.

The evaluated values in the fields Instance and Value are derived from the vbscript’s object oBag.

Override the Rule for a group

Override the Rule to enable it for a specified group

Create the Performance View

Create a Performance View for the already defined Object name:

Leave a Reply