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