initial commit
This commit is contained in:
parent
be416c80ca
commit
2bcd14006c
17 changed files with 473 additions and 0 deletions
app/templates
49
app/templates/main.html.j2
Normal file
49
app/templates/main.html.j2
Normal file
|
@ -0,0 +1,49 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>SSMS - Overview</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>SSMS - servers</h1>
|
||||
</header>
|
||||
<main>
|
||||
{% for server in servers %}
|
||||
<article>
|
||||
<h1>{{ server.get('name') }}</h1>
|
||||
url: {{ server.get('url') }} | status: {{ server.server_conn_result }}
|
||||
<table class="checks">
|
||||
<tr>
|
||||
<th>name</th>
|
||||
<th>status</th>
|
||||
<th>command</th>
|
||||
<th>output</th>
|
||||
<th>last try</th>
|
||||
<th>last successful</th>
|
||||
{% for check in server.get('check_results') %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ check.get('name') }}
|
||||
</td>
|
||||
<td class="status_{{ check.get('state') }}">
|
||||
{{ check.get('state') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ check.get('command') | join(' ') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ check.get('output').get('output_text') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ check.get('last_exec_start') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ check.get('last_exec_finish') }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue