nagios client / haproxy: set this to 2048 too
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
7ef834a64f
commit
08f62c2df5
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def query(sockname="/var/run/haproxy-stat"):
|
||||||
s.connect("/var/run/haproxy-stat")
|
s.connect("/var/run/haproxy-stat")
|
||||||
s.send('show info\n')
|
s.send('show info\n')
|
||||||
try:
|
try:
|
||||||
response = s.recv(1024).strip()
|
response = s.recv(2048).strip()
|
||||||
lines = response.split('\n')
|
lines = response.split('\n')
|
||||||
data = dict([map(str.strip, line.split(':')) for line in lines])
|
data = dict([map(str.strip, line.split(':')) for line in lines])
|
||||||
data = dict([(k, _numeric(v)) for k, v in data.items()])
|
data = dict([(k, _numeric(v)) for k, v in data.items()])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue