diff --git a/bundles/monit/files/monitrc b/bundles/monit/files/monitrc index 10058fe..2682ad1 100644 --- a/bundles/monit/files/monitrc +++ b/bundles/monit/files/monitrc @@ -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