https://www.machinet.net/tutorial/develop-python-script-monitoring-managing-server-health