MRTG - Graphics of the customers

Hi all,

I use the mikrotik configurated as bridge and I want to do the graphics of my customers using MRTG. How can I make this if my mikrotik is in bridge mode?

I have preference to do the graphics by the IP address because if an client radio is changed I won’t lose the graphics.

PS: All my customers have fixed IPs.

Regards,

Fabrício F:. Kammer

I presume you’re doing queues to limit the traffic based on the IP address.

So what you need to do is assign an IP address to the bridge or an interface so you can communicate with it for SNMP/managment.

Then you can go in to a terminal and go to queues:

/queue simple

and print the OID’s of each queue:

pr oid

Then, you can use the OID results from this to create graphs with MRTG.

Thanks nickb,

But I’ve a problem, because If a delete a queue and recreate it the OID is diferent, than I lose the graphics of before the exclusion.

Regards,

Just change your configuration for the graph to use a different OID - leave the defined name the same, and change the OID it’s querying.

But how can I make this using mrtg?

Uh… you just set it up and tell MRTG what OID to monitor. It’s not hard.

http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html

Target[target-name]: OID1&OID2:<rocommunity>@hostname
MaxBytes[target-name]: 100000000
Options[target-name]: bits
Title[target-name]: OID Configuration Example
PageTop[target-name]: <H1>OID Configuration Example</H1>
 <TABLE>
   <TR><TD>Port:</TD><TD>Description</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Description</TD></TR>
   <TR><TD>Interface:</TD><TD>Description</TD></TR>
   <TR><TD>Max Speed:</TD><TD>Description</TD></TR>
  </TABLE>

All you need to do is change the OID parameter on the target line if the OID changes - it will continue to update the same graphic from the data on the new OID.

Sorry nickb but I think that I’m noting understanding your explanation.

My doubt in use the OIDs of the simple queues is when I customer have the queue deleted and created again. The OID will change in this case and I’ll lose the graphics history of this customer.

Regards

Why do you need to delete ‘queue simple’ ?
You can disable or add/modify any queue parametr, if changes required.

Hi Fabrício, I have a solution if you are interested, written in PHP.

It involves using SNMP to read the queue information and store the data into an SQL database table.

The trick that I use involves creating all of your queue’s with names starting with Q#00001 Q#00002 etc etc.

That way, the data is stored aqainst the Q# number, and not the OID, if the OID changes it does not matter.

I then use jpgraph library to draw pretty pictures of the store results.