]> git.proxmox.com Git - pmg-api.git/blame - templates/pmgreport.tt
pmgreport: add incoming/outgoing statistics
[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}
23
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>
60 <td>[% item.value %]</td>
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>
71 <td>[% item.text %] ([% item.percentage %]%)</td>
72 <td>[% item.value %]</td>
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>
83 <td>[% item.text %] ([% item.percentage %]%)</td>
84 <td>[% item.value %]</td>
85 </tr>
86 [% END %]
87 </table>
88 [% END %]
3dfe317a
DM
89
90</body>
91</html>