From d5b5c482a5bf7333ca0b1ee9c581235327ae187a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Wed, 5 Aug 2020 01:06:59 +0000 Subject: [PATCH] further tweaking of monit wireguard monitoring --- roles/monit/templates/wireguard | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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