Community discussions

MikroTik App
 
User avatar
macsrwe
Forum Guru
Forum Guru
Topic Author
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Problem using simple OID

Thu Jan 08, 2015 5:21 am

I took my first shot at using an OID in a node appearance today, and I can't figure out why it isn't working. I've tried this on several devices (running 6.22).

I wanted to display the number of wireless devices registered to an AP. The string I added to the appearance is:
Guests: [oid("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlApTable.mtxrWlApEntry.mtxrWlApClientCount")]
I can snmpwalk the device and see that the number in that OID is correct, but when I try to use it in the appearance, nothing comes out. I just get:

Guests:

What am I doing wrong?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Problem using simple OID

Thu Jan 08, 2015 10:48 am

For this reason I use function call in appearance:

[wireless_clients()]

And the function looks like:

array_size(oid_column("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength"))

And it works good for me.
 
User avatar
macsrwe
Forum Guru
Forum Guru
Topic Author
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Problem using simple OID

Thu Jan 08, 2015 9:10 pm

Works like a dream. Thank you so much!
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Problem using simple OID

Thu Jan 08, 2015 10:14 pm

You're welcome. There is also karma buttons by which you can express your thanks...

Who is online

Users browsing this forum: No registered users and 11 guests