Thursday, August 18, 2011

Zeo monitoring server and netcat

Zeo have a nice feature - monitoring server. You open connection to specified host/port and monitoring process write to their end of the socket current zeo server statistic and close connection. Question is - which tool can be used to read data from remote tcp socket? It may be trivial script on Python.
Or netcat. Just:
$ netcat <your_zeo_server> <your_monitoring_port>

, and read your statistic.

Remove terminal escape sequences from text.

sed -e $'s/\033\\[[0-9;?]*[a-zA-Z]//g'