changeset 37:6e27d280b598

watch https cert ages (testing with 45d)
author drewp@bigasterisk.com
date Thu, 21 Dec 2023 13:47:23 -0800
parents 2bc188c4117a
children ddcaa1abe0c5
files alert_rules.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/alert_rules.py	Sun Oct 15 18:34:29 2023 -0700
+++ b/alert_rules.py	Thu Dec 21 13:47:23 2023 -0800
@@ -239,6 +239,14 @@
                 ],
             },
             {
+                "name": "https_certs",
+                "interval": "1h",
+                'rules': [{
+                    'alert': 'old_https_certs',
+                    'expr': 'min by (source) (x509_cert_enddate - now())/86400 < 45',
+                }],
+            },
+            {
                 "name":
                     "alerts",
                 "rules": [