From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 15:32:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5AC8816A4DE for ; Thu, 6 Jul 2006 15:32:17 +0000 (UTC) (envelope-from nalists@scls.lib.wi.us) Received: from mail.scls.lib.wi.us (mail.scls.lib.wi.us [198.150.40.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 085A943D6A for ; Thu, 6 Jul 2006 15:32:16 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from [172.26.2.238] ([172.26.2.238]) by mail.scls.lib.wi.us (8.13.1/8.13.1) with ESMTP id k66FWBmg080987; Thu, 6 Jul 2006 10:32:11 -0500 (CDT) (envelope-from nalists@scls.lib.wi.us) Message-ID: <44AD2CFB.1000606@scls.lib.wi.us> Date: Thu, 06 Jul 2006 10:32:11 -0500 From: Greg Barniskis User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Paul Hamilton References: <032f01c6a10e$494e4c40$6600a8c0@w2k2> In-Reply-To: <032f01c6a10e$494e4c40$6600a8c0@w2k2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: using fping to monitor internet connection status X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 15:32:17 -0000 Paul Hamilton wrote: > Hi, > > I need to monitor a number of IP addresses, so that if they ALL go down (say > three IP's), then that is a pretty good indication that my server has lost > internet connectivity. [snip] > Any idea's on a ping tool or simple script? Your test would be a little simpler if you just test one IP address: your ISP's upstream router. Its reachability is quite definitive re: whether your ISP link is up or down. Even it it's assigned dynamically by DHCP, you should be able to write a script that pulls that IP, pings it a few times, and checks the result. No special tools necessarily required. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) , (608) 266-6348