From e0a3e883116266f773639b0b1e511375a51585a2 Mon Sep 17 00:00:00 2001 From: Sergey Grankin Date: Wed, 31 Jul 2013 10:30:52 -0400 Subject: [PATCH] redisdb: convert port string to integer This avoids the following exception on some setups: File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) TypeError: an integer is required --- checks.d/redisdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks.d/redisdb.py b/checks.d/redisdb.py index 067c2c6df9..7ee82c6e08 100644 --- a/checks.d/redisdb.py +++ b/checks.d/redisdb.py @@ -174,7 +174,7 @@ def parse_agent_config(agentConfig): instances.append({ 'host': host, - 'port': port, + 'port': int(port), 'password': password })