Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

Connectivity check

Connectivity checking is a NetworkManager functionality that allows periodically testing whether the system can actually access the internet or not. The network-manager snap allows configuring this feature by using the following snap settings:

  • connectivity.interval : it specifies the number of seconds between checks. If set to 0, it disables connectivity check. Set to 300 by default.
  • connectivity.response : This is the expected HTTP body response from the server specified by connectivity.uri.
  • connectivity.uri : The URI where NM is going to periodically access to check connectivity.

More details on how these options work can be found in the connectivity section of the NetworkManager.conf configuration file documentation.

Some example commands on how to set a check every three minutes using the Ubuntu connectivity check server are

$ snap set network-manager connectivity.uri=http://connectivity-check.ubuntu.com/ $ snap set network-manager connectivity.interval=180

This page was last modified 1 year, 2 months ago. Help improve this document in the forum.