Koozali.org: home of the SME Server

logging dialup activity

oracle

logging dialup activity
« on: January 24, 2001, 02:39:45 PM »
I am running E-smith 4.0 server and quite happily using it in dialup mode with a medium time set. Whilst this is quite fine I want to know if I can record the dialup times so that I have some record of when the server has been on and off line.

Anybody know a way to do it....

Thanks in advance

oracle

stephen noble

Re: logging dialup activity
« Reply #1 on: January 27, 2001, 02:48:12 PM »
in
/etc/e-smith/templates/etc/ppp/ip-down.local/30notify
add
/bin/mail -s "dialup closed date" youremail < /dev/null
or pipe to a log file

*+*+
in
/etc/e-smith/templates/etc/ppp/ip-up.local
add
/bin/mail -s "dialup at date" youremail < /dev/null

stephen

oracle

Re: logging dialup activity
« Reply #2 on: January 28, 2001, 03:36:34 PM »
Thanks for the info Stephen. I shall give it a burn.

oracle