Xymon Mailing List Archive search

Alerting based on multiple hosts - is it possible?

3 messages in this thread

list Glauber Ribeiro · Tue, 20 Apr 2021 13:48:50 +0000 ·
Hello,

Say I have 3 servers

Srv1
Srv2
Srv2

Is it possible to configure an alert so that it will fire only when the CPU test for all 3 servers has gone yellow or red?
In other words, I don?t want Xymon to alert when one server or two servers are having problems. Only when all three are.

Thanks,

g
list Adam Thorn · Tue, 20 Apr 2021 19:57:17 +0100 ·
quoted from Glauber Ribeiro
On 20/04/2021 14:48, Ribeiro, Glauber via Xymon wrote:
Hello,

Say I have 3 servers

Srv1

Srv2

Srv2

Is it possible to configure an alert so that it will fire only when the CPU test for all 3 servers has gone yellow or red?

In other words, I don?t want Xymon to alert when one server or two servers are having problems. Only when all three are.
You can do this via a combo test defined in combo.cfg

https://xymon.sourceforge.io/xymon/help/manpages/man5/combo.cfg.5.html

i.e. you could define something like..

servers.cpu = (srv1.cpu + srv2.cpu + srv3.cpu) > 1

or perhaps...

servers.cpu = (srv1.cpu || srv2.cpu || srv3.cpu)

which would be green if one or more of the individual cpu tests were green. You could then alert on "HOST=servers TEST=cpu" as normal.

Regards,

Adam
list Glauber Ribeiro · Tue, 20 Apr 2021 19:50:36 +0000 ·
Yes, that is it! Thank you very much.

I apologize for the way my emails show in this list. I haven't figured out how to avoid that.

g
quoted from Adam Thorn

-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Adam Thorn
Sent: Tuesday, April 20, 2021 13:57
To: xymon at xymon.com
Subject: [EXTERNAL] Re: [Xymon] Alerting based on multiple hosts - is it possible?

External email: Do not click the links. Verify legitimacy before taking action.

On 20/04/2021 14:48, Ribeiro, Glauber via Xymon wrote:
Hello,

Say I have 3 servers

Srv1

Srv2

Srv2

Is it possible to configure an alert so that it will fire only when the 
CPU test for all 3 servers has gone yellow or red?

In other words, I don?t want Xymon to alert when one server or two 
servers are having problems. Only when all three are.
You can do this via a combo test defined in combo.cfg

https://urldefense.com/v3/__ https://xymon.sourceforge.io/xymon/help/manpages/man5/combo.cfg.5.html__;!!MfzFaTml5A!xy2swYGrL2SwmegjDWayreSrY9mVwJdXvsrNG2HmiYU_rDnifqX0LgUEwhlplPiz0OcwJQ$ 
quoted from Adam Thorn

i.e. you could define something like..

servers.cpu = (srv1.cpu + srv2.cpu + srv3.cpu) > 1

or perhaps...

servers.cpu = (srv1.cpu || srv2.cpu || srv3.cpu)

which would be green if one or more of the individual cpu tests were 
green. You could then alert on "HOST=servers TEST=cpu" as normal.

Regards,

Adam