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.50 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.49 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.48 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.47 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.46 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.45 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.44 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.43 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.42 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.41 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.40 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.39 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.38 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.37 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.36 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.35 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.34 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.33 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.32 lib/generators/capistrano/magic_recipes/templates/monit/website.erb
magic_recipes_two-0.0.31 lib/generators/capistrano/magic_recipes/templates/monit/website.erb