[External] [Xymon] Monitor Windows service if installed

Beck, Zak zak.beck at accenture.com
Tue Oct 12 09:49:06 CEST 2021


Hi

It depends on how it is stopping or not running. If the service is stopping but still shows as “started” in the Services control panel, then maybe you could monitor the process behind the service? Then it depends on whether the process is running or hung.

To monitor a process you should be able to use the PROC directive in analysis.cfg. To find the process name, go to Task Manager -> Services, right-click the service (it must be running) and select “Go to details”, it will take you to the process name on the Details tab. This process should be listed on the [procs] page and the [cpu] page (analysis.cfg will turn the procs test red if the process is not there).

Of course if the nature of “not running” is that the process is still present but doing nothing, I would think most bets are off.

Zak

From: Colin Coe <colin.coe at gmail.com>
Sent: 11 October 2021 22:54
To: Beck, Zak <zak.beck at accenture.com>
Cc: Xymon Mailing List <xymon at xymon.com>
Subject: Re: [External] [Xymon] Monitor Windows service if installed

Thanks Zak but not quote what I was looking for.

A service installed on approx half our Windows VDI nodes randomly stops.  I want the 'svcs' to go red if:
- the service is installed; and
- the service is not running.

Any ideas?



On Mon, 11 Oct 2021 at 16:16, Beck, Zak <zak.beck at accenture.com<mailto:zak.beck at accenture.com>> wrote:
Hi

https://www.xymon.com/help/manpages/man5/analysis.cfg.5.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.xymon.com_help_manpages_man5_analysis.cfg.5.html&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=7LXi29xuhqF277zepRG4bw9Nq8QKYsyY06-ASwA0-ew&s=vfq7Tu_B8mlvKnXb_1P8rzLSEBQPUn08sd9gmCwcv9c&e=>

You need to use the svc directive in analysis.cfg. You can alert on whether the service is started or stopped, and the startup setting. This should work with both the BBWIN client and the Powershell client.

Cheers

Zak

From: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> On Behalf Of Colin Coe
Sent: 11 October 2021 03:39
To: Xymon Mailing List <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [External] [Xymon] Monitor Windows service if installed

This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________

Hey all

Is there a way to alert if a particular Windows service is installed but not running?

Thanks

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________

www.accenture.com<http://www.accenture.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20211012/6deb27b0/attachment.htm>


More information about the Xymon mailing list