feat: Implement Tannerbot notification for alerts
This commit is contained in:
9
main.py
9
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"
|
||||
|
||||
Reference in New Issue
Block a user