🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26499

Re: innwatch console error message

#26499
From: Jon Mansey
Date: Tue, 24 Feb 1998 00:00
39 lines
1881 bytes
OK I think Ive found the problem.

The original innwatch.ctl was looking for field 7 of df -i to have the
value required, thus

!!! /bin/df -i . | awk 'NR == 2 { print $7 }' ! lt ! 200 ! throttle ! No space \
(spool inodes)

On my Linux (redHat 4.1, 2.0.33 etc etc) the df -i command outputs:

[news@ns news]$ df -i
Filesystem           Inodes   IUsed   IFree  %IUsed Mounted on
/dev/sda2             182272    2438  179834     1%  /
/dev/sda3             851968   14482  837486     2%  /usr

The free inodes are in the 4th field. There is no 7th field, hence the error.

So editing innwatch.ctl to:

!!! /bin/df -i . | awk 'NR == 2 { print $4 }' ! lt ! 200 ! throttle ! No space \
(spool inodes)

fixes the error message, and also I assume does a proper check for free
inodes ;-)

Jon.

In article <7359261236@port2.aixdialin.siu.edu>, (Jim Dutton) wrote:

> newsmaster@interpacket.net (Jon Mansey) writes:
> >/usr/news/bin/innwatch: [: integer expression expected before -lt
> 
> >I get this twice on my console every time innwatch runs.
> 
> Look closely at your INNWATCH config file for an entry with a
> non-integer before an "-lt" part. Might be just a simple typo.

Technical Details
Message-ID: <newsmaster-2402982343500001@pb.interpacket.net>
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: <newsmaster-2302982140340001@pb.interpacket.net> <7359261236@port2.aixdialin.siu.edu>

Show Full Headers
Complete Article Headers
Message-ID: <newsmaster-2402982343500001@pb.interpacket.net>
Subject: Re: innwatch console error message
Date: Tue, 24 Feb 1998 00:00:00 +0000
From: newsmaster@interpacket.net (Jon Mansey)
References: <newsmaster-2302982140340001@pb.interpacket.net> <7359261236@port2.aixdialin.siu.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
X-Deja-AN: 328436126
X-Server-Date: 25 Feb 1998 07:44:12 GMT
Distribution: inet
Organization: Interpacket
Newsgroups: news.software.nntp