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.")
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user