% nav = render_erb('_nav.html.erb', binding) %> <% head = render_erb('_head.html.erb', binding) %> <% foot = render_erb('_foot.html.erb', binding) %>
No media
<% else %>Media | Address | Interval | Summary Mode | Summary Threshold | |||||
---|---|---|---|---|---|---|---|---|---|
PagerDuty |
<% @pagerduty_credentials.each_pair do |pk, pv| %>
<%= 'password'.eql?(pk) ? h("#{pk}: ...") : h("#{pk}: #{pv}") %> <% end %> |
<% else %> | <%= h mk.capitalize %> | <%= h mv %> | <% if @contact.media_intervals[mk] %> <%= h @contact.media_intervals[mk] %> seconds <% else %> no custom interval <% end %> | <% if alerting[mk].length >= @contact.media_rollup_thresholds[mk].to_i %> Yes - <% else %> No - <% end %> <%= alerting[mk].length %> alerting | <% if @contact.media_rollup_thresholds[mk] %> <%= h @contact.media_rollup_thresholds[mk] %> <% else %> - <% end %> | <% end %>
These failing checks are currently alerting because they are not acknowledged, not in scheduled maintenance, and currently allowed by this contact's notification rules.
Media | Alerting Checks |
---|---|
<%= h media.capitalize %> |
<% checks.each do |entity_check| %>
<% entity, check = entity_check.split(':', 2) %>
<% check_link = "" +
h(check) + ""%>
<%= h entity %> ::
<%= check_link %> <% end %> |
No alerting checks, yay! |
No entities
<% else %>Entity | Checks |
---|---|
<%= h entity.name %> | <% checks.each do |check| %> <%= "#{ h check }" %> <% end %> |
No notification rules
<% else %>ID | Entities | Tags | Warning Media | Critical Media | Time Restrictions | Blackholes |
---|---|---|---|---|---|---|
<%= h rule.id %> | <%= h( (rule.entities && !rule.entities.empty?) ? rule.entities.join(', ') : '-') %> | <%= h( (rule.tags && !rule.tags.empty?) ? rule.tags.to_a.join(', ') : '-') %> | <%= h( (rule.warning_media && !rule.warning_media.empty?) ? rule.warning_media.join(', ') : '-')%> | <%= h( (rule.critical_media && !rule.critical_media.empty?) ? rule.critical_media.join(', ') : '-') %> | <%= h(rule.time_restrictions) %> | <% blackholes = [] %> <% blackholes << 'Warning' if rule.warning_blackhole %> <% blackholes << 'Critical' if rule.critical_blackhole %><%= h(blackholes.join(', ')) %> |