From owner-freebsd-questions Wed Dec 19 1:15:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by hub.freebsd.org (Postfix) with ESMTP id 3168337B41E for ; Wed, 19 Dec 2001 01:15:06 -0800 (PST) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id fBJ9Eri26648; Wed, 19 Dec 2001 11:14:53 +0200 Message-Id: <200112190914.fBJ9Eri26648@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 19 Dec 01 11:14:33 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 19 Dec 01 11:14:23 +0200 From: "Toomas Aas" Organization: Tartu City Government To: Garance A Drosihn , bsd-freak@mbox.com.au, questions@freebsd.org Date: Wed, 19 Dec 2001 11:14:12 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: ping failure script In-reply-to: References: <113fc9110004.110004113fc9@mbox.com.au> 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 Hello! > At 2:03 PM +1100 12/17/01, BSD Freak wrote: > >IF 3 consecutive pings to my.host.com fail THEN > >echo "Link is DOWN!!" | mail me@mycompany.com > >end > > Check the 'fping' module in ports. It is designed to make this > sort of checking much easier (particularly if you are checking > multiple hosts). Also worth mentioning is /usr/ports/net/icmpmonitor. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Shell to DOS... Come in DOS, do you copy? Shell to DOS... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message