Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: oracle on January 24, 2001, 02:39:45 PM

Title: logging dialup activity
Post by: oracle 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
Title: Re: logging dialup activity
Post by: stephen noble 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
Title: Re: logging dialup activity
Post by: oracle on January 28, 2001, 03:36:34 PM
Thanks for the info Stephen. I shall give it a burn.

oracle