Registered 2012-03-11 by Alkatron

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(qryDict)

_tx,_rx = bytes
_sec= seconds
qryDict = {'iface':'ppp0','isp':'','tblock':0,
                 'dtfrom':'yyyy/mm/dd','mintot':0,'voltot':0}

Install info on readme file

Project information

Maintainer:
Alkatron
Driver:
Alkatron
Licence:
GNU GPL v3

RDF metadata

View full history Series and milestones

trunk series is the current focus of development.

All code Code

Version control system:
Bazaar
Programming languages:
python/sh

All bugs Latest bugs reported

Get Involved

Downloads

Latest version is 0.2
released on 2012-03-26

All downloads