[Xymon] [External] Monitor Windows service if installed
Colin Coe
colin.coe at gmail.com
Tue Oct 12 00:38:21 CEST 2021
Thanks but how to make it go only if it is installed *and* not running?
On Tue, 12 Oct 2021 at 06:25, Tom Schmidt <tom at 4schmidts.com> wrote:
> Colin,
> An example from what I use to monitor that the Xymon Powershell
> Client service is running, I have this in the server/etc/analysis.cfg
> file:
>
> # Windows Powershell client - WinPSClient
> CLASS=powershell
> SVC XymonPSClient startup=automatic status=%(start|started)
>
> If the XymonPSClient service is not running or is not configured to
> automatically start, then the alert for the service will be red. If
> the service is not installed, it likewise will go red.
>
> Tom
>
> On Mon, Oct 11, 2021 at 3:55 PM Colin Coe <colin.coe at gmail.com> wrote:
> >
> > 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> wrote:
> >>
> >> Hi
> >>
> >>
> >>
> >> https://www.xymon.com/help/manpages/man5/analysis.cfg.5.html
> >>
> >>
> >>
> >> 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> On Behalf Of Colin Coe
> >> Sent: 11 October 2021 03:39
> >> To: Xymon Mailing List <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
> >
> > _______________________________________________
> > Xymon mailing list
> > Xymon at xymon.com
> > http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20211012/dea0f6c1/attachment.htm>
More information about the Xymon
mailing list