mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
nagios client / haproxy: set this to 2048 too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
7ef834a64f
commit
08f62c2df5
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user