Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My ISP is known for having frequent downtimes. I use a ubuntu 10.04 based server as a primary gateway for my NAT network. I am looking for a tool or script that will measure the duration of each down time.

share|improve this question
Hopefully you'll be giving this information to your ISP and complaining. I've had my fair share of expensive under-par ISP service. – n0pe Sep 25 '11 at 19:33
up vote 2 down vote accepted

Some ideas:

  1. You could use the ping plug-in for collectd to monitor ping time from your ubuntu gateway to some selected internet hosts.
  2. If your router supports SNMP, You could use mrtg to monitor traffic on the router interfaces.
  3. You could install smtpd on your ubuntu gateway and use mrtg to monitor the gateway interfaces.
  4. Last, but not least, you could use snmp collectd plug-in to monitor directly the uptime on your router wan interface (but this requires some basic snmp knowledge).
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.