Hi Adam (et al),
When Obs pulls in a sensor_value of NULL it gets interpreted as a zero and thus triggers alerts. Can we prevent that somehow?
Joey
Begin forwarded message:
From: "Observium" observium@rmham.org Subject: ALERT: [radio-westcreek.devilshead.rmham] [sensor] [System] Thermal Alarm - Temperature out of threshold Date: July 9, 2021 at 14:43:53 MDT To: netops@rmham.org
ALERT Modify http://observium.rmham.org/device/device=182/tab=alert/alert_entry=23319/ Alert Thermal Alarm - Temperature out of threshold Entity System http://observium.rmham.org/device/device=182/tab=health/metric=temperature/id=3629/ Conditions sensor_value less -25 ("") Metrics sensor_value = Duration 5h 43s (2021-07-09 09:43:10) Device Device radio-westcreek.devilshead.rmham http://observium.rmham.org/device/device=182/ Hardware RB911-5HacD Operating System Mikrotik RouterOS 6.47.10 (Level 3) Location DevilsHead, [39.260394,-105.101844] Uptime 7m 28s sensor_graph
http://observium.rmham.org/graph.php?type=sensor_graph&id=3629
E-mail sent to: netops@rmham.org mailto:netops@rmham.org E-mail sent at: Fri, 09 Jul 2021 14:43:53 -0600
-- Observium Professional 21.7.11470 https://www.observium.org/
I'm sure the alert checker syntax at least used to have the ability to handle nulls.
I have many devices that don't report warning_high and warning_low values, so I would previously write checks that had something along the lines of
sensor_value greater @sensor_limit @sensor_limit ne null
sensor_value less @sensor_limit_low @sensor_limit_low ne null
Although that no longer appears to work (null for thresholds) and I'm having to slog through many, many sensors to specify custom thresholds. That's a slight side-issue, but related to your original problem.
You should (hopefully) be able to use
sensor_value less @sensor_limit_low sensor_value ne null
But you will need to break the alert checker into two different checks. One for high temps and one for low, as you won't be able to use the "any" condition as it will need to match against all.
Michael
On 10 Jul 2021, at 8:09 am, Joey Stanford via observium observium@observium.org wrote:
Hi Adam (et al),
When Obs pulls in a sensor_value of NULL it gets interpreted as a zero and thus triggers alerts. Can we prevent that somehow?
Joey
Begin forwarded message:
From: "Observium" <observium@rmham.org mailto:observium@rmham.org> Subject: ALERT: [radio-westcreek.devilshead.rmham] [sensor] [System] Thermal Alarm - Temperature out of threshold Date: July 9, 2021 at 14:43:53 MDT To: netops@rmham.org mailto:netops@rmham.org
ALERT Modify http://observium.rmham.org/device/device=182/tab=alert/alert_entry=23319/ Alert Thermal Alarm - Temperature out of threshold Entity System http://observium.rmham.org/device/device=182/tab=health/metric=temperature/id=3629/ Conditions sensor_value less -25 ("") Metrics sensor_value = Duration 5h 43s (2021-07-09 09:43:10) Device Device radio-westcreek.devilshead.rmham http://observium.rmham.org/device/device=182/ Hardware RB911-5HacD Operating System Mikrotik RouterOS 6.47.10 (Level 3) Location DevilsHead, [39.260394,-105.101844] Uptime 7m 28s sensor_graph
<mLfBrxkBcSHyAa4z.png> http://observium.rmham.org/graph.php?type=sensor_graph&id=3629
E-mail sent to: netops@rmham.org mailto:netops@rmham.org E-mail sent at: Fri, 09 Jul 2021 14:43:53 -0600
-- Observium Professional 21.7.11470 https://www.observium.org/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Thanks Michael. I’ll give it a shot!
On Jul 9, 2021, at 16:22 , Michael via observium observium@observium.org wrote:
sensor_value greater @sensor_limit @sensor_limit ne null
sensor_value less @sensor_limit_low @sensor_limit_low ne null
It seems to work however I am still getting one oddball
Conditions sensor_value less -25 ("") sensor_value ne null ("") Metrics sensor_value =
On Jul 9, 2021, at 16:25 , Joey Stanford via observium observium@observium.org wrote:
Thanks Michael. I’ll give it a shot!
Sorry, I'm not coming up with any other ideas to solve this one. I think it'll be an Adam/Mike one.
Just check that the conditions are set to "require all" and not "require any".
You could probably work-around it somewhat by introducing a delay to the alert (say a delay of 2 or 3 poll cycles). If you are only getting the occasional null returned, this should "solve" it, at the expense of a 10-15 min delay to the alert when it's actually a problem.
Michael
On 10 Jul 2021, at 11:38 am, Joey Stanford via observium observium@observium.org wrote:
It seems to work however I am still getting one oddball
Conditions sensor_value less -25 ("") sensor_value ne null ("") Metrics sensor_value =
On Jul 9, 2021, at 16:25 , Joey Stanford via observium <observium@observium.org mailto:observium@observium.org> wrote:
Thanks Michael. I’ll give it a shot!
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
What are these devices returning null sensor values?
Adam.
Sent from my iPhone
On 12 Jul 2021, at 00:16, Michael via observium observium@observium.org wrote:
Sorry, I'm not coming up with any other ideas to solve this one. I think it'll be an Adam/Mike one.
Just check that the conditions are set to "require all" and not "require any".
You could probably work-around it somewhat by introducing a delay to the alert (say a delay of 2 or 3 poll cycles). If you are only getting the occasional null returned, this should "solve" it, at the expense of a 10-15 min delay to the alert when it's actually a problem.
Michael
On 10 Jul 2021, at 11:38 am, Joey Stanford via observium observium@observium.org wrote:
It seems to work however I am still getting one oddball
Conditions sensor_value less -25 ("") sensor_value ne null ("") Metrics sensor_value =
On Jul 9, 2021, at 16:25 , Joey Stanford via observium observium@observium.org wrote:
Thanks Michael. I’ll give it a shot!
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
On Jul 11, 2021, at 17:51 , Adam Armstrong via observium observium@observium.org wrote:
What are these devices returning null sensor values?
Hardware RB911-5HacD Operating System Mikrotik RouterOS 6.47.10 (Level 3)
participants (3)
-
Adam Armstrong
-
Joey Stanford
-
Michael