Linux Script to check adsl Usage

Surv0

Executive Member
Joined
Jan 7, 2006
Messages
5,742
Reaction score
539
Location
Capey living in British Columbia, Canada.
Hi Guys

We are looking for a script of sorts that we can load onto our linux server to periodically check our usage on various axxess/webafrica/telkom accounts.
Can this be done? We are currently running nagios to check various applications and servers of our clients, and would be very handy if we could display our current adsl cap's.

Any information in this regard would be very helpful.
Look forward to a speedy response :D:D

thanks in advance.
 
Maybe contact one of those ISPs and see if you can get your usage in xml format or something similar. Should be fairly straight forward after that
 
Maybe contact one of those ISPs and see if you can get your usage in xml format or something similar. Should be fairly straight forward after that

I need a script to automatically update our monitoring software with the current usage reports on various accounts... somebody with PHP knowledge maybe can help.. even if it logs in manually and pulls the data straight of the site.
 
Its difficult as every ISP has their own way of displaying data, otherwise you could have just grabbed the content of the html page and parse it. Best bet would be to contact the ISP's like wizzards said and hear if they have a xml format or something similar.
 
If you're establishing the PPPoE connections on the Linux box then you can use vnstat. It's really simple and works like a bomb.
vnstat will keep track of the usage per interface and I used it on my dual ADSL setup at home and I still use it on the 3G connection on my Kubuntu laptop.
http://humdi.net/vnstat/
http://www.sqweek.com/sqweek/index.php?p=1

If however the Linux box is just a router in between boxes that establish PPPoE connections and an ADSL concentrator you can look at something like ntop or iptraf. As far as I know both of them can be configured to log the data to a database.
 
Top
Sign up to the MyBroadband newsletter
X