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!
Monitor Windows Servies
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Monitor Windows Servies
Add -c 0
Code: Select all
check_xi_service_wmiplus!'MyUser'!'MyPass'!checkservice!-a 'MyService' -c 0As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Monitor Windows Servies
That worked! I knew it was simple, thank you.