Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2006 23:10:15 +0800
From:      "Paul Hamilton" <paulh@bdug.org.au>
To:        <freebsd-questions@freebsd.org>
Subject:   using fping to monitor internet connection status
Message-ID:  <032f01c6a10e$494e4c40$6600a8c0@w2k2>

next in thread | raw e-mail | index | archive | help
Hi,
=20
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.  The most probable cause is usually the ADSL =
router,
and therefore needs a reboot.  I was hoping to use the 'fping' program, =
but
looking through the man file, there doesn't seem to be an exit status on
loosing ALL the pings.
=20
If one goes down, I don't care, maybe that server is down, so keep =
pinging
the other two etc.
=20
I was hoping to write this in Perl (the first fping example looked ok, =
until
I realised that it would activate when any one IP address became
unreachable, which means that I am still connected to the Internet).
=20
Any idea's on a ping tool or simple script?
=20
=20
=20
Regards,
=20
Paul Hamilton
Busselton, 6280
Australia
=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?032f01c6a10e$494e4c40$6600a8c0>