Monitor service status
- Last UpdatedApr 24, 2025
- 3 minute read
The following procedure details how to set up a service status monitor.
To monitor service status
-
On the desktop, double-click the Windows PowerShell for DNA shortcut.
Windows PowerShell for DNA opens.
-
To execute the Config WMI Monitor, execute the following commands:
set-silo Common
ConfigWMIMonitor
The OASyS DNA WMI Monitor Wizard opens.

-
Select Next.
The Select Action page appears.

-
Select either Add a new configuration or Edit existing configuration, and then select Next.
The Select the Namespace/Class to monitored page appears.

-
Make the following selections:
-
From the Namespace pane, select CIMV2.
-
From the Available classes pane, select Win32_Service.
-
-
Select Next.
The Configure Class page appears.

-
Select Next.
The Choose Fields page appears.

-
From the Available Class Fields pane, select State, and select the
icon to add it to the Configured Class Fields pane.
Note: For monitoring a Windows service state, no calculated field is required.
-
Select Next.
The Define Health State page appears.

-
In the Configured Fields pane, select State.
-
Configure the following fields:
-
In the Bad Health State Condition field, enter State = 'Stopped' or State = 'Unknown'.
-
In the Bad Health State Message field, enter Service Stopped.
-
In the Warning Health State Condition field, enter State <> 'Running'.
-
In the Warning Health State Message field, enter Service State Unknown.
Note: Conditions are written using WMI Query Language (WQL) (Microsoft SQL for WM). For more information on using SQL, refer to the Windows SDK documentation (https://docs.microsoft.com/en-us/windows/win32/wmisdk/wql-sql-for-wmi).
-
-
Select Next.
The Revise Query page appears.

-
To view a list of service names, select Retrieve sample data using the Basic Query.
The FilterResults dialog box appears.

-
Take note of the name of services that you want to monitor (for example, pibufss and pilogsrv), and select Cancel.
The Revise Query page appears.

-
In the Where Clause field, enter Name = 'pibufss' or Name = 'pilogsrv'.
-
To verify the services you want to monitor, select Retrieve sample data with where clause.
The FilterResults dialog box appears.

-
Select Cancel.
-
Select Next on all subsequent pages, and then select Finish.