In my plugin I am getting error:
Traceback (most recent call last): File "/opt/site24x7/monagent/plugins/haproxy/haproxy.py", line 10, in username = admin
NameError: name 'admin' is not defined
In my haproxy.cfg I have configured;
listen site24 0.0.0.0:1944
mode
http
stats enable
# stats realm Private
stats auth
admin:site24x7
stats uri /haproxy?stats
In the Site24x7 haproxy.py plugin I have:
url =
"http://localhost:1944/haproxy?stats;csv"
username
= admin
password = site24x7
realm = 'None'
I have been trying different configs using "" or '' or none, defing realm and not. Can someone please share a working configuration that is useing auth for HAproxy please?
Hi Sean,
Have you tried the below configuration?
username = "admin"
password =
"site24x7"
realm = None
Please note that you dont have to enclose None within quotes. Let us know if this helps.