SNMP information

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

in command line, go to /interface ethernet" then type “print oid” and you will see OID for each interace

print oid is not an option

And I allso want to know this for the WLAN.

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

CyberTod , I don’t understand this at all.
I’m just beginning with this stuff.

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.

I use ZABBIX as a Virtual Appliance.
If there is better (FREE) software please let me know.

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.

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.2/manual/config/items/itemtypes/snmp/dynamicindex

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. :slight_smile:

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.

So if someone can help me with this it would be verry nice. Thanks.

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. :slight_smile: