Report forwarded to debian-bugs-dist@lists.debian.org, Paul Slootman <paul@debian.org>:
Bug#44526; Package isdnutils.
debian-bugs-dist@lists.debian.orgPaul Slootman
Subject: Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn
Reply-To: Philipp Frauenfelder , 44526@bugs.debian.org
Resent-From: Philipp Frauenfelder
Orignal-Sender: Philipp Frauenfelder
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Paul Slootman
Resent-Date: Tue, 07 Sep 1999 14:33:00 GMT
Resent-Message-ID:
Resent-Sender: iwj@debian.org
X-Debian-PR-Message: report 44526
X-Debian-PR-Package: isdnutils
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by bugs@bugs.debian.org id=B.93671393831512
(code B ref -1); Tue, 07 Sep 1999 14:33:00 GMT
Delivery-date: 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
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
Acknowledgement sent to Philipp Frauenfelder <pfrauenf@debian.org>:
New bug report received and forwarded. Copy sent to Paul Slootman <paul@debian.org>.
-t
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Philipp Frauenfelder
Subject: Bug#44526: Acknowledgement (include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn)
Message-ID:
In-Reply-To: <19990907161441.A2252@niederglatt.lugs.ch>
References: <19990907161441.A2252@niederglatt.lugs.ch>
X-Debian-PR-Message: ack 44526
Thank you for the problem report you have sent regarding Debian.
This is an automatically generated reply, to let you know your message has
been received. It is being forwarded to the developers' mailing list for
their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
Paul Slootman
If you wish to submit further information on your problem, please send
it to 44526@bugs.debian.org (and *not* to
bugs@bugs.debian.org).
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(administrator, Debian bugs database)
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
Information forwarded to debian-bugs-dist@lists.debian.org, Paul Slootman <paul@debian.org>:
Bug#44526; Package isdnutils.
debian-bugs-dist@lists.debian.orgPaul Slootman
Subject: Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn
Reply-To: Paul Slootman , 44526@bugs.debian.org
Resent-From: Paul Slootman
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Paul Slootman
Resent-Date: Tue, 07 Sep 1999 14:52:49 GMT
Resent-Message-ID:
Resent-Sender: iwj@debian.org
X-Debian-PR-Message: report 44526
X-Debian-PR-Package: isdnutils
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by 44526-bugs@bugs.debian.org id=B44526.9367157928110
(code B ref 44526); Tue, 07 Sep 1999 14:52:49 GMT
Date: Tue, 7 Sep 1999 16:49:49 +0200
From: Paul Slootman
To: Philipp Frauenfelder
Cc: 44526@bugs.debian.org
Message-ID: <19990907164948.B25080@janux>
References: <19990907161441.A2252@niederglatt.lugs.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.94.15i
In-Reply-To: <19990907161441.A2252@niederglatt.lugs.ch> from "Philipp Frauenfelder" on 1999/09/07 16:14 +0200
On Tue 07 Sep 1999, Philipp Frauenfelder wrote:
>
> The call logs of the isdnutils package (I'm not sure which
isdnlog
> 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.
Opinions differ on this. I (and many others) like to keep these logs
permanently, so that you can always use isdnrep to show the calls from
e.g. February or all calls to the ISP this year. This is real data, not
simply some log file...
If you don't want to keep them longer, you are of course free to make a
cronjob that handles them.
> 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.
Yes, that's good. Rotating the logs can then be done in
/etc/cron.monthly/isdnutils, for example. I can add some example
scripts.
Paul Slootman
--
home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org
http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands
Acknowledgement sent to Paul Slootman <paul@wau.mis.ah.nl>:
Extra info received and forwarded to list. Copy sent to Paul Slootman <paul@debian.org>.
-t
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Paul Slootman
Subject: Bug#44526: Info received (was Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn)
Message-ID:
In-Reply-To: <19990907164948.B25080@janux>
References: <19990907164948.B25080@janux>
X-Debian-PR-Message: ack-info-maintonly 44526
Thank you for the additional information you have supplied regarding
this problem report. It has been forwarded to the developer(s) and
to the developers' mailing list to accompany the original report.
Your message has been sent to the package maintainer(s):
Paul Slootman
If you wish to continue to submit further information on your problem,
please send it to 44526@bugs.debian.org, as before.
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(administrator, Debian bugs database)
Received: (at 44526) by bugs.debian.org; 7 Sep 1999 14:49:52 +0000
Received: (qmail 8100 invoked from network); 7 Sep 1999 14:49:51 -0000
Received: from ahwau.xs4all.nl (HELO janux.wau.mis.ah.nl) (mail@194.109.102.29)
by master.debian.org with SMTP; 7 Sep 1999 14:49:51 -0000
Received: from paul by janux.wau.mis.ah.nl with local (Exim 2.05 #1 (Debian))
id 11OMZB-0006fK-00; Tue, 7 Sep 1999 16:49:49 +0200
Date: Tue, 7 Sep 1999 16:49:49 +0200
From: Paul Slootman
To: Philipp Frauenfelder
Cc: 44526@bugs.debian.org
Subject: Re: Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn
Message-ID: <19990907164948.B25080@janux>
References: <19990907161441.A2252@niederglatt.lugs.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.94.15i
In-Reply-To: <19990907161441.A2252@niederglatt.lugs.ch> from "Philipp Frauenfelder" on 1999/09/07 16:14 +0200
On Tue 07 Sep 1999, Philipp Frauenfelder wrote:
>
> The call logs of the isdnutils package (I'm not sure which
isdnlog
> 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.
Opinions differ on this. I (and many others) like to keep these logs
permanently, so that you can always use isdnrep to show the calls from
e.g. February or all calls to the ISP this year. This is real data, not
simply some log file...
If you don't want to keep them longer, you are of course free to make a
cronjob that handles them.
> 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.
Yes, that's good. Rotating the logs can then be done in
/etc/cron.monthly/isdnutils, for example. I can add some example
scripts.
Paul Slootman
--
home: paul@wurtel.demon.nl | work: paul@murphy.nl | debian: paul@debian.org
http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands
Information forwarded to debian-bugs-dist@lists.debian.org, Paul Slootman <paul@debian.org>:
Bug#44526; Package isdnutils.
debian-bugs-dist@lists.debian.orgPaul Slootman
Subject: Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn
Reply-To: Josip Rodin , 44526@bugs.debian.org
Resent-From: Josip Rodin
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Paul Slootman
Resent-Date: Tue, 07 Sep 1999 17:03:44 GMT
Resent-Message-ID:
Resent-Sender: iwj@debian.org
X-Debian-PR-Message: report 44526
X-Debian-PR-Package: isdnutils
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by 44526-bugs@bugs.debian.org id=B44526.9367229428398
(code B ref 44526); Tue, 07 Sep 1999 17:03:44 GMT
Date: Tue, 7 Sep 1999 18:47:49 +0200
From: Josip Rodin
To: 44526@bugs.debian.org
Message-ID: <19990907184748.A14475@cibalia.gkvk.hr>
References: <19990907161441.A2252@niederglatt.lugs.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.4i
In-Reply-To: <19990907161441.A2252@niederglatt.lugs.ch>; from Philipp Frauenfelder on Tue, Sep 07, 1999 at 04:14:41PM +0200
On Tue, Sep 07, 1999 at 04:14:41PM +0200, Philipp Frauenfelder wrote:
> 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.
This seems to be a good idea. At least to put them in the obvious
directory, and avoid breaking the filesystem hierarchy standard (IIRC).
> 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.
However, maintainer, it would be wiser to use the new method for rotating
the log files - with the "logrotate" package. Basically, you make a small
text file that includes some keywords, like those described in logrotate(8),
and install it in package as /etc/logrotate.d/isdnutils . And add "Suggests:
logrotate to your package's control file.
--
enJoy -*/\*- don't even try to pronounce my first name
Acknowledgement sent to Josip Rodin <joy@cibalia.gkvk.hr>:
Extra info received and forwarded to list. Copy sent to Paul Slootman <paul@debian.org>.
-t
From: owner@bugs.debian.org (Debian Bug Tracking System)
To: Josip Rodin
Subject: Bug#44526: Info received (was Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn)
Message-ID:
In-Reply-To: <19990907184748.A14475@cibalia.gkvk.hr>
References: <19990907184748.A14475@cibalia.gkvk.hr>
X-Debian-PR-Message: ack-info-maintonly 44526
Thank you for the additional information you have supplied regarding
this problem report. It has been forwarded to the developer(s) and
to the developers' mailing list to accompany the original report.
Your message has been sent to the package maintainer(s):
Paul Slootman
If you wish to continue to submit further information on your problem,
please send it to 44526@bugs.debian.org, as before.
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(administrator, Debian bugs database)
Received: (at 44526) by bugs.debian.org; 7 Sep 1999 16:49:02 +0000
Received: (qmail 8382 invoked from network); 7 Sep 1999 16:48:55 -0000
Received: from cibalia.gkvk.hr (mail@161.53.211.3)
by master.debian.org with SMTP; 7 Sep 1999 16:48:55 -0000
Received: from joy by cibalia.gkvk.hr with local (Exim 2.05 #1 (Debian))
id 11OOPN-0003wB-00; Tue, 7 Sep 1999 18:47:49 +0200
Date: Tue, 7 Sep 1999 18:47:49 +0200
From: Josip Rodin
To: 44526@bugs.debian.org
Subject: Re: Bug#44526: include example script for isdnrep in package, rotate call logs, move call logs to /var/log/isdn
Message-ID: <19990907184748.A14475@cibalia.gkvk.hr>
References: <19990907161441.A2252@niederglatt.lugs.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.4i
In-Reply-To: <19990907161441.A2252@niederglatt.lugs.ch>; from Philipp Frauenfelder on Tue, Sep 07, 1999 at 04:14:41PM +0200
On Tue, Sep 07, 1999 at 04:14:41PM +0200, Philipp Frauenfelder wrote:
> 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.
This seems to be a good idea. At least to put them in the obvious
directory, and avoid breaking the filesystem hierarchy standard (IIRC).
> 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.
However, maintainer, it would be wiser to use the new method for rotating
the log files - with the "logrotate" package. Basically, you make a small
text file that includes some keywords, like those described in logrotate(8),
and install it in package as /etc/logrotate.d/isdnutils . And add "Suggests:
logrotate to your package's control file.
--
enJoy -*/\*- don't even try to pronounce my first name