mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
int conversion
convert port in integer when it is set from config file
This commit is contained in:
parent
624c826a27
commit
78e584dca9
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def get_stats():
|
||||||
data = '';
|
data = '';
|
||||||
|
|
||||||
HOST = os.environ.get('NUTCRACKER_STATS_HOST', '127.0.0.1');
|
HOST = os.environ.get('NUTCRACKER_STATS_HOST', '127.0.0.1');
|
||||||
PORT = os.environ.get('NUTCRACKER_STATS_PORT', 22222)
|
PORT = int(os.environ.get('NUTCRACKER_STATS_PORT', 22222))
|
||||||
|
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
s.connect((HOST, PORT))
|
s.connect((HOST, PORT))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue