using fping to monitor internet connection status

Greg Barniskis nalists at
Thu Jul 6 15:32:17 UTC 2006

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)
<gregb at>, (608) 266-6348

More information about the freebsd-questions mailing list