Community discussions

MikroTik App
 
raytaylor
just joined
Topic Author
Posts: 21
Joined: Wed Dec 28, 2011 12:19 pm
Location: Melbourne

Graph a value even though it is down

Tue Apr 10, 2018 4:19 pm

Hi Guys
We have a function voltage() which we would like to graph. The function simply looks up the OID and pulls a value.
If voltage falls below 24 then we want it to consider the probe as down, but still output a value for the graphing.
At the moment if the voltage is above 24, it graphs perfectly well. But if it falls below 24, it doesnt show anything.

On the probe settings i have
Avaliable: Voltage()
Error: if(Voltage()>24, "", "down")
Value: Voltage()

If i change the error line to
Error: if(Voltage()>24, "", "")
Then it never considers it to be a problem even if the value drops below 24. I tested this by setting it to 26 instead of 24

Your help or suggestions are much appreciated.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Graph a value even though it is down  [SOLVED]

Wed Apr 11, 2018 10:48 pm

Hi Guys
We have a function voltage() which we would like to graph. The function simply looks up the OID and pulls a value.
If voltage falls below 24 then we want it to consider the probe as down, but still output a value for the graphing.
At the moment if the voltage is above 24, it graphs perfectly well. But if it falls below 24, it doesnt show anything.

On the probe settings i have
Avaliable: Voltage()
Error: if(Voltage()>24, "", "down")
Value: Voltage()

If i change the error line to
Error: if(Voltage()>24, "", "")
Then it never considers it to be a problem even if the value drops below 24. I tested this by setting it to 26 instead of 24

Your help or suggestions are much appreciated.
Put two probe, one at 24v warning, the other at 0v warning.
The first warn you, the second simply record the voltage.
 
raytaylor
just joined
Topic Author
Posts: 21
Joined: Wed Dec 28, 2011 12:19 pm
Location: Melbourne

Re: Graph a value even though it is down

Thu Apr 12, 2018 2:25 pm

Thanks - Thats an awesome idea.
So simple, yet Brilliant!

Who is online

Users browsing this forum: No registered users and 8 guests