/[rrd-simple-monitoring]/cgi-bin/host.tmpl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /cgi-bin/host.tmpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Thu Jul 16 20:01:16 2009 UTC (10 years, 3 months ago) by dpavlin
File size: 4394 byte(s)
turn min/max/last <pre> into table for nicer layout

1 <TMPL_INCLUDE header.tmpl>
2 <h1><a href="<TMPL_VAR self_url>">Index</a> &gt;
3 <a href="<TMPL_VAR self_url>?template=by_host.tmpl&PERIOD=<TMPL_VAR PERIOD>">By host</a> &gt;
4 <TMPL_IF GRAPH>
5 <a href="<TMPL_VAR self_url>?template=host.tmpl&HOST=<TMPL_VAR HOST>&PERIOD=<TMPL_VAR PERIOD>"><TMPL_VAR HOST></a> &gt;
6 <a href="<TMPL_VAR self_url>?template=by_graph.tmpl&GRAPH=<TMPL_VAR GRAPH>&PERIOD=<TMPL_VAR PERIOD>"><TMPL_VAR GRAPH></a>
7 <TMPL_ELSE>
8 <TMPL_VAR HOST> &gt;
9 <TMPL_VAR PERIOD>
10 </TMPL_IF>
11 </h1>
12
13 <div class="contents">
14 <TMPL_IF GRAPH>
15 <h3>
16 [ <TMPL_IF COMBINED>Combined<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR GRAPH>&COMBINED=1&PERIOD=<TMPL_VAR PERIOD>">Combined</a></TMPL_IF> ]
17 [ <TMPL_IF EXPR="(not(COMBINED)) && (PERIOD eq 'daily')">Daily<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR GRAPH>&PERIOD=daily">Daily</a></TMPL_IF>
18 | <TMPL_IF EXPR="(not(COMBINED)) && (PERIOD eq 'weekly')">Weekly<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR GRAPH>&PERIOD=weekly">Weekly</a></TMPL_IF>
19 | <TMPL_IF EXPR="(not(COMBINED)) && (PERIOD eq 'monthly')">Monthly<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR GRAPH>&PERIOD=monthly">Monthly</a></TMPL_IF>
20 | <TMPL_IF EXPR="(not(COMBINED)) && (PERIOD eq 'annual')">Annual<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR GRAPH>&PERIOD=annual">Annual</a></TMPL_IF> ]
21 </h3>
22 <TMPL_ELSE>
23 <h3>
24 [ <a href="<TMPL_VAR self_url>?template=by_host.tmpl&HOST=<TMPL_VAR HOST>&PERIOD=<TMPL_VAR PERIOD>">Overview</a> ]
25 [ <TMPL_IF EXPR="PERIOD eq 'daily'">Daily<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&PERIOD=daily">Daily</a></TMPL_IF>
26 | <TMPL_IF EXPR="PERIOD eq 'weekly'">Weekly<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&PERIOD=weekly">Weekly</a></TMPL_IF>
27 | <TMPL_IF EXPR="PERIOD eq 'monthly'">Monthly<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&PERIOD=monthly">Monthly</a></TMPL_IF>
28 | <TMPL_IF EXPR="PERIOD eq 'annual'">Annual<TMPL_ELSE><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&PERIOD=annual">Annual</a></TMPL_IF> ]
29 </h3>
30 </TMPL_IF>
31 <table border="0">
32 <TMPL_LOOP hosts>
33 <TMPL_IF EXPR="HOST eq host">
34
35 <TMPL_IF include_html>
36 <tr><td colspan="2">
37 <!-- BEGIN INCLUDE_HTML -->
38 <TMPL_VAR EXPR="slurp(include_html)">
39 <!-- END INCLUDE_HTML -->
40 </td></tr>
41 </TMPL_IF>
42
43 <TMPL_IF include_css>
44 <style type="text/css">
45 /* BEGIN INCLUDE_CSS */
46 <TMPL_VAR EXPR="slurp(include_css)">
47 /* END INCLUDE_CSS */
48 </style>
49 </TMPL_IF>
50
51 <TMPL_IF stale>
52 <div class="warning">
53 <b>Note:</b> The data for all of the graphs stored against this host appear to be stale
54 and out of date. You should check that this host is still being polled or is posting
55 data to <TMPL_VAR HTTP_HOST>.
56 </div>
57 </TMPL_IF>
58
59 <TMPL_LOOP graphs>
60 <TMPL_IF GRAPH>
61 <TMPL_IF EXPR="GRAPH eq graph">
62 <TMPL_IF EXPR="(PERIOD eq period) || (COMBINED)">
63 <tr>
64 <td><a href="<TMPL_VAR src>"><img src="<TMPL_VAR src>" /></a></td>
65 <td valign="top" class="graph_detail">
66 <table class="graph_detail"><TMPL_VAR EXPR="table(txt)"></table>
67 </td>
68 </tr>
69 </TMPL_IF>
70 </TMPL_IF>
71 <TMPL_ELSE>
72 <TMPL_IF EXPR="PERIOD eq period">
73 <tr>
74 <td><a href="<TMPL_VAR self_url>?template=<TMPL_VAR template>&HOST=<TMPL_VAR HOST>&GRAPH=<TMPL_VAR graph>&COMBINED=1&PERIOD=<TMPL_VAR PERIOD>"><img src="<TMPL_VAR src>" /></a></td>
75 <td valign="top" class="graph_detail">
76 <TMPL_IF stale>
77 <font color="#ff0000"><b>Note:</b> The data in this graph is considered stale because it has
78 not been updated since <TMPL_VAR stale>.</font><br />
79 </TMPL_IF>
80 <table class="graph_detail"><TMPL_VAR EXPR="table(txt)"></table>
81 </td>
82 </tr>
83 </TMPL_IF>
84 </TMPL_IF>
85 </TMPL_LOOP>
86 </TMPL_IF>
87 </TMPL_LOOP>
88 </table>
89 </div>
90
91 <TMPL_INCLUDE footer.tmpl>

  ViewVC Help
Powered by ViewVC 1.1.26