Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jan 2006 10:51:09 +1100
From:      Rowdy <rowdy@netspace.net.au>
To:        brianjohn@fusemail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: script to monitor internet connection
Message-ID:  <43BF026D.50605@netspace.net.au>
In-Reply-To: <52231.71.37.238.58.1136553753.fusewebmail-19592@webmail.fusemail.com>
References:  <52231.71.37.238.58.1136553753.fusewebmail-19592@webmail.fusemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BF026D.50605>