mirror of https://github.com/Aidaho12/haproxy-wi
Update viewsttats.py
parent
0c84b1217b
commit
826f250a62
|
@ -22,7 +22,8 @@ form = cgi.FieldStorage()
|
||||||
serv = form.getvalue('serv')
|
serv = form.getvalue('serv')
|
||||||
|
|
||||||
if serv is None:
|
if serv is None:
|
||||||
serv = '172.28.5.17'
|
first_serv = list(listhap.list_hap_vip.values())
|
||||||
|
serv = first_serv[0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get('http://%s:%s/stats' % (serv, stats_port), auth=(haproxy_user, haproxy_pass))
|
response = requests.get('http://%s:%s/stats' % (serv, stats_port), auth=(haproxy_user, haproxy_pass))
|
||||||
|
|
Loading…
Reference in New Issue