ip based mrtg please

hi all,
i am using mikrotik 2.9 routerOS and i want to provide individual ip based mrtg to all the clients. anyone’s help is highly appreciated.

thanx
subhash

Actually you have two different ways to provide each user with specific information about used traffic.
First of all you need to create queues, simple or tree. In the following case simple is more recommended, as first scenario is possible even without remote MRTG server.

  1. Graphing tool allows to monitor data for the particular user’s queue, and showing graph of consumer bandwidth, as well graphing provides with opportunity to restrict access per IP. More information is given in the graphing documentation.

  2. Scenario using external MRTG server, you will need also to get data from user’s queue, setup web server (e.g. Apache) on MRTG server.
    Apache provides htaccess option, that allows to restrict access per different options to the specific page.

Hi subhash, I used the method mentioned in the previous post, but used SNMP calls to read the downloaded queue information every 15 minutes.
I store every SNMP call info into a stats table in SQL, and by comparing the new reading against the previous amount of data downloaded, I can determine the amount of data downloaded in the previous 15 minutes.

Then simply use simple SQL calls to calculate the amount of data downloaed between two dates.

You can get fancy and use PHP GD to draw graphs as I did, this way you can tell exactly how much data was downloaded at anytime.

We have been running this for an ISP, with 90 queues without any fault. Clients can login and see exactly what they have downloaded in a simple website interface.

Hi Subhash,

First Create Individual Queue for all the customer and u can provide queue based Graphs.

[admin@MT] tool graphing queue> add simple-queue=XXX store-on-disk=yes.