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.
- You could use the ping plug-in for collectd to monitor ping time from your ubuntu gateway to some selected internet hosts.
- If your router supports SNMP, You could use mrtg to monitor traffic on the router interfaces.
- You could install smtpd on your ubuntu gateway and use mrtg to monitor the gateway interfaces.
- 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).