monit #4

Merged
stillbeben merged 19 commits from monit into main 2022-01-04 18:25:08 +00:00
Showing only changes of commit 8afbfeb1e7 - Show all commits

View file

@ -51,5 +51,16 @@ check process ${service} matching "${options['bin']}"
% for port,port_options in options.get('ports', {}).items():
if failed port ${port} protocol ${port_options['protocol']} for ${port_options.get('cycles', '5')} cycles then restart
% endfor
% for domain,http_options in options.get('http', {}).items():
if failed host ${domain}
% if http_options['scheme'] == 'https':
port 443
protocol https
% else:
port 80
protocol http
% endif
then restart
% endfor
% endfor