Logging WAN downtime

My Turris Mox has been great, but lately my upstream provider has been flaky. My router (in modem mode) stops transmitting at random times, sometimes during an important Zoom call.

I’d like to quantify my downtime. Is there an easy way in Turris to log upstream network outages? I’m not looking to log monthly bandwidth used, I’m trying to log the number and duration of outages.

1 Like

I’ve scheduled a script in cron running every minute. It changes wan led color and logs an event to sys log if there is no response of ping to google dns server.

    if ping -c 1 -w 3 8.8.8.8
        then
            rainbow wan 00000F auto
        else
            rainbow wan red enable
            logger "DNS not available"
    fi

Inspired by https://www.s474n.com/project-turris-automaticke-nastaveni-rgb-led-dle-provozu/

2 Likes

You can use atlas probe as well for that (at least was working very well with a hw one). You get uptime report at the end of the month.

2 Likes

For the same goal than you @soren, I running an old-fashioned but working smokeping, in a reboot proof LXC containers on the Turris Omnia.
It probes well known and accurate assets as configured.
Does the job for “duration” and “number” :wink: