I've dealt with similar issues. I'll describe the two solutions and you can tell me which sounds most interesting for your application:
At home, I have several qos class-maps configured on a router. Like subinterfaces these can be identified, and their byte counters fetched, via SNMP. I had trouble making this setup easily configurable, but your AV-pair solution addresses this part of it. I have a perl module which could be adapted to your purpose with some alteration to the hard-coded SNMP OIDs and the calculation logic. At work, I've written a peak/offpeak usage measurement system, also in Perl. Radius is configured to accept accounting packets from the cisco router and update a table called RADUSAGE. Using a perl subruntine I've written, it's possible to come up with byte-totals over a given time-trame. Your application is actually even much simpler, I think - If you just wrote a tiny script to take a sum of the download-bytes and upload-bytes columns per user, I think MRTG would be able to make sense of those as a counter. This would be sufficient for data rate calculations if you aren't so interested in getting usage totals over a defined interval. ----- Original Message ----- From: "Khemara Lyn" <[email protected]> To: <[email protected]> Sent: Saturday, March 28, 2009 3:31 PM Subject: Re: [mrtg] Traffic Graphs for PPPoE Users > Dear All, > > This is just a repost. I'm sure, someone out there would help me. > > Thanks, > Khem > > On Thursday 26 March 2009 07:10:07 pm Khemara Lyn wrote: >> Dear All, >> >> First, I'd like to apologize in advance; I'm very new in the list and >> this >> is my very first post. >> >> I was browsing through the whole archive but could not find any solutions >> to my problem. >> >> I have a Cisco router as a PPPoE server serving ADSL users with >> authorization and accounting information stored on a RADIUS server. >> >> I'd like to be able to graph traffic on the Cisco router based on user >> names. When a user comes online, a related interface is created with an >> interface name starting with "Virtual-Access" and then a PPP session >> number. And the number is not fixed for a particular user; it is assigned >> randomly whem a user dials in, making it impossible to graph the traffic >> by >> interface name or IP. >> >> My question is that, does anyone have experience with graphing traffic >> based on PPPoE users? Or at least based on interface description? >> >> The virtual interface description can be configured from a RADIUS >> AV-pair, >> so there is a way to generate traffic graph based the interface >> description, it would be one solution. >> >> Hope for your kind inputs >> >> Thanks & regards to all, >> Khem > > > _______________________________________________ > mrtg mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg > > _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
