1 [% PROCESS 'html-incblocks.txt' %]
3 [% parentComment = nodeParam(parent(token),'comment') %]
5 INCLUDE htmlstart title='Graphs for ' _ xmlnorm(parentComment) printpath=1;
7 INCLUDE htmlstart title='Graphs for ' _ path(token) printpath=1;
11 [% INCLUDE variables %]
13 <P>[% xmlnorm(nodeParam(token,'comment')) %]</P>
17 [% monitors = nodeParam(token,'monitor');
19 moncount = monitors.split(',').size %]
20 <DIV CLASS="Monitors">
21 <DIV CLASS="MonitorsTitle">
22 <STRONG>Monitor[% (moncount > 1) ? 's' : '' %]:</STRONG>
23 [% (moncount > 1) ? moncount : '' %]
24 [% FOREACH monitor = monitors.split(',');
25 mondesc = param(monitor, 'comment') %]
26 <DIV CLASS="MonitorLine">
27 <SPAN CLASS="MonitorName">[% monitor %]</SPAN>
28 [% IF mondesc; %]<SPAN CLASS="MonitorDesc">([% mondesc %])</SPAN>[% END %]
35 [% IF nodeParam(token, 'ds-type') != 'rrd-multigraph' %]
36 [% dayValues = rrprint(token, 'rrd-print-daily') %]
37 [% lastValue = rrprint(token, 'rrd-print-last') %]
39 <P>Min: [% scale('%.1f', dayValues.0) %],
40 Avg: [% scale('%.1f', dayValues.1) %],
41 Max: <STRONG>[% scale('%.1f', dayValues.2) %]</STRONG>,
42 Last: [% scale('%.1f', lastValue) %]
48 graphviews = nodeParam(token,'rrgraph-views').split(',');
49 dayView = graphviews.1;
50 weekView = graphviews.2;
51 monthView = graphviews.3;
52 yearView = graphviews.4;
53 IF nodeParam(token, 'rrd-hwpredict') == 'enabled' and
54 ( param(view, 'rrd-hwpredict') == 'disabled' or variables.NOHW );
55 graphvars = ['NOHW', 1];
60 <H2>Last day graph</H2>
61 [% INCLUDE rrgraph view=dayView vars=graphvars %]
65 <H2>Last week graph</H2>
66 [% INCLUDE rrgraph view=weekView vars=graphvars %]
69 [% longterm = param(view, 'longterm') %]
73 <H2>Last month graph</H2>
74 [% INCLUDE rrgraph view=monthView %]
78 <H2>Last year graph</H2>
79 [% INCLUDE rrgraph view=yearView %]
84 <DIV CLASS="BottomShortcuts">
87 hwview='longterm-rrd-html';
88 termview='default-rrd-html';
90 hwview='default-rrd-html';
91 termview='longterm-rrd-html';
95 IF nodeParam(token, 'rrd-hwpredict') == 'enabled' and
96 param(view, 'rrd-hwpredict') != 'disabled';
97 IF not variables.NOHW;
100 termvars = ['NOHW', ''];
103 hwvars = ['NOHW', ''];
104 termvars = ['NOHW', 1];
106 INCLUDE shortcut url=url(token, hwview, hwvars)
107 text=hwaction _ " Holt-Winters"
108 title="Switch Holt-Winters prediction boundaries";
111 termview='default-rrd-html';
113 termview='longterm-rrd-html';
119 sctitle="View last day and last week graphs";
122 sctitle="View last day, week, month, and year graphs";
125 INCLUDE shortcut url=url(token, termview, termvars)
126 text=termstr _ "term view"
129 INCLUDE shortcut url=plainURL _ 'explain-rrdgraph.html'
131 title='Describe graph elements and values'
136 [% INCLUDE bottomline %]
137 [% INCLUDE htmlend %]