Monitor Windows Servies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
page
Posts: 13
Joined: Thu Dec 06, 2012 11:35 am

Monitor Windows Servies

Post by page »

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!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitor Windows Servies

Post by Box293 »

Add -c 0

Code: Select all

check_xi_service_wmiplus!'MyUser'!'MyPass'!checkservice!-a 'MyService' -c 0
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
page
Posts: 13
Joined: Thu Dec 06, 2012 11:35 am

Re: Monitor Windows Servies

Post by page »

That worked! I knew it was simple, thank you.
Locked