Skip to content

Commit

Permalink
health convert value to days in calc in whoisquery/x509check alarms (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 committed Jun 24, 2024
1 parent 93fc8d5 commit 2ac5c32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/health/health.d/whoisquery.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions src/health/health.d/x509check.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ac5c32

Please sign in to comment.