Skip to content

Commit

Permalink
Fix services alerts not showing at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Rauks committed May 16, 2014
1 parent a38ad14 commit 755be56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions static/css/style-munstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ body{
img.i {
display: block;
margin: 10px auto;
}

div.service-alert{
margin-top: 10px;
}
22 changes: 11 additions & 11 deletions templates/munin-serviceview.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

<div class="clearfix"></div>

<!-- Alerts -->
<TMPL_IF NAME="STATE_UNKNOWN">
<div class="alert alert-info"><strong>Note:</strong> This service is in UNKNOWN state, because something bad happened. Please check your network, the munin-node, and the plugin.</div>
</TMPL_IF>
<TMPL_IF NAME="STATE_CRITICAL">
<div class="alert alert-danger"><strong>Note:</strong> This service is in CRITICAL state because one of the values reported is outside the allowed range. Please see further down for information about the ranges and the graph for the values.</div>
</TMPL_IF>
<TMPL_IF NAME="STATE_WARNING">
<div class="alert alert-warning"><strong>Note:</strong> This service is in WARNING state because one of the values reported is outside the allowed range. Please see further down for information about the ranges and the graph for the values.</div>
</TMPL_IF>

<TMPL_LOOP NAME="SERVICES">
<!-- Alerts -->
<TMPL_IF NAME="STATE_UNKNOWN">
<div class="alert service-alert alert-info"><strong>Note:</strong> This service is in UNKNOWN state, because something bad happened. Please check your network, the munin-node, and the plugin.</div>
</TMPL_IF>
<TMPL_IF NAME="STATE_CRITICAL">
<div class="alert service-alert alert-danger"><strong>Note:</strong> This service is in CRITICAL state because one of the values reported is outside the allowed range. Please see further down for information about the ranges and the graph for the values.</div>
</TMPL_IF>
<TMPL_IF NAME="STATE_WARNING">
<div class="alert service-alert alert-warning"><strong>Note:</strong> This service is in WARNING state because one of the values reported is outside the allowed range. Please see further down for information about the ranges and the graph for the values.</div>
</TMPL_IF>

<div class="row">
<div class="col-md-6">
<img src="<TMPL_VAR NAME="IMGDAY">"
Expand Down

0 comments on commit 755be56

Please sign in to comment.