Thread View: news.software.nntp
2 messages
2 total messages
Started by Kean Meng, Lim
Tue, 18 Apr 2000 00:00
Innd logging problem
Author: Kean Meng, Lim
Date: Tue, 18 Apr 2000 00:00
Date: Tue, 18 Apr 2000 00:00
14 lines
949 bytes
949 bytes
I am running INN2.2.2 on BSDi4.1 but there was no log at all ie. news.notice except for /var/news/log/news. I've checked Makefile.global & inn.conf, all logging pointing to /var/news/log. It seems that BSDi4.1 has specified logging for news? Anybody having the same problem? --kean meng MSA, http://www.geocities.com/Athens/Delphi/3932/
Re: Innd logging problem
Author: Russ Allbery
Date: Mon, 17 Apr 2000 00:00
Date: Mon, 17 Apr 2000 00:00
76 lines
3933 bytes
3933 bytes
Kean Meng, Lim <kmlim@cheerful.com> writes:
> I am running INN2.2.2 on BSDi4.1 but there was no log at all ie.
> news.notice except for /var/news/log/news.
See <http://www.eyrie.org/~eagle/faqs/inn.html#3.3>:
Subject: 3.3. news.notice is empty and the nightly report is missing things
You have syslog set up incorrectly.
INN logs nearly everything except article trace information via syslog.
It expects syslog to write its log messages into particular files under
~news/log, unless you gave it a different path at configure time. You'll
need to set up logging of INN-related log messages in your system
/etc/syslog.conf. From INSTALL in the current development version:
If your system understands the `news' syslog facility, INN will use
it; otherwise, it will log to `local1'. Nearly every modern system
has a `news' syslog facility so you can safely assume that yours does,
but if in doubt take a look at the output from running `configure'.
You should see a line that looks like:
checking log level for news... LOG_NEWS
If that says LOG_LOCAL1 instead, change the below instructions to use
`local1' instead of `news'.
Edit /etc/syslog.conf on your system and add lines that look like the
following:
news.crit /usr/local/news/log/news.crit
news.err /usr/local/news/log/news.err
news.notice /usr/local/news/log/news.notice
(Change the path names as necessary if you installed INN in a
different location than /usr/local/news.) These lines *must* be
tab-delimited, so don't copy and paste from these instructions. Type
it in by hand and make sure you use a tab, or you'll get mysterious
failures. You'll also want to make sure that news log messages don't
fill your other log files (INN generates a lot of log traffic); for
every entry in /etc/syslog.conf that starts with `*', add `;news.none'
to the end of the first column. For example, if you have a line like:
*.err /dev/console
change it to:
*.err;news.none /dev/console
(You can choose not to do this for the higher priority log messages,
if you want to make sure they go to your normal high-priority log
files as well as INN's. Don't bother with anything lower priority
than `crit', though. `news.err' isn't interesting enough to want to
see all the time.) Now, make sure that the news log files exist;
syslog generally won't create files automatically. Enter the
following commands:
touch /usr/local/news/log/news.crit
touch /usr/local/news/log/news.err
touch /usr/local/news/log/news.notice
chown news /usr/local/news/log/news.*
chgrp news /usr/local/news/log/news.*
(again adjusting the paths if necessary for your installation).
Finally, send a HUP signal to syslogd to make it re-read its
configuration file.
You don't have to worry about rotating these log files; news.daily (which
should be run nightly) will take care of that and innreport generates a
daily summary report from them.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
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