Received: (at submit) by bugs.debian.org; 7 Sep 1999 14:18:58 +0000 Received: (qmail 31509 invoked from network); 7 Sep 1999 14:18:57 -0000 Received: from obastrlx.etter.ch (195.246.75.1) by master.debian.org with SMTP; 7 Sep 1999 14:18:57 -0000 Received: (from uucp@localhost) by obastrlx.etter.ch (8.8.8/8.8.6-AS) with UUCP id QAA08219 for submit@bugs.debian.org; Tue, 7 Sep 1999 16:18:54 +0200 Delivery-date: Tue, 07 Sep 1999 16:14:41 +0200 Received: from pfrauenf by euler.niederglatt.lugs.ch with local (Exim 3.03 #1 (Debian)) id 11OM1B-0000aP-00; Tue, 07 Sep 1999 16:14:41 +0200 Date: Tue, 7 Sep 1999 16:14:41 +0200 From: Philipp Frauenfelder To: submit@bugs.debian.org Subject: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn Message-ID: <19990907161441.A2252@niederglatt.lugs.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0pre1i Sender: Philipp Frauenfelder Package: isdnutils Version: 1:3.0-13 Severity: wishlist The call logs of the isdnutils package (I'm not sure which program generates them) are in /var/lib/isdn but they are not rotated regularly. Best would be to move them to /var/log/isdn (I took me quite a long time to find them) and to rotate them at least once a month. Another good idea would be to include a script which uses isdnrep to extract the information from these call logs and generates some nice statistics (html page eg.). I include my /etc/cron.daily/isdnutils script to show what I mean. Regards, Philipp #!/bin/sh # /etc/cron.daily/isdnutils: generate HTML report of call logs FILE=/var/lib/isdn/calls DATE=`date -d yesterday +"%m%d%Y"` LINUXMSN=8505468 TOPATH=/var/www # calls my linux box did ( echo "" echo "" echo "" echo "Outgoing Calls (Computer)" echo "" echo "

Outgoing Calls (Computer)

" echo "" isdnrep -f$FILE -w0 -o -p '$LINUXMSN' -t$DATE- -s"%X %D %F %L %U %I %O" echo "
" echo "
isdnrep" date echo "" ) > $TOPATH/disdn-compi.html # other outgoing calls ( echo "" echo "" echo "" echo "Outgoing Calls" echo "" echo "

Outgoing Calls

" echo "" isdnrep -f$FILE -w0 -o -p 'n$LINUXMSN' -t$DATE- -s"%X %D calling %F %L %U" echo "
" echo "
isdnrep" date echo "" ) > $TOPATH/disdn-out.html # incoming calls ( echo "" echo "" echo "" echo "Incoming Calls" echo "" echo "

Incoming Calls

" echo "" isdnrep -f$FILE -w0 -i -t$DATE- -s"%X %D %H %T %F %L %U" echo "
" echo "
isdnrep" date echo "" ) > $TOPATH/disdn-in.html