-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzabbix_status.html
62 lines (59 loc) · 2.34 KB
/
zabbix_status.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="refresh" content="60" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zabbix status</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css"
integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
</head>
<body>
<div class="container">
<table class="table table-hover table-striped">
<thead class="thead-inverse">
<tr>
<th>#</th>
<th>Zabbix Server</th>
<th>Host</th>
<th>Trigger description</th>
<th>Last change</th>
<th>Age</th>
</tr>
</thead>
<tbody>
{% set count = 1 %}
{% for trigger in trigger_list %}
{% set zabbix_server = trigger.server_hostname %}
{% if trigger.server_hostname is equalto previos_zabbix_server %}
{% set zabbix_server = " " %}
{% elif count != 1 %}
<tr><td colspan="6" bgcolor="#FFFFFF"></td></tr>
{% set count = 1 %}
{% endif %}
<tr class="{{ trigger.severity }}">
<td scope="row">{{ count }}</td>
<td><u><strong>{{ zabbix_server }}</strong></u></td>
<td>{{ trigger.agent_hostname }}</td>
<td>{{ trigger.description }}</td>
<td>{{ trigger.lastchange }}</td>
<td>{{ trigger.age }}</td>
</tr>
{% set count = count + 1 %}
{% set previos_zabbix_server = trigger.server_hostname %}
{% endfor %}
<tr><td colspan="6">Updated at: {{ date }}</td></tr>
</tbody>
</table>
</div>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
</body>
</html>