Project

General

Profile

« Previous | Next » 

Revision 16cb7742

Added by Ohad Levy over 14 years ago

  • ID 16cb774245863cfba6ceca91deec13449b7a1ce2

fixes #80, fixes #106 and fixes #128

View differences:

app/views/dashboard/index.html.erb
<center>
<h2>Overview</h2>
<p>Generated at <%= Time.now %></p>
<p>Good Host Reports in the last 30 minutes <%= "#{@good_hosts} / #{@total_hosts}" %> hosts</p>
<p>Good Host Reports in the last 30 minutes <%= "#{@good_hosts} / #{@total_hosts}" %> hosts (<%=@good_hosts *100 / @total_hosts%>%) </p>
<%= graph("pie_3d" ,{:title => "Overview", :data => [@out_of_sync_hosts, @bad_hosts, @good_hosts],
:labels =>["Sync #{@out_of_sync_hosts}","Error - #{@bad_hosts}","OK - #{@good_hosts}"],
:line_colors => "0000FF,FF0000,00FF00" })
<%= graph("pie_3d" ,{:title => "Overview", :data => [@out_of_sync_hosts, @bad_hosts, @good_hosts, @active_hosts],
:labels =>["Sync #{@out_of_sync_hosts}","Error - #{@bad_hosts}","OK - #{@good_hosts}","Active - #{@active_hosts}"],
:line_colors => "0000FF,FF0000,00FF00,41A317" })
-%>
<%= graph("bar",:title => "Run Distribution in the last 30 minutes", :data => @puppet_runs,
......
:axis_labels => [(1..(30/@interval)).map{|t| t*@interval}, @puppet_runs.sort.uniq], :legend => "Clients")
-%>
<h2>Errors</h2>
<h2>Summary</h2>
<p>Hosts that had performed modifications <%= link_to @active_hosts, :action => "active" %></p>
<p>Out Of Sync Hosts <%= link_to @out_of_sync_hosts, :action => "OutOfSync" %></p>
<p>Hosts in Error State <%= link_to @bad_hosts, :action => "errors" %></p>
<p>Reports to Review <%= link_to @intersting_reports, :action => "reports" %></p>
</center>
<p>Total hosts <%= @total_hosts %></p>

Also available in: Unified diff