Sha256: e01647d1d80a10686cfbdc06199dc6e0ad772bfa1cda079fd4ec6f0bf2e277ad

Contents?: true

Size: 453 Bytes

Versions: 70

Compression:

Stored size: 453 Bytes

Contents

# Check domains on port 80 <%= "(and 443 if ssl is on)" if fetch(:nginx_use_ssl) %> for <%= fetch(:application) %> [<%= fetch(:stage) %>]
<% Array(fetch(:nginx_domains)).each do |domain| %>
<% domain = domain.gsub(/^\*?\./, "") %>
check host <%= domain %> with address <%= fetch(:app_server_ip) %>
  if failed port 80 protocol http then alert
  # <% if fetch(:nginx_use_ssl) %>if failed port 443 type TCPSSL protocol http then alert<% end %>


<% end %>

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
magic_recipes_two-0.0.70 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.69 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.68 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.67 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.66 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.65 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.64 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.63 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.62 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.61 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.60 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.59 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.58 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.57 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.56 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.55 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.54 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.53 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.52 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.51 lib/generators/capistrano/magic_recipes/templates/monit/website.erb