nagios client / haproxy: set this to 2048 too

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-01-08 01:25:50 +00:00 committed by Pierre-Yves Chibon
parent 7ef834a64f
commit 08f62c2df5

View file

@ -28,7 +28,7 @@ def query(sockname="/var/run/haproxy-stat"):
s.connect("/var/run/haproxy-stat")
s.send('show info\n')
try:
response = s.recv(1024).strip()
response = s.recv(2048).strip()
lines = response.split('\n')
data = dict([map(str.strip, line.split(':')) for line in lines])
data = dict([(k, _numeric(v)) for k, v in data.items()])