Log and summarize uptime and volume traffic for a ppp connection (script)
If you have more than one provider and configure wvdial with multiple dialer profiles, you can run "ppp_on [Dialer name]" instead of "wvdial <Dialer name>" to log connection info and have stats for different isp
To have stats run from terminal "pppmntr.py <Dialer name>",on the first start it creates the config file ~/.pppmntr with an empty [Defaults] profile to fill in with your own contract details.
You can create as many profiles as you have in wvdial.
If you have only one provider and use the wvdial default settings or use a different dialer you have to call stats by "pppmntr.py #"
Remaining time/bytes are coloured by the following scheme
green = time/bytes under the limit
yellow = time/bytes under 10% of the limit
red = time/bytes over the limit
It can be called by other python scripts too:
from pppmntr import getPppStats
_sec, _tx, _rx, _err = getPppStats(
_tx,_rx = bytes
_sec= seconds
qryDict = {'iface'
Install info on readme file
View full history Series and milestones
trunk series is the current focus of development.