Article View: news.software.nntp
Article #17573Re: innwatch problem
From: Jon S. Helmer
Date: Tue, 06 May 1997 00:00
Date: Tue, 06 May 1997 00:00
40 lines
2227 bytes
2227 bytes
Jon S. Helmer (jon@gi.net) wrote:
: I've just installed INN 1.5.1 on Solaris 2.5.1 w/ recommended patches. I
: have everything working well, except for innwatch. When it tries to start
: from rc.news or from the command line, it gives the following error:
: /news/bin/innwatch: test: unknown operator - gt
: It apparently doesn't like this part of the script:
: ## Parse JCL.
: while [ $# -gt 0 ] ; do
: case X"$1" in
: I can't find anything wrong with this. Am I missing something? Thanks for
: any help you can provide!
: Jon S. Helmer
To follow up, the above portion of script is fine. What doesn't like the
gt operator is awk in my innwatch.ctl file. Here are the relevant
lines from that file:
## 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
Has anyone seen this problem before? I've check the FAQ for this problem
and found nothing. Any input would be appreciated. Thanks!
Jon S. Helmer
jon@gi.net
Technical Details
Message-ID:
<5knkiv$ou3@shocker.gi.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-mailReferences:
<5kllog$qc6@shocker.gi.net>Show Full Headers
Complete Article Headers
Message-ID: <5knkiv$ou3@shocker.gi.net> Subject: Re: innwatch problem Date: Tue, 06 May 1997 00:00:00 +0000 From: jon@gi.net (Jon S. Helmer) References: <5kllog$qc6@shocker.gi.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 X-Deja-AN: 239762029 Organization: Global Internet, Peace of Mind is finally Online! Newsgroups: news.software.nntp