[EXTERNAL] Re: [Xymon] Alerting based on multiple hosts - is it possible?

Ribeiro, Glauber glauber.ribeiro at experian.com
Tue Apr 20 21:50:36 CEST 2021


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

-----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$ 

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
_______________________________________________
Xymon mailing list
Xymon at xymon.com
https://urldefense.com/v3/__http://lists.xymon.com/mailman/listinfo/xymon__;!!MfzFaTml5A!xy2swYGrL2SwmegjDWayreSrY9mVwJdXvsrNG2HmiYU_rDnifqX0LgUEwhlplPjLvkTcXQ$ 


More information about the Xymon mailing list