Community discussions

MikroTik App
 
hci
Long time Member
Long time Member
Topic Author
Posts: 637
Joined: Fri May 28, 2004 5:10 pm

MRTG & Queues

Wed Aug 18, 2004 11:48 pm

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
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 285
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Thu Aug 19, 2004 2:23 am

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]
 
wjw
Frequent Visitor
Frequent Visitor
Posts: 91
Joined: Thu Jun 10, 2004 12:59 am
Location: New Zealand
Contact:

Fri Aug 20, 2004 8:25 am

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>

Who is online

Users browsing this forum: Bing [Bot], ramirez, sunshuvo and 163 guests