> Services > Custom Monitoring Services > Create WMI-based Custom Monitoring Services

Create WMI-based Custom Monitoring Services

WMI (Windows Management Instrumentation) is an implementation of the Web-Based Enterprise Management (WBEM) standard. It provides an access mechanism to a vast collection of Windows management data and methods on Windows Servers and Windows Workstations.

Many of the services MSP N-central is set up to monitor use WMI queries to collect performance information or asset information from Windows devices. If there is something you want to monitor that is not included in a built-in service, and it is stored in WMI, you can create your own WMI-based service.

Creating WMI-based services requires knowledge of how the WMI protocol works. For information about WMI, see the Microsoft Developers' Network online library documentation.

The following gives a very simple example which checks that the Browser service is started and retrieves information about it.

  1. Go to Administration > Service Management > Custom Services.
  2. Click Add > Service > WMI (Window Workstations and Windows Servers).
  3. Enter a Name and Description for this service.
  4. On the Queries tab, click Add .
  5. Enter Win32_Service in the WMI Class field.
  6. You now need to add the Win32_Service properties that you want to access:
    1. Double-click LoadPercentage1 and change to the first property that you want to monitor. Enter Started.
    2. To add another property, click the blue plus (+) button after Select. Change this to Status.
    3. In the same way, add Description.

  7. Set the constraint, so that this information is only retrieved where the service name is "Browser":
    1. Click the blue plus (+) button after Where.
    2. Double-click Deviceid1 and enter Name.
    3. Double-click CPU1 and change it to Browser.

    4. Click Save.

    You have created a SELECT statement to retrieve the Started, Status, and Description values WHERE the service Name is Browser.

  8. On the Data and Thresholds tab, click Add Metric. We now need to say how we want to handle this information.
    1. Enter the name you want to give the first metric. Enter Browser Started.
    2. For Variable to Use, select $Started.Win32_Service.root\cimv2.
    3. For Data Type, select Boolean.

    4. Click Save.
    5. Repeat for Status and Description, using String as the Data Type.
  9. Click on Configure Thresholds for the Browser Started metric in the Action column.
  10. Select Failed in the If Test returns False, Display State As drop-down list box.
  11. Select Normal in the If Test returns True, Display State As drop-down list box.

  12. Click Save.
  13. If you want to set the scanned frequency for this service, you can set it on the Schedule tab.
  14. Click Save.

You can add this service to a template or to any Windows server or workstation as described in Apply Custom Monitoring Services.