Arsip Kategori: Linux

Graph Mikrotik Queue using cacti – mikrotik

 

Graph Mikrotik Queue using cacti

Graph Mikrotik Queue using cacti.

I assume you have installed cacti on your server. Here I will only explain how to graph in Cacti Mikrotik Queue only.
Let’s begin.. :D

First open your cacti and login your admin user.

Select Import Templates, and paste the script bellow.

MT-SQ-Down
MT-SQ-up
Mikrotik Simple Queue

Ok, first step is over.
Now go to second step.

Select Device, and Click Add.
Fill in accordance with information on your server.
Ex :
Description -> Mikrotik Testing
Hostname -> 192.168.10.100
Host Template -> Generic SNMP-enabled Host
SNMP Version -> Version 1
SNMP Community -> public
SNMP Port -> 161
SNMP Timeout -> 500
Maximum OID’s Per Get Request -> 10
And click create.
(Make sure that the SNMP Information does not error.)

Now, select Data Sources.
Select Host with your Mikrotik, and click Add.
Select MT-SQ-down on Selected Data Template, and click create.
Fill like this sample:
Name -> Office Total Download
Internal Data Source Name -> _down_office_total
OID -> 1.3.6.1.4.1.14988.1.1.2.1.1.8.120

(To Get OID, Login on your Mikrotik. Open New Terminal. And put this command /queue simple print oid. bytes-in for Download and bytes-out for Upload)

And Click Save.

Click Add again on Data Source
Select MT-SQ-up on Selected Data Template, and click create.
Fill like this sample:
Name -> Office Total Upload
Internal Data Source Name -> _up_office_total
OID -> 1.3.6.1.4.1.14988.1.1.2.1.1.9.120
Do the above appropriate queue in mikrotik. (Ex: Queue IIX/International)
After finish add the Data Source, now Select Graph Management.
Select Host according to your mikrotik, and click Add.
Select Mikrotik – Simple Queue on Selected Graph Template, and click create.
Fill the Title (Ex: Office Total)

Select Office Total Download(_down_office_total) on Download Data Source, and select Office Total Upload(_up_office_total) on Upload Data Source. And click Save.
Do the above appropriate queue in mikrotik. (Ex: Queue IIX/International)

Now, for last step.

Select Graph Trees
First Select Name Graph Trees would you place. (ex: Default Tree)
Click Add on Tree Items, Select Header for Tree Item type. And Fill the title would you like. Create
In the title that you enter, select the add.
Select Graph on Tree Item type, And Select Office Total on Graph then create.
Do the above appropriate queue in mikrotik. (Ex: Queue IIX/International)

Done.
hopefully useful ^^

Ikuti

Get every new post delivered to your Inbox.