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?
Test if service is paused
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Test if service is paused
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
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