diff --git a/main.py b/main.py index f9e4247..7f5cf5e 100644 --- a/main.py +++ b/main.py @@ -19,9 +19,12 @@ except FileNotFoundError: logging.error("hosts.json not found. Please copy hosts.json.example to hosts.json and configure it.") exit(1) - -def alert_tanner(msg): - pass +def alert_tanner(message): + try: + params = {'ssl-monitor': message} + requests.get('https://tbot.tannercollin.com/message', params=params, timeout=4) + except BaseException as e: + logging.error('Problem alerting Tanner: ' + str(e)) async def check_host_cert(host, port, seen_serials): "check a single host's cert"