Thread View: news.software.nntp
1 messages
1 total messages
Started by Craig Dewick
Sun, 01 Mar 1998 00:00
innreport problems
Author: Craig Dewick
Date: Sun, 01 Mar 1998 00:00
Date: Sun, 01 Mar 1998 00:00
70 lines
2981 bytes
2981 bytes
[ Posted and Mailed ]
Hello,
I'm trying to get innreport-2.1.8 to work on my news server machine that's
running inn-1.7.2 with the Insync patch kit applied. I've installed the
Perl GD library distribution so that innreport can produce graphs as well
as HTML.
I've modified Inn's 'scanlogs' script to use innreport instead of innlog,
but now when news.daily tries to produce it's daily report, the report has
/news/bin/news.daily: No new history files
at the top.
No HTML files or graphs are produced, and the news logfiles don't get
cleared, so I'm guessing there something fundamentally wrong with what I'm
doing. Here's the modified part of 'scanlogs' (modified as per the
comments in the Perl innreport script):
BASE=`basename ${SYSLOG_NOTICE}`
OLD_SYSLOG=${OLD}/${BASE}.0
if [ -s ${OLD_SYSLOG} ] ; then
echo Syslog summary:
## ${PERL} ${NEWSLIB}/innlog.pl -c -g -d -a < ${OLD_SYSLOG}
${PERL} ${NEWSLIB}/innreport.pl -c 7 -d /home/sys/news/public_html -p /home/sys/news/public_html/pics ${OLD_SYSLOG}
echo ---------
echo ''
fi
rm -f ${OLD_SYSLOG}
I've also tried with the line invoking innreport looking like this:
${PERL} ${NEWSLIB}/innreport.pl -c 7 -d /home/sys/news/public_html -p /home/sys/news/public_html/pics < ${OLD_SYSLOG}
but the same result occurs.
When I upgraded to inn-1.7 I modified the crontab file for 'news' so that
the functions performed by 'news.daily' are spread apart thus:
#
# Generate daily news report once per day.
#
0 2 * * * /news/bin/news.daily delayrm norenumber expdir=/var/spool/news_tmp
#
# Renumber each newsgroup in the active file, then expire.
#
30 2 * * * /news/bin/news.daily notdaily noexpire
40 2 * * * /news/bin/expireover -s
Does anyone have any ideas about what I'm doing wrong? Until I tried using
innreport the daily reports that are mailed to the news admin account on
my server were being correctly produced and the logfiles where being
flushed.
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@lios.apana.org.au'
Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_shack.html' to
access my archive of Sun information and links to other places. For info
about Sun Ripened Kernels, go to 'http://www.zeta.org.au/~craig/srk'
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads