|
| View previous topic :: View next topic |
| Author |
Message |
Raimay
Joined: 12 May 2003 Posts: 4
|
Posted: Fri Nov 11, 2011 1:55 am Post subject: Test if service is paused |
|
|
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? |
|
| Back to top |
|
 |
KS-Soft Europe
Joined: 16 May 2006 Posts: 2252
|
Posted: Fri Nov 11, 2011 8:08 am Post subject: 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/mframe.htm#tests.htm#wmi
"Use Warning status if" option: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#warningstatus |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|