Test if service is paused

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Raimay
Posts: 4
Joined: Mon May 12, 2003 6:00 pm

Test if service is paused

Post by Raimay »

I want to check if a windows service has the status paused.
How can i make a check if e.g. service netlogon is not stopped only paused?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Test if service is paused

Post by KS-Soft Europe »

You may use WMI test to check Windows services.
E.g. Add new WMI tets, set WMI Query like the following:
select State from Win32_Service WHERE CAPTION="Net Logon"
And set condition:
Alert if any State contains Pause
With this settings, WMI test will return Bad status, when Net Logon service is paused.
You may also use "Use Warning status if" option with expression like the following:
'%SuggestedReply%'=='Stopped'
With this additional setting, test will return also Warning status when service will be stopped.

Please check the manual or visit our web site for more information:
WMI test: http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi
"Use Warning status if" option: http://www.ks-soft.net/hostmon.eng/mfra ... ningstatus
Post Reply