mirror of https://github.com/Aidaho12/haproxy-wi
parent
50bd5f4972
commit
e863daf738
|
@ -1,12 +1,12 @@
|
||||||
{%- for service in service_status -%}
|
{%- for service in service_status -%}
|
||||||
<div class="server-info" style="height: 100%;">
|
<div class="server-info">
|
||||||
{% if service_page == 'nginx' %}
|
{% if service_page == 'nginx' %}
|
||||||
<div class="server-name" style="padding-bottom: 0px;">
|
<div class="server-name" style="padding-bottom: 0px;">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="server-name">
|
<div class="server-name">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Server status
|
Server status
|
||||||
<span class="update-icon">
|
<span class="update-icon" style="margin-right: 10px">
|
||||||
<a onclick="showOverviewServer('{{ service.0 }}', '{{ service.1 }}', '{{id}}', '{{service_page}}')" title="Refresh">
|
<a onclick="showOverviewServer('{{ service.0 }}', '{{ service.1 }}', '{{id}}', '{{service_page}}')" title="Refresh">
|
||||||
<span class="service-reload"></span>
|
<span class="service-reload"></span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{% if service_page == 'nginx' %}
|
{% if service_page == 'nginx' %}
|
||||||
<div class="top-info" style="margin-top: 5px; width: 100%;">
|
<div class="top-info" style="margin-top: 5px; width: 100%;">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="top-info" style="width: 550px;">
|
<div class="top-info" style="width: 640px;">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="cpu_div" style="height: 140px;width: 50%;float: left; margin:0; padding:0;">
|
<div id="cpu_div" style="height: 140px;width: 50%;float: left; margin:0; padding:0;">
|
||||||
<canvas id="cpu" role="img"></canvas>
|
<canvas id="cpu" role="img"></canvas>
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width:100%" colspan="2">
|
<td style="width:100%" colspan="3">
|
||||||
<div id="cpu_div" style="height: 140px;width: 50%;float: left; margin:0; padding:0;">
|
<div id="cpu_div" style="height: 140px;width: 50%;float: left; margin:0; padding:0;">
|
||||||
<canvas id="cpu" role="img"></canvas>
|
<canvas id="cpu" role="img"></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -29,18 +29,24 @@ function renderChart(data, labels, server) {
|
||||||
labels: labels.split(','),
|
labels: labels.split(','),
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
label: 'Connections',
|
label: 'Connections',
|
||||||
data: data[0].split(','),
|
data: data[0].split(','),
|
||||||
borderColor: 'rgba(75, 192, 192, 1)',
|
borderColor: 'rgba(75, 192, 192, 1)',
|
||||||
backgroundColor: 'rgba(75, 192, 192, 0.2)',
|
backgroundColor: 'rgba(75, 192, 192, 0.2)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
label: 'SSL Connections',
|
label: 'SSL Connections',
|
||||||
data: data[1].split(','),
|
data: data[1].split(','),
|
||||||
borderColor: 'rgba(54, 162, 235, 1)',
|
borderColor: 'rgba(54, 162, 235, 1)',
|
||||||
backgroundColor: 'rgba(54, 162, 235, 0.2)',
|
backgroundColor: 'rgba(54, 162, 235, 0.2)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
label: 'Session rate',
|
label: 'Session rate',
|
||||||
data: data[2].split(','),
|
data: data[2].split(','),
|
||||||
borderColor: 'rgba(255, 206, 86, 1)',
|
borderColor: 'rgba(255, 206, 86, 1)',
|
||||||
|
@ -117,6 +123,8 @@ function renderWafChart(data, labels, server) {
|
||||||
labels: labels.split(','),
|
labels: labels.split(','),
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
label: 'Connections',
|
label: 'Connections',
|
||||||
data: data[0].split(','),
|
data: data[0].split(','),
|
||||||
borderColor: 'rgba(75, 192, 192, 1)',
|
borderColor: 'rgba(75, 192, 192, 1)',
|
||||||
|
@ -208,11 +216,13 @@ function getChartDataHapWiRam(ip) {
|
||||||
function renderChartHapWiRam(data) {
|
function renderChartHapWiRam(data) {
|
||||||
var ctx = 'ram'
|
var ctx = 'ram'
|
||||||
var myChart = new Chart(ctx, {
|
var myChart = new Chart(ctx, {
|
||||||
type: 'pie',
|
type: 'horizontalBar',
|
||||||
data: {
|
data: {
|
||||||
labels: ['used','free','shared','buff/cache','avaliable'],
|
labels: ['used','free','shared','buff/cache','avaliable'],
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
data: data[0].split(' '),
|
data: data[0].split(' '),
|
||||||
backgroundColor: [
|
backgroundColor: [
|
||||||
'#ff6384',
|
'#ff6384',
|
||||||
|
@ -235,7 +245,7 @@ function renderChartHapWiRam(data) {
|
||||||
padding: 0,
|
padding: 0,
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
display: true,
|
display: false,
|
||||||
align: 'start',
|
align: 'start',
|
||||||
position: 'left',
|
position: 'left',
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -270,11 +280,13 @@ function getChartDataHapWiCpu(ip) {
|
||||||
function renderChartHapWiCpu(data) {
|
function renderChartHapWiCpu(data) {
|
||||||
var ctx = 'cpu'
|
var ctx = 'cpu'
|
||||||
var myChart = new Chart(ctx, {
|
var myChart = new Chart(ctx, {
|
||||||
type: 'pie',
|
type: 'horizontalBar',
|
||||||
data: {
|
data: {
|
||||||
labels: ['user','sys','nice','idle','wait','hi','si','steal'],
|
labels: ['user','sys','nice','idle','wait','hi','si','steal'],
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
|
parsing: false,
|
||||||
|
normalized: true,
|
||||||
data: data[0].split(' '),
|
data: data[0].split(' '),
|
||||||
backgroundColor: [
|
backgroundColor: [
|
||||||
'#ff6384',
|
'#ff6384',
|
||||||
|
@ -299,7 +311,7 @@ function renderChartHapWiCpu(data) {
|
||||||
padding: 0,
|
padding: 0,
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
display: true,
|
display: false,
|
||||||
position: 'left',
|
position: 'left',
|
||||||
align: 'end',
|
align: 'end',
|
||||||
labels: {
|
labels: {
|
||||||
|
|
|
@ -238,7 +238,6 @@ function setRefreshInterval(interval) {
|
||||||
$('.auto-refresh').css('display', 'inline');
|
$('.auto-refresh').css('display', 'inline');
|
||||||
$('.auto-refresh').css('font-size', '15px');
|
$('.auto-refresh').css('font-size', '15px');
|
||||||
$('#1').text('Auto-refresh');
|
$('#1').text('Auto-refresh');
|
||||||
//$('#0').text('Auto-refresh');
|
|
||||||
$('.auto-refresh-pause').css('display', 'none');
|
$('.auto-refresh-pause').css('display', 'none');
|
||||||
$('.auto-refresh-resume').css('display', 'none');
|
$('.auto-refresh-resume').css('display', 'none');
|
||||||
$.getScript("/inc/fontawesome.min.js")
|
$.getScript("/inc/fontawesome.min.js")
|
||||||
|
|
|
@ -781,6 +781,7 @@ label {
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
color: #5d9ceb;
|
color: #5d9ceb;
|
||||||
border-bottom: 1px solid #A4C7F5;
|
border-bottom: 1px solid #A4C7F5;
|
||||||
|
width: 99%;
|
||||||
}
|
}
|
||||||
.server-status {
|
.server-status {
|
||||||
border-radius: 50% 50%;
|
border-radius: 50% 50%;
|
||||||
|
@ -817,18 +818,22 @@ label {
|
||||||
}
|
}
|
||||||
.ajax-server {
|
.ajax-server {
|
||||||
margin: 25px 25px 0 757px;
|
margin: 25px 25px 0 757px;
|
||||||
width: 778px;
|
width: 794px;
|
||||||
display: none;
|
display: none;
|
||||||
height: 185px;
|
height: 185px;
|
||||||
padding: 10px 15px 0;
|
padding: 10px 0 0 15px;
|
||||||
}
|
}
|
||||||
.haproxy-info {
|
.haproxy-info {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 160px;
|
width: 150px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
font-size: 11.5px;
|
font-size: 11.5px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
.server-info {
|
||||||
|
height: 100%;
|
||||||
|
width: 790px;
|
||||||
|
}
|
||||||
.top-info {
|
.top-info {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
|
|
Loading…
Reference in New Issue