1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

get client presence for prosody 0.10

This commit is contained in:
clarkspark 2016-03-22 16:19:19 -04:00
parent bc53425e8c
commit a816c917b6

View file

@ -111,7 +111,7 @@ def main():
sys.exit(0)
else:
client_presence_re = re.compile(r"- (.*?)\(\d+\)")
client_presence_re = re.compile(r"[-\]] (.*?)\(\d+\)")
telnet = telnetlib.Telnet(host, port)
telnet.write("c2s:show()\n")
telnet_response = telnet.read_until("clients", 5)