[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

DSL: PPP traffic messen



Hi,

gibt es eine 'elegante' Lösung um den traffic über PPP zu messen.
Ich habe eine Debian Box als DSL Router laufen.
Mein Tarif (GMX) ist auf 2GM/Monat beschränkt.
Ich nutze pon/poff mit Dial on demand.

Ein einfaches addieren der Werte in /var/log/messages reicht nicht, da der ppp 
deamon dort alles aufsummiert bis zum nächsten pon/poff. (s.u.)

Sicherlich eine Kleinigkeit mit PERL, aber leider ich kann kein PERL :-(

Kennt jemand ein entspreches script?

Danke
Michael

router:~# grep "Sent" /var/log/messages
Nov 10 11:52:55 router pppd[535]: Sent 25016660 bytes, received 170522948 
bytes.
Nov 10 17:50:01 router pppd[535]: Sent 25267387 bytes, received 175240395 
bytes.
Nov 10 19:14:30 router pppd[535]: Sent 25304816 bytes, received 175281948 
bytes.
Nov 10 23:48:02 router pppd[535]: Sent 26713192 bytes, received 182139431 
bytes.
Nov 11 06:54:50 router pppd[535]: Sent 26719014 bytes, received 182150810 
bytes.
Nov 11 15:46:47 router pppd[535]: Sent 26747604 bytes, received 182173944 
bytes.
Nov 11 21:28:58 router pppd[535]: Sent 27359991 bytes, received 184041652 
bytes.
Nov 12 00:19:36 router pppd[535]: Sent 28219266 bytes, received 192701515 
bytes.
Nov 12 00:26:18 router pppd[6022]: Sent 35065 bytes, received 184219 bytes.
Nov 13 08:25:39 router pppd[6618]: Sent 794351 bytes, received 8659162 bytes.




Reply to: