@cryptotaxi247 / netdata-1 / commits / 2ac5c3280

health convert value to days in calc in whoisquery/x509check alarms (#17999)

Ilya Mashchenko committed Jun 24, 2024 at 11:57 UTC 2ac5c3280aa1b532488820a9f12560faf21a66d1
2 files changed +8 -8
src/health/health.d/whoisquery.conf
+4 -4
@@ -4,11 +4,11 @@
4 class: Utilization
5 type: Other
6 component: WHOIS
7 - calc: $expiry
8 - units: seconds
7 + calc: $expiry / 86400
8 + units: days
9 every: 60s
10 - warn: $this < $days_until_expiration_warning*24*60*60
11 - crit: $this < $days_until_expiration_critical*24*60*60
10 + warn: $this < $days_until_expiration_warning
11 + crit: $this < $days_until_expiration_critical
12 summary: Whois expiration time for domain ${label:domain}
13 info: Time until the domain name registration for ${label:domain} expires
14 to: webmaster
src/health/health.d/x509check.conf
+4 -4
@@ -4,11 +4,11 @@
4 class: Latency
5 type: Certificates
6 component: x509 certificates
7 - calc: $expiry
8 - units: seconds
7 + calc: $expiry / 86400
8 + units: days
9 every: 60s
10 - warn: $this < $days_until_expiration_warning*24*60*60
11 - crit: $this < $days_until_expiration_critical*24*60*60
10 + warn: $this < $days_until_expiration_warning
11 + crit: $this < $days_until_expiration_critical
12 summary: x509 certificate expiration for ${label:source}
13 info: Time until x509 certificate expires for ${label:source}
14 to: webmaster