Fix conditional, tweak monit wireguard monitoring configuration
This commit is contained in:
parent
aed60c31ff
commit
adfd8a3ba3
|
@ -49,7 +49,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
when: {{ monit_wireguard }}
|
||||
when: monit_wireguard
|
||||
notify:
|
||||
- restart monit
|
||||
tags:
|
||||
|
|
|
@ -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 does not exist then alert
|
||||
if does not exist for 3 cycles then restart
|
||||
if failed then alert
|
||||
if failed for 3 cycles then restart
|
||||
|
|
Loading…
Reference in a new issue