Article View: news.software.nntp
Article #30160Re: Joys of INN 2.1+Linux+newbie admin!
From: Joe Bernstein
Date: Wed, 29 Jul 1998 00:00
Date: Wed, 29 Jul 1998 00:00
120 lines
6675 bytes
6675 bytes
In article <6pnvjh$45l@huitzilo.tezcat.com>, I wrote:
> I'm going to follow up to this post with a bunch of config files that
> I have questions about.
> uname -a
>
> Linux SITE 2.0.27 #22 Thu Mar 12 18:38:29 CST 1998 i586
Already posted, the inn.conf. I won't post the control.ctl,
distrib.pats, expire.ctl, moderators, overview.ctl, or overview.fmt
because none of them seems likely to be doing me harm (but corrections
welcome!). The same holds for motd.news, which is empty, and
storage.ctl, which has no uncommented lines (I'm not running the
storeageAPI, this box is way too small to justify it).
I'd assumed that without the storeageAPI the configure would leave
cycbuff.conf bare, and without any expression of interest in syncing
it would also leave actsync.cfg and actsync.ign bare. Oops. Do I
need to delete these (*non*-empty) files?
So onward. This post has innreport.conf and innwatch.ctl.
First innreport.conf ***starts here***
section default {
libpath "/usr/local/news/lib";
logpath "/usr/local/news/log";
unknown true; # want unknown entries.
max_unknown 50; # max unknown entries to display.
casesensitive true;
module "innreport_inn"; # ${libpath}/${module}.pm
unwanted_log "unwanted.log"; # ${logpath}/${unwanted_log}
text true;
html false;
graph true; # need 'html'
archive true; # use false to keep only the latest HTML report.
index "index.html"; # name of the HTML index file.
# html_dir "/var/www/News/stats"; # default to pathhttp in inn.conf
img_dir "pics"; # images will go to ${html_dir}/${img_dir}
cycle none; # use a number or 'none'.
separator "."; # use a valid filename character.
title "Daily Usenet report";
# title "Daily Usenet report for <A HREF=\"/stat/\">news.y.z</A>";
# footer "Local contact: <A HREF=\"mailto:x@y.z\">x@y.z</A>";
# html_body "BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"";
# html_header_file "header.html"; # ${html_dir}/${html_header_file}
# html_footer_file "footer.html"; # ${html_dir}/${html_footer_file}
graph_width 550; # graph width (in pixels)
transparent true; # graph background transparent ?
graph_fg "#000000"; # graph foreground color.
graph_bg "#FFFFFF"; # graph background color.
};
***end of quote here***
After this, tons of stuff that looks like a relative of C snipped.
What is it all doing in a config file?
I *gather* what this is meant to do is produce a web page full of
informative data about my news server, which sounds like a fine thing,
though I'd rather it were documented. Am I going to get this report
automatically, or do I have to do something? How much space is it
going to eat up (ie, is it automatically retired or do I have to
clean up after it?)
Oh, well, at least it's commented. Then we get to this:
***begin quote, long lines left intact***
## First, just exit innwatch if innd has gone away.
!!! test -f ${LOCKS}/innd.pid && echo 0 || echo 1 ! eq ! 1 ! exit ! innd dead
## Next test the load average. Above first threshold pause, above higher
## threshold throttle, below restart limit undo whatever was done.
## =()<!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! @<INNWATCH_LOLOAD>@ ! go ! loadav>()=
!load!load hiload! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! lt ! 1000 ! go ! loadav
## =()<!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_HILOAD>@ ! throttle ! loadav>()=
!hiload!+ load! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 2000 ! throttle ! loadav
## =()<!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! @<INNWATCH_PAUSELOAD>@ ! pause ! loadav>()=
!load!+! uptime | tr -d ,. | awk '{ print $(NF - 2) }' ! gt ! 1500 ! pause ! loadav
## If load is OK, check space (and inodes) on various filesystems
## =()<!!! /bin/df . | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_SPOOLSPACE>@ ! throttle ! No space (spool)>()=
!!! /bin/df . | awk 'NR == 2 { print $4 }' ! lt ! 8000 ! throttle ! No space (spool)
## =()<!!! /bin/df ${BATCH} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_BATCHSPACE>@ ! throttle ! No space (newsq)>()=
!!! /bin/df ${BATCH} | awk 'NR == 2 { print $4 }' ! lt ! 800 ! throttle ! No space (newsq)
## =()<!!! /bin/df ${PATHDB} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_LIBSPACE>@ ! throttle ! No space (newslib)>()=
!!! /bin/df ${PATHDB} | awk 'NR == 2 { print $4 }' ! lt ! 25000 ! throttle ! No space (newslib)
## =()<!!! /bin/df -i . | awk 'NR == 2 { print $@<INNWATCH_INODES>@ }' ! lt ! @<INNWATCH_SPOOLNODES>@ ! throttle ! No space (spool inodes)>()=
!!! /bin/df -i . | awk 'NR == 2 { print $7 }' ! lt ! 200 ! throttle ! No space (spool inodes)
## =()<!!! /bin/df ${OVERVIEWDIR} | awk 'NR == 2 { print $@<INNWATCH_BLOCKS>@ }' ! lt ! @<INNWATCH_SPOOLSPACE>@ ! throttle ! No space (overview)>()=
!!! /bin/df ${OVERVIEWDIR} | awk 'NR == 2 { print $4 }' ! lt ! 8000 ! throttle ! No space (overview)
***end quote***
Um, ok. This is basically gibberish to me. I suspect if I just sat down
and pored over it for a few hours it would make sense, and there's a very
detailed and informative man page telling me to do so...
but that man page does *not* tell me what sort of basis I'm supposed to
do the (extremely necessary!) site-level configuration on, or where
in the mess it goes,
and it does *not* actually explain just how innwatch comes to be running
as a process on this system.
Is this a feature continuous with 1.4, say, so I can check the RKT?
Or is it a new thing, and if so, where can I find out the rest of the
story?
Thanks much
Joe Bernstein
--
Joe Bernstein, writer http://www.tezcat.com/~josephb/
Speaking for myself alone joe@sfbooks.com josephb@tezcat.com
Technical Details
Message-ID:
<6po4t6$7g6@huitzilo.tezcat.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-mailReferences:
<6pnvjh$45l@huitzilo.tezcat.com>Show Full Headers
Complete Article Headers
Message-ID: <6po4t6$7g6@huitzilo.tezcat.com> Subject: Re: Joys of INN 2.1+Linux+newbie admin! Date: Wed, 29 Jul 1998 00:00:00 +0000 From: josephb@tezcat.com (Joe Bernstein) References: <6pnvjh$45l@huitzilo.tezcat.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: 376130845 Organization: wish I could drop this line Newsgroups: news.software.nntp