[ previous ] [ next ] [ threads ]
 
 From:  Peter Allgeyer <allgeyer at web dot de>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall-dev] Uptime WAN
 Date:  Mon, 10 Jan 2005 18:00:50 +0100
Hi Florian!

Am Montag, den 10.01.2005, 15:39 +0100 schrieb Florian Munz:
> What programm ist responsible for the ppp connection? Maybe the uptime
> (or connection time) is already provided by this?
No it isn't. The pppoe connection is provided by mpd [1].

It is possible to check the return status of mpd and write a timestamp
to a temporary file. Going to the interface status page the timestamp
could be read and being displayed in human readable format. Not bad. But
what about connections being broken? Not so simple without parsing the
logs. It would be better to parse the logs for your own, writing a
simple perl script, IMHO.

Ciao ...
	... PIT ...

[1] http://www.dellroad.org/mpd/index