Timeout

It seems that by default the socket will not timeout if the PBX is unreachable or the Manager permissions are incorrect. Add something like this, before the line starting mysocket=. The number is in seconds:
socket.setdefaulttimeout(30)

mysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

Returning performance data would be nice as well but given the plugin is clearly written that is not too hard to add in yourself. Good stuff – thank you.