|
Huntland Services Ltd Tel: +44 (0)1392-490518
|
Using WMI Numerical Data
|
|||||||||||||||||||||||||
|
Quite apart form the wealth of information available through
Performance Monitor objects and counters, WMI also provides a mechanism to
reach similar information and provide it to MOM. In fact there is almost complete overlap of functionality here and
there are pros and cons for using either. WMI builds classes under the
Root\cimv2\Win32_PerfRawData class to model all the available performance
monitor objects and counters on the system (Win2k and above
only). There is hardly any point in using these as they are much
more simply accessed using MOM's Performance Monitor interfaces and in any
case return raw data which needs complicated further processing. Of more value is using normal WMI classes that may model numerical
data. Especially if this data changes over time. Examples might
include watching a particular Registry Key where a numerical value is stored
or periodically checking the estimated charge remaining in a UPS device
(Win32_UninterruptiblePowerSupply.EstimatedChargeRemaining if the UPS
device has a WMI provider). However there are more clear cut cases. For example SMS records
the available free space on the drive where it has installed components on a
Site System. The Administrator does not have to know which drive this
is. The information is reported in the 'Free' column of the Site System
Status node in the SMS Administrator's Console. SMS has its own
mechanism to warn when space is getting low, but you have to be working on
the console to see it. Using a WMI numerical provider with MOM provides
a mechanism for remote automatic monitoring. This example show how to complete the WMI Numerical data provider
dialog box:
Having created the provider you can incorporate it into a normal
Performance Processing rule. The result can either be a straight
forward sampled output under the All Performance node where you can draw
graphs, or used in a threshold comparison to generate an alert. |
||||||||||||||||||||||||||