Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/n0arch/heart_beat.py

Simple TCP/PING heartbeat script
https://github.com/n0arch/heart_beat.py

Last synced: 3 months ago
JSON representation

Simple TCP/PING heartbeat script

Lists

README

        

# heartbeat.py

A simple python script with colorful output to test creating tcp connections on a given host and port.

If TCP socket connection fails, the service will attempt to ping the target.

This script requires no special modules be installed on the system.

To configure, set the SERVERS dictionary values to reflect {'host':port}
host is a string (quotes)
port is an int (no quotes)