diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-24 11:57:24 +0300 |
---|---|---|
committer | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2024-07-10 08:47:30 -0400 |
commit | 9ee098f873d028a331e5d27f45b863204f302fcc (patch) | |
tree | 3f714ad8e57eda9ec90df25b90cfc39485f3da45 | |
parent | 0e29a651b18b777717107b42d957d4c0cce0a144 (diff) |
health convert value to days in calc in whoisquery/x509check alarms (#17999)
(cherry picked from commit 2ac5c3280aa1b532488820a9f12560faf21a66d1)
-rw-r--r-- | src/health/health.d/whoisquery.conf | 8 | ||||
-rw-r--r-- | src/health/health.d/x509check.conf | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/health/health.d/whoisquery.conf b/src/health/health.d/whoisquery.conf index 0a328b592d..6d87ad280c 100644 --- a/src/health/health.d/whoisquery.conf +++ b/src/health/health.d/whoisquery.conf @@ -4,11 +4,11 @@ class: Utilization type: Other component: WHOIS - calc: $expiry - units: seconds + calc: $expiry / 86400 + units: days every: 60s - warn: $this < $days_until_expiration_warning*24*60*60 - crit: $this < $days_until_expiration_critical*24*60*60 + warn: $this < $days_until_expiration_warning + crit: $this < $days_until_expiration_critical summary: Whois expiration time for domain ${label:domain} info: Time until the domain name registration for ${label:domain} expires to: webmaster diff --git a/src/health/health.d/x509check.conf b/src/health/health.d/x509check.conf index d05f3ef0f8..1d40c8602d 100644 --- a/src/health/health.d/x509check.conf +++ b/src/health/health.d/x509check.conf @@ -4,11 +4,11 @@ class: Latency type: Certificates component: x509 certificates - calc: $expiry - units: seconds + calc: $expiry / 86400 + units: days every: 60s - warn: $this < $days_until_expiration_warning*24*60*60 - crit: $this < $days_until_expiration_critical*24*60*60 + warn: $this < $days_until_expiration_warning + crit: $this < $days_until_expiration_critical summary: x509 certificate expiration for ${label:source} info: Time until x509 certificate expires for ${label:source} to: webmaster |