🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #45799

Re: Innd logging problem

#45799
From: Russ Allbery
Date: Mon, 17 Apr 2000 00:00
76 lines
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/>

Technical Details
Message-ID: <ylhfd0jrc2.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <38FB3661.2A3C4098@cheerful.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylhfd0jrc2.fsf@windlord.stanford.edu>
Subject: Re: Innd logging problem
Date: Mon, 17 Apr 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <38FB3661.2A3C4098@cheerful.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 612432492
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: news.software.nntp