Community discussions

MikroTik App
 
vasaiziza
just joined
Topic Author
Posts: 1
Joined: Tue Jul 06, 2021 2:21 pm

Displaying probe values in a chart

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
Code: oid ("1.3.6.1.4.1.14988.1.1.3.10.0")

Probe:
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?

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests