History Graph of Probe showing incorrect value.

I have created a function then a probe so I can have the data graphed in the Device History.
The History graph is showing a value of 4.5G. I added [oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”)] to the device label and it shows the correct value of -41.
Why is this happening?

Function:
Name: MDS_RSL_EAST
Code: oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”)

Probe:
Name: MDS_RSL_EAST
Type: Function
Available: MDS_RSL_EAST()
Error: if(MDS_RSL_EAST(), “”,“down”)
Value: MDS_RSL_EAST()
Unit -dB

You can try deleting the device and then undo the delete…

I deleted the device then clicked undo. It did not resolve the problem.

It is possible you will have to use the oid without the 0 for the function and put the oid directly into error and value… Using a function to check for Available is still better then using the OID directly in the available line.

Function:
Name: MDS_RSL_EAST
Code: oid(“1.3.6.1.4.1.18489.1.2.3.7.1”)

Probe:
Name: MDS_RSL_EAST
Type: Function
Available: MDS_RSL_EAST()
Error: if(oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”), “”,“down”)
Value: oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”)
Unit -dB

I made the changes you suggested. The history now shows 0 instead of 4.5G, which is no better or worse.
The Probe in the Services Tab shows ok. Frustrating to see the correct value on the label, but not on the History.

From what I’ve found negative numbers will not graph. One type of microwave radio i have reports with positive numbers and graphs fine and the other type of radio reports negative numbers and i have not been able to get it to graph properly. My next attempt will be with “oid_raw” but i think i will still get a negative number.

Oh damn negative values, I am not sure if this is the trouble I have not tried to graph RSSI.
Maybe this would work.. Graphs would be wrong but at least you might get a graph.

Error: if(oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”)*1, “”,“down”)
Value: oid(“1.3.6.1.4.1.18489.1.2.3.7.1.0”)*1

What surprises me is if the value is negative 40ish why doesn’t it fail on the if?

If negative 40; statement should resolve false. Which should report down…
Let us know what you find out.

I think what we need is a function that returns the absolute value of a string. Or possibly try to make the conversion in a function instead of in the probe. I will playing around with it a little more later today.

I was able to get my RSSI to graph by using a function to multiply the oid by -1. This did not work if i multiplied by -1 in the probe itself.

Function - RRSL
oid(“1.3.6.1.4.1.10728.2.16.3.3.2.0”)*-1

Probe
Available
oid(“1.3.6.1.4.1.10728.2.16.3.3.2.0”)
error
if (RRSL() < 70,“”,“Low RSL”)
value
RRSL()
Value
-Db
Rate
none

agreed bstedh, I had all sorts of trouble dealing with CPU that was 0%, I finally worked it out but they should treat OID reads as if not NULL, any value returned should then be easier to deal with.

Good to know and thanks for jumping in… Maybe techmonkey1 will get his graphs working :slight_smile:

If you need to graph something that returns a null value at 0 try using a function to add 0 to the oid. Or if not overly critical for accuracy +1.

oid(“x.x.x.x.x.x.x.x.x.x”)+0

Not sure if this will work but it’s worth a try. I don’t have any probes to try this on right now.

Oh I solved it a while ago cause it is a value… things like if cpu > 0 didn’t work but what I have below did.

if(or(Cisco_CPU_available()<>“”, Cisco_CPU_available()>95), “”,“CPU Problem”)

Thanks for your responses. I have been on vacation and will try your suggestions and let you know if that fixes the issue.

Good morning to all.
I am a begineer in Dude and I am not sure to start in the right way. Anyway, I just create a network by showing a ping test result of some terminals. I just want to know if the terminals are connected or not. My configuration works and i am satisfied for my first try.
Now, i would like to use the Dude information to do some statistics.
When I select a remote site, i can have a graphic with the connection present. In fact I have latency value vs time.
I would like to create a connexion statistic for each remote site, for the complete network.
Are these tools existing in Dude? in case yes, where? If not existing, where I can found the value list which create the graphic to treat them with excel for example?

Thank you for your help.