unifi_watchdog - USG failover watchdog

Checks a Unifi Security Gateway to make sure the failover WAN is healthy. Connects via SSH; the USG must be in your known_hosts file. Requires the specified interface to have status Running and the ping target to be REACHABLE.

router_address
Type:

string

Required:

true

the address of the USG

router_username
Type:

string

Required:

true

the username to log in as

router_password
Type:

string

Required:

conditional

the password to log in with. Required if not using ssh_key.

ssh_key
Type:

string

Required:

conditional

path to the SSH private key to log in with. Required if not using router_password.

primary_interface
Type:

string

Required:

false

Default:

pppoe0

the primary WAN interface

secondary_interface
Type:

string

Required:

false

Default:

eth2

the secondary (failover) WAN interface