Monitor Windows Servies
Posted: Mon Jul 07, 2014 5:28 pm
Hopefully this will be an easy one. I am trying to monitor a Windows service via WMI using check_xi_service_wmiplus. I have successfully detected the state of the service (started or stopped) however, regardless of the state it still shows the status of the service as OK. It should be that if the service is stopped, the status would show error (with a bright red dot) and send an alert. Below is the command used:
check_xi_service_wmiplus!'MyUser'!'MyPass$'!checkservice!-a 'MyService'
Are there additional flags that I can add to change the behavior?
Thank you!
check_xi_service_wmiplus!'MyUser'!'MyPass$'!checkservice!-a 'MyService'
Are there additional flags that I can add to change the behavior?
Thank you!