monitoring "manual" windows services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

monitoring "manual" windows services

Post by MichielvM »

Hi guys,

This post is not a problem, just an open discussion (if this needs to be posted elsewhere please let me know)

The question is this: An administrator wants to monitor a windows service which is in a Manual state instead of Automatic.
(in this particular case the service is controlled by another application)

My input would be not to monitor it at all, because you just can't tell whether the service went down intentionally and also when it will be up again.
Does anyone have any experience with this?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: monitoring "manual" windows services

Post by sreinhardt »

I agree that there is not a great way to determine, without sifting through event logs, how or why a service stopped. You could create a service for the secondary one, that this depends on on the windows server, and set the currently requested service as a dependent of the one not being requested to be monitored. At least this way, you can make sure not to get alerts for the manual service when the other service is down. Might that suite what you are looking for?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MichielvM
Posts: 160
Joined: Thu Oct 24, 2013 3:48 am

Re: monitoring "manual" windows services

Post by MichielvM »

In my case it's a citrix server controlling a printer service on demand.
Citrix start/stops the spooler service as needed.

The Citrix services are monitored already.
IMHO there's really no reason or way to monitor this.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitoring "manual" windows services

Post by scottwilkerson »

You could use the negate plugin to check that it is not running, basically giving the reverse of normal
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: monitoring "manual" windows services

Post by WillemDH »

If you know how the Citrix server stops the service, or which eventlog, or registry is changed, you could write a wrapper Powershell script somehow which will only alert when the print spooler service is down when it is not stopped by Citrix.

Grtz
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitoring "manual" windows services

Post by abrist »

Any word OP?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked