From owner-freebsd-questions Mon Aug 6 2: 1:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from r2d2.twowaytv.co.uk (smeg.twowaytv.co.uk [194.6.2.163]) by hub.freebsd.org (Postfix) with ESMTP id EA00537B403 for ; Mon, 6 Aug 2001 02:01:13 -0700 (PDT) (envelope-from alex@twowaytv.co.uk) Received: from localhost (alex@localhost) by r2d2.twowaytv.co.uk (8.11.1/8.11.1) with ESMTP id f76928I77147; Mon, 6 Aug 2001 10:02:09 +0100 (BST) (envelope-from alex@twowaytv.co.uk) X-Authentication-Warning: r2d2.twowaytv.co.uk: alex owned process doing -bs Date: Mon, 6 Aug 2001 10:02:08 +0100 (BST) From: Alex Dyas Reply-To: To: Graham White Cc: FreeBSD-questions Subject: Re: Apache Perl Script In-Reply-To: Message-ID: <20010806095056.Y16514-100000@r2d2.twowaytv.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Not as such no. having said that tho, if it's apache particularly you're interested in, try mod_status ( http://httpd.apache.org/docs/mod/mod_status.html ) and turning extended status on. apache's status information is very useful for assessing load. writing a perl script to hit this page and process the numbers shouldn't be too hard. as a side note, i'm not sure restarting processes when they get overloaded is the best course of action. sounds like a larger problem needs fixing. alex.. On Fri, 3 Aug 2001, Graham White wrote: > Does anyone have an example of a perl script that continually loops checking > for load average and restarts a program (like Apache) if it is (loadaverage) > over a certain amount. > Thanks > > GW > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message