mirror of https://github.com/Aidaho12/haproxy-wi
parent
30db59229e
commit
64fb9b2414
|
@ -12,7 +12,7 @@
|
|||
<p>
|
||||
<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>
|
||||
<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 }}">
|
||||
<option disabled>Choose server</option>
|
||||
{% for select in selects %}
|
||||
|
|
|
@ -74,7 +74,7 @@ def main(serv, port):
|
|||
servername = servername.split(",")
|
||||
realserver = servername[0]
|
||||
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.logging("localhost", " "+alert, alerting=1)
|
||||
firstrun = False
|
||||
|
|
|
@ -402,7 +402,7 @@ function showConfig() {
|
|||
$("#ajax").empty();
|
||||
$("#ajax-compare").empty();
|
||||
$("#config").empty();
|
||||
$(".alert-info").empty();
|
||||
$(".alert").empty();
|
||||
$.ajax( {
|
||||
url: "options.py",
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue