Community discussions

MikroTik App
 
WinWisp
just joined
Topic Author
Posts: 4
Joined: Thu Apr 24, 2014 8:51 pm

Custom probe '<=' not working

Thu Sep 04, 2014 11:20 pm

Having a bit of trouble with a custom probe and I can't figure out what I'm doing wrong here.

I'm trying to make a probe that will graph the modulation of our af24 and af5 radios and raise an error when it drops below 2x modulation. Since the oid returns a string I use string_substring() to return the first character only. The function afmod() returns the correct number but regardless if afmod returns 6, 4, 2, 1 the probe returns the error with the correct value! Am I just overlooking something simple here or..?


Screenshots provided below...
Function.PNG
You do not have the required permissions to view the files attached to this post.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Custom probe '<=' not working

Mon Sep 08, 2014 4:35 pm

I think it is that the result is a string then later you are comparing a string to an integer.

Who is online

Users browsing this forum: No registered users and 19 guests