Xymon Mailing List Archive search

Test for all but one host

3 messages in this thread

list Jaime Kikpole · Wed, 5 Jun 2019 16:17:31 -0400 ·
I want to set up a SVC test for all hosts where CLASS=powershell, except
for one host.  Is there a clean way to do this or will I have to set up a
HOST=... entry for every system?

For example, I wanted to do this:
CLASS=powershell
       SVC bbagent status=started

However, one and only one system doesn't run bbagent.  So is there some
kind of "cancel the default" override I can use?  Or will I have to do this:
HOST=server1
       SVC bbagent status=started
HOST=server3
       SVC bbagent status=started

Thanks in advance!


Jaime Kikpole

Director of Technology & Innovations
Cairo-Durham Central School District
(XXX) XXX-XXXX, x59500
cairodurham.org <http://www.cairodurham.org>;

Technical Support:
user-2eed5d3dd752@xymon.invalid
go.cairodurham.org/techtips

[image: Google Certified Educator, Level 1] [image: Google Certified
Educator, Level 2]

-- 
This electronic message and any attachment(s) may contain confidential or legally privileged information protected by law from further disclosure and is intended only for the individual or entity identified above as the addressee. If you are not the addressee (or the employee or agency responsible to deliver it to the addressee), or if this message has been addressed to you in error, you are hereby notified that you may not copy, forward, disclose or use any part of this message or any attachment(s). Please notify the sender immediately by return email or telephone and permanently delete this message and attachment(s) from your system.
list Timothy Williams · Tue, 11 Jun 2019 09:48:52 -0400 ·
I haven't used this specifically, but I think you want to use the EXHOST=
statement.

CLASS=powershell
       SVC bbagent status=started   EXHOST=server2

Let us know if that works.

Tim Williams

On Wed, Jun 5, 2019 at 4:18 PM Jaime Kikpole via Xymon <xymon at xymon.com>
wrote:
---------- Forwarded message ----------
From: Jaime Kikpole <user-c575ba5bb612@xymon.invalid>
To: xymon at xymon.com
Cc:
Bcc:
Date: Wed, 5 Jun 2019 16:17:31 -0400
Subject: Test for all but one host
quoted from Jaime Kikpole
I want to set up a SVC test for all hosts where CLASS=powershell, except
for one host.  Is there a clean way to do this or will I have to set up a
HOST=... entry for every system?

For example, I wanted to do this:
CLASS=powershell
       SVC bbagent status=started

However, one and only one system doesn't run bbagent.  So is there some
kind of "cancel the default" override I can use?  Or will I have to do this:
HOST=server1
       SVC bbagent status=started
HOST=server3
       SVC bbagent status=started

Thanks in advance!


Jaime Kikpole

Director of Technology & Innovations
Cairo-Durham Central School District
(XXX) XXX-XXXX, x59500
cairodurham.org <http://www.cairodurham.org>;

Technical Support:
user-2eed5d3dd752@xymon.invalid
go.cairodurham.org/techtips

[image: Google Certified Educator, Level 1] [image: Google Certified
Educator, Level 2]

This electronic message and any attachment(s) may contain confidential or
legally privileged information protected by law from further disclosure and
is intended only for the individual or entity identified above as the
addressee. If you are not the addressee (or the employee or agency
responsible to deliver it to the addressee), or if this message has been
addressed to you in error, you are hereby notified that you may not copy,
forward, disclose or use any part of this message or any attachment(s).
Please notify the sender immediately by return email or telephone and
permanently delete this message and attachment(s) from your system.


---------- Forwarded message ----------
From: Jaime Kikpole via Xymon <xymon at xymon.com>
To: xymon at xymon.com
Cc:
Bcc:
Date: Wed, 5 Jun 2019 16:17:31 -0400
Subject: [Xymon] Test for all but one host

list Jaime Kikpole · Wed, 12 Jun 2019 13:25:17 -0400 ·
On Tue, Jun 11, 2019 at 9:49 AM Timothy Williams <user-1a5482fb085e@xymon.invalid>
wrote:
CLASS=powershell
       SVC bbagent status=started   EXHOST=server2
Using your suggestion worked perfectly.

Now that I know what to look for, I see it in the comments in the
configuration file.  I feel kind of dumb.  I'll read the comments of the
file more carefully in the future.  Thanks again for pointing me in the
right direction.
quoted from Timothy Williams


Jaime Kikpole

Director of Technology & Innovations
Cairo-Durham Central School District
(XXX) XXX-XXXX, x59500
cairodurham.org <http://www.cairodurham.org>;

Technical Support:
user-2eed5d3dd752@xymon.invalid
go.cairodurham.org/techtips

[image: Google Certified Educator, Level 1] [image: Google Certified
Educator, Level 2]

-- 
This electronic message and any attachment(s) may contain confidential or legally privileged information protected by law from further disclosure and is intended only for the individual or entity identified above as the addressee. If you are not the addressee (or the employee or agency responsible to deliver it to the addressee), or if this message has been addressed to you in error, you are hereby notified that you may not copy, forward, disclose or use any part of this message or any attachment(s). Please notify the sender immediately by return email or telephone and permanently delete this message and attachment(s) from your system.