Sha256: 96cc40269985abb4b8329fa82bb1d9f40d2a44bd3a76587b654ab9563e0772ae
Contents?: true
Size: 1.19 KB
Versions: 20
Compression:
Stored size: 1.19 KB
Contents
<% if fetch(:nginx_major_domain, false) %> <% domain_list = [fetch(:nginx_major_domain, "").to_s.gsub(/^\*?\./, "")] %> <% else %> <% domain_list = [] %> <% Array(fetch(:nginx_domains)).each do |domain| %> <% domain_list << domain.gsub(/^\*?\./, "") %> <% end %> <% end %> # Check domains on port 80 <%= "(and 443 if ssl is on)" if fetch(:nginx_use_ssl) %> for <%= fetch(:application) %> [<%= fetch(:stage) %>] <% domain_list.uniq.each do |domain| %> check host <%= domain %> with address <%= domain %> if failed <% if fetch(:nginx_use_ssl) %> port 443 type TCPSSL protocol https <% else %> port 80 protocol http <% end %> <% if fetch(:monit_website_check_content, false) %> request "<%= fetch(:monit_website_check_path, '/') %>" content = "<%= fetch(:monit_website_check_text, '<!DOCTYPE html>') %>" <% end %> # status = 200 with timeout <%= fetch(:monit_website_check_timeout, 10) %> seconds for <%= fetch(:monit_website_check_cycles, 3) %> cycles then alert <% end %> ### For Version 5.6: # check host example.com with address example.com # if failed # url https://example.com # timeout 10 seconds # for 3 cycles # then alert
Version data entries
20 entries across 20 versions & 1 rubygems