diff --git a/roles/monit/templates/wireguard b/roles/monit/templates/wireguard index 1d228d4..98a44c3 100644 --- a/roles/monit/templates/wireguard +++ b/roles/monit/templates/wireguard @@ -1,5 +1,5 @@ check host wireguard address {{ monit_wireguard_ip }} start program = "/usr/bin/systemctl start wg-quick@wg0" stop program = "/usr/bin/systemctl stop wg-quick@wg0" - if failed then alert - if failed for 3 cycles then restart + if failed ping then alert + if failed ping for 5 cycles then restart