From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 23:51:26 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 3B0D916A426 for ; Fri, 6 Jan 2006 23:51:26 +0000 (GMT) (envelope-from rowdy@netspace.net.au) Received: from mail.netspace.net.au (whirlwind.netspace.net.au [203.10.110.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD14D43D98 for ; Fri, 6 Jan 2006 23:51:12 +0000 (GMT) (envelope-from rowdy@netspace.net.au) Received: from [192.168.2.7] (220-253-38-72.VIC.netspace.net.au [220.253.38.72]) by mail.netspace.net.au (Postfix) with ESMTP id BCFC912FDA1; Sat, 7 Jan 2006 10:51:09 +1100 (EST) Message-ID: <43BF026D.50605@netspace.net.au> Date: Sat, 07 Jan 2006 10:51:09 +1100 From: Rowdy User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: brianjohn@fusemail.com References: <52231.71.37.238.58.1136553753.fusewebmail-19592@webmail.fusemail.com> In-Reply-To: <52231.71.37.238.58.1136553753.fusewebmail-19592@webmail.fusemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: script to monitor internet connection 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: Fri, 06 Jan 2006 23:51:26 -0000 Brian John wrote: > Hello, I would like to write a script to monitor my internet > connection status. My home connection goes down fairly often and I > would like to get an idea for just how often it goes down and if > possible how long it goes down for. Could someone help me write a > script that will check my connection to the internet and log whenever > it goes down and possibly how long it goes down for? I want to have > some evidence to give to my ISP that my connection is going down. > > Thanks > > /Brian Assuming it is a PPP connection, type 'man ppp' and read about the files /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown - they should allow you to echo a line to a log file of your own devising. Rowdy