Displaying probe values in a chart
Posted: Fri Jul 09, 2021 4:17 pm
Hello!
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
Probe:
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?
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: Select all
Code: oid ("1.3.6.1.4.1.14988.1.1.3.10.0")
Probe:
Code: Select all
Type: Function
Agent: default
Available: get_temp()
Error: if(get_temp()<80,"","Temperature > 80 C")
Value: get_temp()
Unit: C