mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-18 16:48:44 +00:00
commit
d96a6c201a
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