1 [%# Minimalistic HTML to include into an iframe %]
2 [% PROCESS 'html-incblocks.txt' %]
3 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
4 "http://www.w3.org/TR/html4/strict.dtd">
6 <!-- Torrus Copyright (c) 2003-2011 Stanislav Sinyagin -->
8 <META HTTP-EQUIV=
"Content-Type" CONTENT=
"text/html; charset=UTF-8">
9 <STYLE type=
"text/css" media=
"all">
11 background-color : white;
13 font-family : verdana, arial, helvetica, sans-serif;
29 padding-bottom :
10px;
37 background-color : inherit;
68 clear : both; /* needed for Opera
6.12 */
76 background-color : #eee;
92 DIV.LegendRow SPAN.LegendName {
98 DIV.LegendRow SPAN.LegendValue {
102 P.Variables SPAN.VariableName {
106 DIV.Graph, DIV.ShortGraph {
109 margin-bottom :
10px;
119 <DIV CLASS=
"Content">
121 [% graphdescr=nodeParam(token,'descriptive-nickname');
122 IF graphdescr.length
> 0 %]
123 <H1>Graphs for [% graphdescr %]
</H1>
126 [% INCLUDE variables %]
129 [% IF nodeParam(token, 'ds-type') != 'rrd-multigraph' %]
130 [% dayValues = rrprint(token, 'rrd-print-daily') %]
131 [% lastValue = rrprint(token, 'rrd-print-last') %]
133 <P>24-hour minimum: [% scale('%
.1f', dayValues
.0) %],
134 average: [% scale('%
.1f', dayValues
.1) %],
135 maximum:
<STRONG>[% scale('%
.1f', dayValues
.2) %]
</STRONG>.
136 Last: [% scale('%
.1f', lastValue) %]
142 graphviews = nodeParam(token,'rrgraph-views').split(',');
143 dayView = graphviews
.1;
144 weekView = graphviews
.2;
145 monthView = graphviews
.3;
146 yearView = graphviews
.4;
147 IF nodeParam(token, 'rrd-hwpredict') == 'enabled' and
148 ( param(view, 'rrd-hwpredict') == 'disabled' or variables.NOHW );
149 graphvars = ['NOHW',
1];
154 <H2>Last day graph
</H2>
155 [% INCLUDE rrgraph view=dayView vars=graphvars %]
159 <H2>Last week graph
</H2>
160 [% INCLUDE rrgraph view=weekView vars=graphvars %]
164 <H2>Last month graph
</H2>
165 [% INCLUDE rrgraph view=monthView %]
169 <H2>Last year graph
</H2>
170 [% INCLUDE rrgraph view=yearView %]
173 </DIV><!-- Content -->