Xymon Mailing List Archive search

group analysis test to multiple hosts

4 messages in this thread

list Kris Springer · Thu, 6 Dec 2018 10:48:42 -0700 ·
I've got a list of 30 hosts that all have the same name except a different number at the end.  I'd like to test only those hosts for a running service, but I've tried the following entries in my analysis.cfg file with no success.  It either applies the test to every host in my hosts.cfg file, or it doesn't test any of them.  I can't seem to get it dialed in to only test the specific hosts that I want it to.

I've tried this HOST wildcard, but it applies the test to every host, no matter what name it is.
*HOST=Upper-Lab-PC***
**    SVC    SoftwareName*

I tried DISPLAYGROUP because the list of hosts are defined in a 'group-only' list in my hosts.cfg file, but this didn't apply the test to any hosts at all.
*DISPLAYGROUP="Upper Lab Desktops"*
*    SVC    SoftwareName*

I could of course test each host individually, but that seems a bit ridiculous when the man page says I can group them.  Suggestions?

-- 

Kris Springer
list Paul Root · Thu, 6 Dec 2018 18:26:42 +0000 ·
So Upper-Lab-PC is the name of all the machines with numbers appended?

To invoke the regex in the xymon configuration files you need the % character.

HOST=%Upper-Lab-PC*
                SVC SoftwareName

You can test with xymond_alert

xymond_alert --test <hostname> <testname>
quoted from Kris Springer

From: Xymon <xymon-bounces at xymon.com> On Behalf Of Kris Springer
Sent: Thursday, December 06, 2018 11:49 AM
To: Xymon MailingList <xymon at xymon.com>
Subject: [Xymon] group analysis test to multiple hosts

I've got a list of 30 hosts that all have the same name except a different number at the end.  I'd like to test only those hosts for a running service, but I've tried the following entries in my analysis.cfg file with no success.  It either applies the test to every host in my hosts.cfg file, or it doesn't test any of them.  I can't seem to get it dialed in to only test the specific hosts that I want it to.

I've tried this HOST wildcard, but it applies the test to every host, no matter what name it is.
HOST=Upper-Lab-PC*
    SVC    SoftwareName

I tried DISPLAYGROUP because the list of hosts are defined in a 'group-only' list in my hosts.cfg file, but this didn't apply the test to any hosts at all.
DISPLAYGROUP="Upper Lab Desktops"
    SVC    SoftwareName

I could of course test each host individually, but that seems a bit ridiculous when the man page says I can group them.  Suggestions?


--


Kris Springer


This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Paul Root · Thu, 6 Dec 2018 18:28:25 +0000 ·
Opps,

HOST=%Upper-Lab-PC.*

From: Xymon <xymon-bounces at xymon.com> On Behalf Of Root, Paul T
Sent: Thursday, December 06, 2018 12:27 PM
To: 'Kris Springer' <user-c2caa0a7a8d5@xymon.invalid>; Xymon MailingList <xymon at xymon.com>
Subject: Re: [Xymon] group analysis test to multiple hosts

So Upper-Lab-PC is the name of all the machines with numbers appended?

To invoke the regex in the xymon configuration files you need the % character.

HOST=%Upper-Lab-PC*
                SVC SoftwareName

You can test with xymond_alert

xymond_alert --test <hostname> <testname>

From: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> On Behalf Of Kris Springer
Sent: Thursday, December 06, 2018 11:49 AM
To: Xymon MailingList <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: [Xymon] group analysis test to multiple hosts

I've got a list of 30 hosts that all have the same name except a different number at the end.  I'd like to test only those hosts for a running service, but I've tried the following entries in my analysis.cfg file with no success.  It either applies the test to every host in my hosts.cfg file, or it doesn't test any of them.  I can't seem to get it dialed in to only test the specific hosts that I want it to.

I've tried this HOST wildcard, but it applies the test to every host, no matter what name it is.
HOST=Upper-Lab-PC*
    SVC    SoftwareName

I tried DISPLAYGROUP because the list of hosts are defined in a 'group-only' list in my hosts.cfg file, but this didn't apply the test to any hosts at all.
DISPLAYGROUP="Upper Lab Desktops"
    SVC    SoftwareName

I could of course test each host individually, but that seems a bit ridiculous when the man page says I can group them.  Suggestions?


--


Kris Springer


This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Kris Springer · Thu, 6 Dec 2018 11:57:34 -0700 ·
Thanks Paul, your first suggestion worked.  All I needed was the % at the beginning of the host name, no period necessary before the *

Kris Springer


On 12/6/18 11:28 AM, Root, Paul T wrote:
Opps,

HOST=%Upper-Lab-PC.*

*From:*Xymon <xymon-bounces at xymon.com> *On Behalf Of *Root, Paul T
quoted from Paul Root
*Sent:* Thursday, December 06, 2018 12:27 PM
*To:* 'Kris Springer' <user-c2caa0a7a8d5@xymon.invalid>; Xymon MailingList <xymon at xymon.com>
*Subject:* Re: [Xymon] group analysis test to multiple hosts

So Upper-Lab-PC is the name of all the machines with numbers appended?

To invoke the regex in the xymon configuration files you need the % character.

HOST=%Upper-Lab-PC*

SVC SoftwareName

You can test with xymond_alert

xymond_alert --test <hostname> <testname>

*From:*Xymon <xymon-bounces at xymon.com <mailto:xymon-bounces at xymon.com>> *On Behalf Of *Kris Springer
*Sent:* Thursday, December 06, 2018 11:49 AM
*To:* Xymon MailingList <xymon at xymon.com <mailto:xymon at xymon.com>>
quoted from Paul Root
*Subject:* [Xymon] group analysis test to multiple hosts

I've got a list of 30 hosts that all have the same name except a different number at the end. I'd like to test only those hosts for a running service, but I've tried the following entries in my analysis.cfg file with no success.  It either applies the test to every host in my hosts.cfg file, or it doesn't test any of them.  I can't seem to get it dialed in to only test the specific hosts that I want it to.

I've tried this HOST wildcard, but it applies the test to every host, no matter what name it is.
*HOST=Upper-Lab-PC*
    SVC    SoftwareName*

I tried DISPLAYGROUP because the list of hosts are defined in a 'group-only' list in my hosts.cfg file, but this didn't apply the test to any hosts at all.
*DISPLAYGROUP="Upper Lab Desktops"*
*    SVC    SoftwareName*

I could of course test each host individually, but that seems a bit ridiculous when the man page says I can group them.  Suggestions?

-- 
Kris Springer

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.