further tweaking of monit wireguard monitoring

This commit is contained in:
KemoNine 2020-08-05 01:06:59 +00:00
parent adfd8a3ba3
commit d5b5c482a5
1 changed files with 2 additions and 2 deletions

View File

@ -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