2015-12-13 09:34:12 +00:00
|
|
|
{% extends "base.html" %}
|
2023-02-13 03:57:21 +00:00
|
|
|
|
2018-08-18 11:41:59 +00:00
|
|
|
{% set active_page = "admin_console" %}
|
2015-12-13 09:34:12 +00:00
|
|
|
|
2023-02-13 03:57:21 +00:00
|
|
|
{% block title %}
|
|
|
|
<title>
|
|
|
|
Admin Console - {{ SITE_NAME }}
|
|
|
|
</title>
|
|
|
|
{% endblock %}
|
2023-02-02 21:19:15 +00:00
|
|
|
|
2023-02-13 03:57:21 +00:00
|
|
|
{% block dashboard_stat %}
|
|
|
|
<div class="content-header">
|
2023-02-02 21:19:15 +00:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<h1 class="m-0 text-dark">
|
2023-02-13 03:57:21 +00:00
|
|
|
PowerDNS
|
|
|
|
<small>Server Statistics & Configuration</small>
|
2023-02-02 21:19:15 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<ol class="breadcrumb float-sm-right">
|
2023-02-13 03:57:21 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
|
|
|
|
<li class="breadcrumb-item active">PowerDNS Server Statistics & Configuration</li>
|
2023-02-02 21:19:15 +00:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-13 09:34:12 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-02-13 03:57:21 +00:00
|
|
|
<section class="content">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2023-02-13 04:43:06 +00:00
|
|
|
<div class="card shadow">
|
2023-02-13 03:57:21 +00:00
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">PowerDNS Server Statistics</h3>
|
2016-06-18 04:41:01 +00:00
|
|
|
</div>
|
2023-02-13 03:57:21 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<table id="tbl_statistics" class="table table-bordered table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="30%">Statistic</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for statistic in statistics %}
|
|
|
|
<tr class="odd gradeX">
|
|
|
|
<td>
|
|
|
|
<a href="https://doc.powerdns.com/authoritative/search.html?q={{ statistic['name'] }}"
|
|
|
|
target="_blank" class="btn btn-primary">
|
|
|
|
<i class="fa fa-search"></i> {{ statistic['name'] }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ statistic['value'] }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-18 04:41:01 +00:00
|
|
|
</div>
|
2023-02-13 03:57:21 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2023-02-13 04:43:06 +00:00
|
|
|
<div class="card shadow">
|
2023-02-13 03:57:21 +00:00
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">PowerDNS Server Configuration</h3>
|
2016-06-18 04:41:01 +00:00
|
|
|
</div>
|
2023-02-13 03:57:21 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<table id="tbl_configuration" class="table table-bordered table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="30%">Configuration</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for config in configs %}
|
|
|
|
<tr class="odd gradeX">
|
|
|
|
<td>
|
|
|
|
<a href="https://doc.powerdns.com/authoritative/search.html?q={{ config['name'] }}"
|
|
|
|
target="_blank" class="btn btn-primary">
|
2023-02-17 22:25:11 +00:00
|
|
|
<i class="fa-solid fa-search"></i> {{ config['name'] }}
|
2023-02-13 03:57:21 +00:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ config['value'] }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-18 04:41:01 +00:00
|
|
|
</div>
|
2023-02-13 03:57:21 +00:00
|
|
|
</div>
|
2016-06-18 04:41:01 +00:00
|
|
|
</div>
|
2023-02-13 03:57:21 +00:00
|
|
|
</section>
|
2015-12-13 09:34:12 +00:00
|
|
|
{% endblock %}
|
2023-02-13 03:57:21 +00:00
|
|
|
|
2016-04-23 16:49:35 +00:00
|
|
|
{% block extrascripts %}
|
2015-12-13 09:34:12 +00:00
|
|
|
<script>
|
2023-02-13 03:57:21 +00:00
|
|
|
// set up statistics data table
|
|
|
|
$("#tbl_statistics").DataTable({
|
|
|
|
"paging": true,
|
|
|
|
"lengthChange": true,
|
|
|
|
"searching": true,
|
|
|
|
"ordering": true,
|
|
|
|
"info": true,
|
|
|
|
"autoWidth": false
|
|
|
|
});
|
2016-04-23 16:49:35 +00:00
|
|
|
|
2023-02-13 03:57:21 +00:00
|
|
|
// set up configuration data table
|
|
|
|
$("#tbl_configuration").DataTable({
|
|
|
|
"paging": true,
|
|
|
|
"lengthChange": true,
|
|
|
|
"searching": true,
|
|
|
|
"ordering": true,
|
|
|
|
"info": true,
|
|
|
|
"autoWidth": false
|
|
|
|
});
|
2015-12-13 09:34:12 +00:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|