Hi Alessandro
I had a quick look at our server config, and we use this in analysis.cfg:
HOST=hostname
SVC MSSQLSERVER status=started
SVC SQLSERVERAGENT status=started
See also https://www.xymon.com/help/manpages/man5/analysis.cfg.5.html.
Cheers
Zak
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Alessandro Tinivelli Sent: 24 January 2017 10:48 To: xymon at xymon.com Subject: [Xymon] Windows Services Check with Powershell Client
Hi folks,
i'm trying the stunning new Powershell client from Zak, and i'm already loving it.
But I cannot figure out how to check if a service is running or not.
I'm using last version 2.19 with Xymon 4.3.28-1terabithia.
I've successfully set in analysis.cfg PORT and PROC checks, but what about "svcs"?
I've also been able to use the directive "servicecheck" in client-local.cfg to instruct the powershellclient to restart stopped services but. I'm still missing the most important (for me) part for windows systems.
Please help :)
Thanks in advance, Alessandro