]> git.proxmox.com Git - pmg-api.git/blob - templates/pmgreport.tt
bump version to 5.1-4
[pmg-api.git] / templates / pmgreport.tt
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Proxmox Status Report - [% date %] ([% fqdn %])</title>
5 <style>
6
7 table {
8 width: 500px;
9 }
10
11 table tr:nth-child(even) {
12 background-color: #eee;
13 }
14
15 table tr:nth-child(odd) {
16 background-color: #fff;
17 }
18
19 table, th, td {
20 border: 1px solid black;
21 border-collapse: collapse;
22 }
23
24 </style>
25 </head>
26 <body>
27
28 [% IF cluster %]
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>
52 [% END %]
53
54 [% IF system %]
55 <h2>System Status</h2>
56 <table>
57 [% FOREACH item IN system %]
58 <tr>
59 <td>[% item.text %]</td>
60 <td style="width:150px;">[% item.value %]</td>
61 </tr>
62 [% END %]
63 </table>
64 [% END %]
65
66 [% IF incoming %]
67 <h2>Incoming Mails (24 hours)</h2>
68 <table>
69 [% FOREACH item IN incoming %]
70 <tr>
71 <td>[% item.text %][% IF item.percentage.defined %] ([% item.percentage %]%)[% END %]</td>
72 <td style="width:150px;">[% 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 %][% IF item.percentage.defined %] ([% item.percentage %]%)[% END %]</td>
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>
101 </tr>
102 [% END %]
103 </table>
104 [% END %]
105
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
130 </body>
131 </html>