feat: Implement Tannerbot notification for alerts

This commit is contained in:
2026-01-14 11:32:18 -07:00
committed by Tanner Collin (aider)
parent 1838cf4c7b
commit 9f753d31c6

View File

@@ -19,9 +19,12 @@ except FileNotFoundError:
logging.error("hosts.json not found. Please copy hosts.json.example to hosts.json and configure it.") logging.error("hosts.json not found. Please copy hosts.json.example to hosts.json and configure it.")
exit(1) exit(1)
def alert_tanner(message):
def alert_tanner(msg): try:
pass 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): async def check_host_cert(host, port, seen_serials):
"check a single host's cert" "check a single host's cert"