# Check additional domains for <%= fetch(:application) %> [<%= fetch(:stage) %>] <% monit_website_list.each do |that| %> check host "<%= that[:name] %>" with address <%= that[:domain] %> <% if that[:ssl] %>if failed port 443 protocol https and certificate valid > 2 days then <%= monit_alert %><% end %> if failed <% if that[:ssl] %> port 443 type TCPSSL protocol https <% else %> port 80 protocol http <% end %> <% if that[:check_content] %> request "<%= that[:path] || '/' %>" content = "<%= that[:content] %>" <% else %> status = 200 <% end %> with timeout <%= that[:timeout] %> seconds for <%= that[:cycles] %> cycles then <%= monit_alert %> <% end %>