Does “sensor_value notmatch“ work?
That’ll end up being ‘ if $sensor_value != “” ‘ or there abouts
I’ve just added “isnull” and “notnull” operators (last argument isn’t used), but you need to be running r10226 for that.
Adam.
From: observium <observium-bounces@observium.org> On Behalf Of Johann Mallet via observium
Sent: 15 January 2020 17:38
To: Observium Network Observation System <observium@observium.org>
Cc: Johann Mallet <johann.mallet@zayo.com>
Subject: [Observium] Alert : Matching "null" value in condition?
Hello,
In alerting, do you have the option to match "null" value?
For example, to match/not match the sensor with sensor_limit_warm = null value.
My goal it's create alerting with "sensor_value gt @sensor_warn" but excluding when sensor_warm is "null" in database. Because that's create false positives.
Thanks!
Johann