Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: rickjones on June 19, 2004, 09:05:26 PM
-
Is there a simple way to monitor the total accumulated data traffic on the ppp i/f over a given period of time?
I want to know this as I'm considering switching to an ADSL service with a monthly ceiling, but I've no idea if my total traffic is below or above this amount.
TIA
-
Awatats will give you this info by IP on your local LAN for HTTP traffic but the only way I know to do this simply (but very crude) would be to reboot the server on the first of the month and then review the output of ifconfig on the server for your external interface (eth0, eth1, ppp, etc).
BTW:- wots Crowthorne like these days, used to live there 30 odd years ago?
-
I don't think AWStats will help much, but using ifconfig is a thought. Only problem is that it only holds the total since the connection last came up, and although I'm "always on" the link does drop out from time to time, and re-start itself. Maybe it's possible to tweak the if-down event to append the total to a log? I'll give it a try at some stage.
Anyway, I looked at the total since the last link restart, and with a bit of extrapolation it appears I'll be well over the monthly limit I had in mind. :-( Probably knocks that one on the head!
Crowthorne's still a nice place - I've been here about 16 yrs, it's slowly getting more built up though. They're just starting to re-arrange the High St. with a new "Village Square" kind of thingy - all been a bit controversial with conservative types.
A recent "quality of life" analysis came up with Crowthorne as the 2nd best place to live in the UK (1st was Chalfont)! I think it was a somewhat arbitrary formula (but not an opinion poll) so take with a pinch of salt. :lol:
-
Not perfect, but why not use phpSysInfo?
It will report all traffic on eth0 & eth1 - my clients seem to be able to consume around 2Gbytes a week on their ADSL connections...
No doubt some serious work with mrtg could get you exactly what you need.