Page 1 of 1

MRTG & Queues

Posted: Wed Aug 18, 2004 11:48 pm
by hci
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

Posted: Thu Aug 19, 2004 2:23 am
by [ASM]
Look at this:
http://www.mikrotik.com/docs/ros/2.8/ap ... g1.content


I've made a script that generate config file for the queue tree:
http://forum.mikrotik.com/phpbb2/viewtopic.php?t=550[/url]

Posted: Fri Aug 20, 2004 8:25 am
by wjw
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]: <BODY text=#c9c9cb vLink=#c9c9cb aLink=#ffffff link=#c9c9cb bgColor=#154eac >
Extension[10.10.10.200_BitsBytesP2P]: asp
PageFoot[10.10.10.200_BitsBytesP2P]: <!-- #include file=footer.asp -->
PageTop[10.10.10.200_BitsBytesP2P]: <!-- #include file=header.asp -->
<%=SubHeaderText%>P2P Usage for Bits & Bytes<%=SubHeaderTextClose%>
<TABLE>
<TR><TD>System:</TD> <TD>WNK_BB4_BR</TD></TR>
<TR><TD>Description:</TD><TD>P2P (Bits & Bytes) </TD></TR>
</TABLE>