Page 1 of 1

Displaying probe values in a chart

Posted: Fri Jul 09, 2021 4:17 pm
by vasaiziza
I am trying to collect a specific value, and when the given value changes below, it should throw an error and write the current value to the charts. For example, measuring the temperature of a mikrotik can be viewed as a probe:

Function: get_temp
Code: oid ("")

Type: Function
Agent: default
Available: get_temp()
Error: if(get_temp()<80,"","Temperature > 80 C")
Value: get_temp()
Unit: C
As a result of the operation of such a probe, it turns out on the charts that the data is recorded at temperatures below 80 degrees, and at temperatures above 80 degrees, the values are no longer transferred to the charts. Can you please tell me how to fix this without creating an additional data sources for each device?