I have MRTG monitoring a number of interfaces on our Mikrotik routers. Now I would like to know how to monitor a given queue. So anyone have an example of doing that?
Matt
I have MRTG monitoring a number of interfaces on our Mikrotik routers. Now I would like to know how to monitor a given queue. So anyone have an example of doing that?
Matt
Look at this:
http://www.mikrotik.com/docs/ros/2.8/appex/mrtg1.content
I’ve made a script that generate config file for the queue tree:
http://forum.mikrotik.com/phpbb2/viewtopic.php?t=550[/url]
ok first goto “queue simple or queue” tree depending on the type of queue, then get the queue numbers by typing “print” then type “print oid” this will give you the OID’s for each queue:
Flags: X - disabled, I - invalid, D - dynamic
0 name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16777251
flow=.1.3.6.1.4.1.14988.1.1.2.2.1.3.16777251
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.5.16777251
packets=.1.3.6.1.4.1.14988.1.1.2.2.1.6.16777251
1 name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16777255
flow=.1.3.6.1.4.1.14988.1.1.2.2.1.3.16777255
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.5.16777255
packets=.1.3.6.1.4.1.14988.1.1.2.2.1.6.16777255
once you have that put it into your mrtg like this:
Target[10.10.10.200_BitsBytesP2P]: 1.3.6.1.4.1.14988.1.1.2.2.1.5.16777255&1.3.6.1.4.1.14988.1.1.2.2.1.5.16777251:public@10.10.10.200
#SetEnv[RouterBOARD_queue]: MRTG_INT_IP=“1.1.1.3” MRTG_INT_DESCR=“ether1”
MaxBytes[10.10.10.200_BitsBytesP2P]: 30000
Title[10.10.10.200_BitsBytesP2P]: P2P Usage for Bits & Bytes
BodyTag[10.10.10.200_BitsBytesP2P]:
Extension[10.10.10.200_BitsBytesP2P]: asp
PageFoot[10.10.10.200_BitsBytesP2P]:
PageTop[10.10.10.200_BitsBytesP2P]:
<%=SubHeaderText%>P2P Usage for Bits & Bytes<%=SubHeaderTextClose%>
| System: | WNK_BB4_BR |
| Description: | P2P (Bits & Bytes) |