OpsMgr Weather Monitoring MP Updated

Written by Tao Yang

I got an email from someone up in Sweden the other day in regards to the Weather Monitoring MP that I released few months ago. I’ve been made aware that a negative temperature reading is being recorded as a positive value (i.e. –8 degrees is being collected as 8 degrees).

First of all, apologies for this mistake. I wrote the PowerShell script for the probe action module back in July last year, when most of world was in summer. I didn’t even think about negative values and I couldn’t test it anyway…

Last night, I spent some time fixing the management pack. As I was fixing the code, I also found few other issues due to in consistencies in www.webservicex.net (where the MP is getting the data from). for example, some locations have decimal points in temperature value (i.e. Vancouver, Canada), some locations have multiple <Wind> tags in the return data, etc. oh well, webservicex is a free service so there’s no point bagging them for inconsistencies.

Below is a list of bugs that are fixed in this release (1.0.1.0):

  • Incorrect temperature collected when the reading is below zero
  • Incorrect temperature collected when the reading contains decimal points
  • script error when pressure reading is not within <pressure> tag (i.e. Vancouver, Canada uses <PressureTendency> tag). in this situation, pressure reading is not probed.
  • fixed wind direction and speed probe when there are multiple <Wind> tags in the result.
  • Agent task not displaying wind speed in KM/H
  • Updated temperature related performance views to display negative temperature readings.

Note:

I’ve updated below 4 temperature related performance views so they can display negative values:

image

The Y-Axis range is set to –130 to 134 (degrees) for Imperial Unit (Fahrenheit) and –90 to 57 (degrees) for Metric Unit (Celsius). According to Wikipedia, these figures are the highest and lowest temperature ever recorded on this plant. They can be customised by right clicking the view and choose “Personalize view…”:

image

the updated MP can be downloaded HERE. The download link from the original post is also updated.

3 comments on “OpsMgr Weather Monitoring MP Updated

  1. Pingback: Monitoring Weather Conditions – Using SCOM | Tao Yang's System Management Blog

  2. I modified the registry import and imported it but the agent isn’t showing up as a weather probe. Verified that the registry keys imported and exist, etc. No script errors either on the agent. Will try again tomorrow but so far no luck. Any ideas? I like the mp though. A great example of how SCOM can be extended to do so much more.

Leave a Reply