From owner-freebsd-questions@FreeBSD.ORG Sun Nov 23 17:11:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61AF216A4CE for ; Sun, 23 Nov 2003 17:11:39 -0800 (PST) Received: from smtp08.wxs.nl (smtp08.wxs.nl [195.121.6.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF9943FCB for ; Sun, 23 Nov 2003 17:11:37 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp08.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HOU00JMC0KQ6Y@smtp08.wxs.nl> for freebsd-questions@FreeBSD.ORG; Mon, 24 Nov 2003 02:10:03 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.9p2/8.12.9) with ESMTP id hAO1BeLU060807; Mon, 24 Nov 2003 02:11:40 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.9p2/8.12.9/Submit) id hAO1Bdd7060806; Mon, 24 Nov 2003 02:11:39 +0100 (CET envelope-from akruijff) Date: Mon, 24 Nov 2003 02:11:39 +0100 From: Alex de Kruijff In-reply-to: <98017B2C-1E17-11D8-A141-000A95DBBE34@mercurycloud.net> To: Will Prater Message-id: <20031124011139.GA60027@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <3B75ECFD-1DE6-11D8-A141-000A95DBBE34@mercurycloud.net> <20031123215725.GC557@dds.nl> <98017B2C-1E17-11D8-A141-000A95DBBE34@mercurycloud.net> cc: freebsd-questions@FreeBSD.ORG Subject: Re: daemon monitoring X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 01:11:39 -0000 Dear Will, I've moved you text to the buttom so its more readable for other. On Sun, Nov 23, 2003 at 04:46:09PM -0800, Will Prater wrote: > On Nov 23, 2003, at 1:57 PM, Alex de Kruijff wrote: > >On Sun, Nov 23, 2003 at 10:52:48AM -0800, Will Prater wrote: > >>List, > >> > >>What are most of you using to monitor the running daemons? I have been > >>loooking into DJB daemontools which seems appropriate, but are there > >>any others that you reccomend? > >> > >>If DJB's daemontools is the one, could I get some more examples? I am > >>primarily trying to keep my mail system online: postfix, cyrus, > >>saslauthd, mysql, and spamassassin. > > > >I would advise Nagios. > > Sorry, I mispoke. I will be using Nagios to monitor, but I need to make > sure they will restart if there is an error. Will nagios do this as > well? > I don't *think* so. You could write a sh script (or any other) that does this. It could contain this line: result=px aux | grep SomeDaemon | wc -l If the result is zero than SomeDaemon is not running. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/