mirror of https://github.com/Aidaho12/haproxy-wi
parent
30db59229e
commit
64fb9b2414
|
@ -12,7 +12,7 @@
|
||||||
<p>
|
<p>
|
||||||
<form action="{{ action }}" method="post">
|
<form action="{{ action }}" method="post">
|
||||||
<a class="ui-button ui-widget ui-corner-all" title="Return back" id="back" onclick="history.go(-2)">Back</a>
|
<a class="ui-button ui-widget ui-corner-all" title="Return back" id="back" onclick="history.go(-2)">Back</a>
|
||||||
<input type="hidden" id="service" value="{{service}}" />
|
<input type="hidden" id="service" value="{{service|default('haproxy', true)}}" />
|
||||||
<select autofocus required name="serv" id="{{ select_id }}">
|
<select autofocus required name="serv" id="{{ select_id }}">
|
||||||
<option disabled>Choose server</option>
|
<option disabled>Choose server</option>
|
||||||
{% for select in selects %}
|
{% for select in selects %}
|
||||||
|
|
|
@ -74,7 +74,7 @@ def main(serv, port):
|
||||||
servername = servername.split(",")
|
servername = servername.split(",")
|
||||||
realserver = servername[0]
|
realserver = servername[0]
|
||||||
server = servername[1]
|
server = servername[1]
|
||||||
alert = "Backend: "+realserver[2:]+", server: "+server+" has changed status to "+ currentstat[i] + " at " + serv
|
alert = "Backend: "+realserver[2:]+", server: "+server+" has changed status to "+ currentstat[i] + " on " + serv + "HAProxy"
|
||||||
funct.telegram_send_mess(str(alert), ip=serv)
|
funct.telegram_send_mess(str(alert), ip=serv)
|
||||||
funct.logging("localhost", " "+alert, alerting=1)
|
funct.logging("localhost", " "+alert, alerting=1)
|
||||||
firstrun = False
|
firstrun = False
|
||||||
|
|
|
@ -402,7 +402,7 @@ function showConfig() {
|
||||||
$("#ajax").empty();
|
$("#ajax").empty();
|
||||||
$("#ajax-compare").empty();
|
$("#ajax-compare").empty();
|
||||||
$("#config").empty();
|
$("#config").empty();
|
||||||
$(".alert-info").empty();
|
$(".alert").empty();
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
url: "options.py",
|
url: "options.py",
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in New Issue