Hi Edvinas,

 

You need to create two separate rules for this.

 

Someone else asked about something similar on discord earlier (wanting to tie rules to a range), so perhaps I can add a “range” operator. It’ll probably not be difficult, but I’ll have to see what things implementing it affects.

 

We do have some longer term plans to rework the alerting to make complex stuff like this much easier, but I’m not sure when we’ll be adding that.

 

Numbers a few percent above 100 are likely valid, as there’s always some wiggle in the maths when you’re calculating rates from counters and you don’t know the update time of the counter!

 

Thanks,

Adam.

 

From: Edvinas Kairys via observium <observium@lists.observium.org>
Sent: 25 August 2022 07:56
To: Observium <observium@observium.org>
Cc: Edvinas Kairys <edvinas.email@gmail.com>
Subject: [Observium] question about alert checker TEST

 

Hello,

 

I'm using alert checker with quite standard check:

 

ifInOctets_perc ge 90
ifOutOctets_perc ge 90

 

But sometimes the SNMP returns incorrect value like 134651%, especially in Nexus devices. I would like to prevent that with inserting test value like: ifInOctets_perc le 100. 

But i'm wondering if it's possible to do this in single rule in Observium that would look like this:

 

(ifInOctets_perc ge 90 and ifInOctets_perc le 100) or (ifOutOctets_perc ge 90 and ifOutOctets_perc le 100)

 

Or i need to create separate rules for both groups ?

 

Thanks