Pavel Loginov 2020-07-03 14:18:52 +02:00
parent 30db59229e
commit 64fb9b2414
3 changed files with 3 additions and 3 deletions

View File

@ -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 %}

View File

@ -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

View File

@ -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: {