Community discussions

MikroTik App
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

SNMP information

Tue Aug 05, 2014 3:17 pm

Hi,
I'm struggeling with SNMP.
How do I know what interface is what ifinoctet?
I have a RB2011UiAS-2HnD-IN and RB951-2HnD and SXT
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26368
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: SNMP information

Tue Aug 05, 2014 3:28 pm

in command line, go to /interface ethernet" then type "print oid" and you will see OID for each interace
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

Re: SNMP information

Tue Aug 05, 2014 3:39 pm

print oid is not an option

And I allso want to know this for the WLAN.
Last edited by 49er on Tue Aug 05, 2014 3:43 pm, edited 1 time in total.
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: SNMP information

Tue Aug 05, 2014 3:43 pm

For every IfInOctets there is a corresponding index and description :

IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifDescr.1 = STRING: e1-management
IF-MIB::ifInOctets.1 = Counter32: 0
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

Re: SNMP information

Tue Aug 05, 2014 3:49 pm

CyberTod , I don't understand this at all.
I'm just beginning with this stuff.
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: SNMP information

Tue Aug 05, 2014 3:58 pm

From this data you can get which name of an interface is corresponding to its IfInOctets value.
You can get these with snmpwalk or another snmp utility.
But the more important question is what software will you be using for your graphs ? Because most of the more advanced graphing softwares make this index for you. For example in Cacti you just add your device and make a graph for an interface by it's name (ether1, wlan1 .. whatever) and the software makes this index and takes care of the oids, not you.
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

Re: SNMP information

Tue Aug 05, 2014 4:07 pm

I use ZABBIX as a Virtual Appliance.
If there is better (FREE) software please let me know.
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: SNMP information

Tue Aug 05, 2014 4:22 pm

It is a matter of preference. I haven't used Zabbix, but looking at some screenshots it looks like it will do the job.
And also (again speaking just from seeing some screens of it) it looks like it can add a graph by index - the device's name so you don't have to worry about knowing the exact oids.
 
LuizMeier
Member Candidate
Member Candidate
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: SNMP information

Tue Aug 05, 2014 4:57 pm

49er,

You can use the dynamic index of Zabbix's SNMP. It reads the index and then capture the data of respective interface.

For example (assuming you're using an SNMP type key), configure the OID like I'm putting below:
IF-MIB::ifInOctets["index","ifDescr","{$INTERFACE1}"]

It will read the index of IfDescr oid and then bind the index of the {$INTERFACE1}(it is a macro, you can fix it instead) interface. Done that, it will collect ifInOctets of that interface.

This will help you:
https://www.zabbix.com/documentation/2. ... namicindex
 
User avatar
sguox
Trainer
Trainer
Posts: 73
Joined: Fri Mar 09, 2012 6:23 pm

Re: SNMP information

Tue Aug 05, 2014 5:00 pm

You can user auto discovery and enter the oid one level higher, it will discover all interface and available snmp info
 
LuizMeier
Member Candidate
Member Candidate
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: SNMP information

Tue Aug 05, 2014 5:02 pm

You can user auto discovery and enter the oid one level higher, it will discover all interface and available snmp info
Plus, you can also use a regular expression to filter the interfaces you want. :)
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

Re: SNMP information

Tue Aug 05, 2014 7:15 pm

So thanks for your reply's but I really don't understand anything of it.
I have zabbix running and know how to import a template (but really can't build one myself.
 
49er
Member
Member
Topic Author
Posts: 409
Joined: Tue Sep 27, 2011 7:55 am

Re: SNMP information

Wed Aug 06, 2014 7:56 am

So if someone can help me with this it would be verry nice. Thanks.
 
LuizMeier
Member Candidate
Member Candidate
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: SNMP information

Wed Aug 06, 2014 2:50 pm

49er,

If you are using Zabbix tool for monitoring, I recommend you to have some study to understand the tool you are using.

To create items and templates, you can take a look at the documentation. :)

Who is online

Users browsing this forum: No registered users and 38 guests