PRTG Manual: WMI Counters
The WMI monitor allows you to query custom attributes from the device using WMI and compare them to expected results.
The WMI monitor editor contains the following tabs that require configuration: Settings, Devices, Schedule, Event, and History.
The Schedule, Events and History settings are the same for all monitor types. See Configuring Monitors for more information about configuring these settings. For the settings tab see the information below.
Name
The Monitor name is the name used to refer to the monitor in the monitors list view, and in monitor events and notifications. Monitor names need not be unique, but it is recommended that you use unique names to differentiate them.
WMI Queries
The WMI Queries section is a list of the WMI queries that the monitor will perform.
Adding a WMI Query
To add a WMI Query press the add button
. An editor allowing you to configure the query is displayed. Once configured press the save button and the query is added to the list.
Editing a WMI Query
To edit a WMI Query double click the Query in the list or press the edit/configure button
. The configuration editor is displayed. To save the changes press the save button and the changes are applied.
Deleting a WMI Query
To delete a WMI Query select the query in the list and press the delete button
. The query will be removed from the list.
Configuring a WMI Query
A WMI Query contains the following settings.
WQL/Query
The WQL query to perform against the device. WQL is SQL for WMI and allows you to query information from Microsoft Windows devices on which WMI access is enabled. You can either enter your own WQL query, or click on the button next to the WQL / Query field (with the binoculars icon) to select from a list of pre-made queries. (See Microsoft’s MSDN documentation for more information about WQL.)
The WQL query that you enter should return a single value that the monitor can check for validity (as opposed to a query that returns multiple values).
Name
Name is a description of the WQL query.
Use Expected Value
If you select Use Expected Value, the monitor will compare the WMI response with the value you specify in the Expected Value field. By default, the monitor will check that the WMI response value equals the expected value. However, if you check the Verify Not Equal box, the monitor will check that the WMI response value does not equal the expected value.
Use Thresholds
Use Thresholds can be used with numeric WQL responses to ensure that the value of the response does not exceed the specified Warning and Critical levels. If the value exceeds the Warning level, the monitor will report the Warning state. If the value exceeds the Critical level, the monitor will report the Down state. (The Critical value should be greater than or equal to the Warning value.)
If you check the Alert When Less Than box, the monitor will work in the opposite direction. That is, it will ensure that the value of the response does not go lower than the specified Warning and Critical levels. If the value goes below the Warning level, the monitor will report the Warning state. If the value goes below the Critical level, the monitor will report the Down state. (In this case, the Critical value should be less than or equal to the Warning value.)
The devices tab allows you to select which devices will be monitored. To add devices to the monitor select the
button in the lower left corner. A device selector will be presented allowing you to choose one or more devices to monitor. To remove a device from the monitor select it in the grid and press the delete button
.