Project

General

Profile

« Previous | Next » 

Revision 0bb7ac8f

Added by Brian Gupta about 12 years ago

  • ID 0bb7ac8f3f071543bcb52c2c214708d8ebfb21a8

Changes to dashboard statistics. Fixes #1617

View differences:

app/views/dashboard/index.html.erb
<th>Data</th>
</tr>
<tr>
<td><%= searchable_links 'Hosts that had performed modifications', "last_report > \"#{Setting[:puppet_interval] + 5} minutes ago\" and (status.applied > 0 or status.restarted > 0)" %></td>
<td><%= @report[:active_hosts] %> </td>
<td><%= searchable_links 'Hosts that had performed modifications without error', "last_report > \"#{Setting[:puppet_interval] + 5} minutes ago\" and (status.applied > 0 or status.restarted > 0) and (status.failed = 0)" %></td>
<td><%= @report[:active_hosts_ok_enabled] %> </td>
</tr>
<tr>
<td><%= searchable_links 'Hosts in Error State', "last_report > \"#{Setting[:puppet_interval] + 5} minutes ago\" and (status.failed > 0 or status.failed_restarts > 0)" %></td>
<td><%= @report[:bad_hosts] %> </td>
<td><%= searchable_links 'Hosts in Error State', "last_report > \"#{Setting[:puppet_interval] + 5} minutes ago\" and (status.failed > 0 or status.failed_restarts > 0) and status.enabled = true" %></td>
<td><%= @report[:bad_hosts_enabled] %> </td>
</tr>
<tr>
<td><%=searchable_links "Good Host Reports in the last #{Setting[:puppet_interval]+5} minutes", "last_report > \"#{Setting[:puppet_interval]+5} minutes ago\" and (status.enabled = true or status.applied =true) and status.failed = 0" %></td>
<td> <%= "#{@report[:good_hosts]} / #{@report[:total_hosts]}" %> hosts (<%= @report[:percentage] %>%)</td>
<td><%=searchable_links "Good Host Reports in the last #{Setting[:puppet_interval]+5} minutes", "last_report > \"#{Setting[:puppet_interval]+5} minutes ago\" and status.enabled = true and status.applied = 0 and status.failed = 0" %></td>
<td> <%= "#{@report[:good_hosts_enabled] - @report[:active_hosts_ok_enabled]} / #{@report[:total_hosts]}" %> hosts (<%= @report[:percentage] %>%)</td>
</tr>
<tr>
<td><%= searchable_links 'Hosts that had pending changes', 'status.pending > 0' %></td>
<td><%= @report[:pending_hosts] %> </td>
<td><%= searchable_links 'Hosts that had pending changes', 'status.pending > 0 and status.enabled = true' %></td>
<td><%= @report[:pending_hosts_enabled] %> </td>
</tr>
<tr>
<td><%= searchable_links 'Out Of Sync Hosts', "last_report < \"#{Setting[:puppet_interval] + 5} minutes ago\" and status.enabled = true" %></td>
<td><%= @report[:out_of_sync_hosts] %> </td>
<td><%= @report[:out_of_sync_hosts_enabled] %> </td>
</tr>
<tr>
<td><%= searchable_links 'Hosts With No Reports', "not has last_report" %></td>
<td><%= searchable_links 'Hosts With No Reports', "not has last_report and status.enabled = true" %></td>
<td><%= @report[:reports_missing] %> </td>
</tr>
<tr>

Also available in: Unified diff