Skip to content

Commit

Permalink
Merge pull request #724 from dmick/wip-check-add-sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc authored Mar 15, 2023
2 parents 5ff5014 + 7428652 commit 768122f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/checkcerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'pad.ceph.com',
'pulpito.ceph.com',
'quay.ceph.io',
'sentry.ceph.com',
'shaman.ceph.com',
'status.sepia.ceph.com',
'telemetry-public.ceph.com',
Expand Down Expand Up @@ -81,6 +82,7 @@ def main():
args = parse_args()
domains = args.domains

warned = False
for domain in domains:
warn = datetime.timedelta(days=DAYS_BEFORE_WARN)
try:
Expand All @@ -104,6 +106,8 @@ def main():
if email == []:
email = DEFAULT_EMAIL
sendmail(email, subject, body)
warned = True
return int(warned)

if __name__ == '__main__':
sys.exit(main())
Expand Down

0 comments on commit 768122f

Please sign in to comment.