I wish to see how much bandwidth was used per PPP connection, how would I do this via API, I understand that the options are probably Graphing, SNMP or Netflow.
I just need the simplest way for now. I need to get the usage and create monthly, weekly graphs.
Using a specialized tool that analyzes SNMP and/or Netflow to generate a graph would be most efficient for the router indeed.
If you’re OK with sacrificing some of that efficiency for the purposes of customizable implementation, the other way would be to detect a new PPPoE interface appearing (see your other topic), and when a new one appears, issue an “/interface monitor-traffic” command, and collect the results into your DB, from where you can later draw graphs.
Could you recommend a simple tool please for SNMP or/and for Netflow?
My impression is that I need to setup a Netflow collector server or SNMP collector then pull the data from there to my php script. Am I correct?