]> git.proxmox.com Git - pmg-api.git/blame - templates/pmgreport.tt
bump version to 5.1-4
[pmg-api.git] / templates / pmgreport.tt
CommitLineData
3dfe317a
DM
1<!DOCTYPE html>
2<html>
3<head>
4<title>Proxmox Status Report - [% date %] ([% fqdn %])</title>
5<style>
6
7table {
8width: 500px;
9}
10
11table tr:nth-child(even) {
12background-color: #eee;
13}
14
15table tr:nth-child(odd) {
16background-color: #fff;
17}
18
19table, th, td {
20border: 1px solid black;
21border-collapse: collapse;
22}
68b5b6c1 23
3dfe317a
DM
24</style>
25</head>
26<body>
27
28 [% IF cluster %]
308c2bfc
DM
29 <h2>Cluster Status</h2>
30 <table>
31 <tr>
32 <th>Hostname</th>
33 <th>IP Address</th>
34 <th>Role</th>
35 <th>State</th>
36 <th>Load</th>
37 <th>Memory</th>
38 <th>Disk</th>
39 </tr>
40 [% FOREACH item IN cluster %]
41 <tr>
42 <td>[% item.hostname %]</td>
43 <td>[% item.ip %]</td>
44 <td>[% item.type %]</td>
45 <td>[% item.state %]</td>
46 <td>[% item.loadavg1 %]</td>
47 <td>[% item.memory %]</td>
48 <td>[% item.disk %]</td>
49 </tr>
50 [% END %]
51 </table>
3dfe317a
DM
52 [% END %]
53
54 [% IF system %]
55 <h2>System Status</h2>
56 <table>
3dfe317a
DM
57 [% FOREACH item IN system %]
58 <tr>
59 <td>[% item.text %]</td>
68b5b6c1 60 <td style="width:150px;">[% item.value %]</td>
3dfe317a
DM
61 </tr>
62 [% END %]
63 </table>
64 [% END %]
65
02251e49
DM
66 [% IF incoming %]
67 <h2>Incoming Mails (24 hours)</h2>
68 <table>
69 [% FOREACH item IN incoming %]
70 <tr>
7264942e 71 <td>[% item.text %][% IF item.percentage.defined %] ([% item.percentage %]%)[% END %]</td>
d68581ee 72 <td style="width:150px;">[% item.value %]</td>
02251e49
DM
73 </tr>
74 [% END %]
75 </table>
76 [% END %]
77
78 [% IF outgoing %]
79 <h2>Outgoing Mails (24 hours)</h2>
80 <table>
81 [% FOREACH item IN outgoing %]
82 <tr>
7264942e 83 <td>[% item.text %][% IF item.percentage.defined %] ([% item.percentage %]%)[% END %]</td>
d68581ee
DM
84 <td style="width:150px;">[% item.value %]</td>
85 </tr>
86 [% END %]
87 </table>
88 [% END %]
89
90 [% IF virusstat %]
91 <h2>Virus Charts (Top 10)</h2>
92 <table>
93 <tr>
94 <th>Virus Name</th>
95 <th>Count</th>
96 </tr>
97 [% FOREACH item IN virusstat %]
98 <tr>
99 <td>[% item.name %]</td>
100 <td style="width:150px;">[% item.count %]</td>
02251e49
DM
101 </tr>
102 [% END %]
103 </table>
104 [% END %]
3dfe317a 105
68b5b6c1
DM
106 [% IF virusquar %]
107 <h2>Virus Quarantine</h2>
108 <table>
109 [% FOREACH item IN virusquar %]
110 <tr>
111 <td>[% item.text %]</td>
112 <td style="width:150px;">[% item.value %]</td>
113 </tr>
114 [% END %]
115 </table>
116 [% END %]
117
118 [% IF spamquar %]
119 <h2>Spam Quarantine</h2>
120 <table>
121 [% FOREACH item IN spamquar %]
122 <tr>
123 <td>[% item.text %]</td>
124 <td style="width:150px;">[% item.value %]</td>
125 </tr>
126 [% END %]
127 </table>
128 [% END %]
129
3dfe317a
DM
130</body>
131</html>