Windows Services Check with Powershell Client
list Alessandro Tinivelli
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
list Zak Beck
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
list Alessandro Tinivelli
Thank you so much, it works. I did read the "documentation" only in the header of analysis.cfg, which does not include the SVC definition. Great work! Alessandro Da: user-aada0fa38bf8@xymon.invalid [mailto:user-aada0fa38bf8@xymon.invalid] Inviato: martedì 24 gennaio 2017 12:05 A: Alessandro Tinivelli; xymon at xymon.com Oggetto: RE: Windows Services Check with Powershell Client
▸
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<mailto: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