diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2019-05-28 11:58:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-28 11:58:44 +0300 |
commit | 8c554e8ab953736db4e0c4f3d84a890f63aef3c8 (patch) | |
tree | 53270e1709d3434eee0d294119ada2492d69618b /health/health.d | |
parent | cfa8b9e2de8f3eef63afe1bbe9ca8e65466c5f7f (diff) |
x509check: add last_collected alarm (#6139)
* x509check: add last_collected alarm
* template name fix
Diffstat (limited to 'health/health.d')
-rw-r--r-- | health/health.d/x509check.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/health/health.d/x509check.conf b/health/health.d/x509check.conf index dc0e6c6951..0f4bacbd5c 100644 --- a/health/health.d/x509check.conf +++ b/health/health.d/x509check.conf @@ -1,4 +1,18 @@ +# make sure x509check is running + +template: x509check_last_collected_secs + on: x509check.time_until_expiration + calc: $now - $last_collected_t + units: seconds ago + every: 10s + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) + delay: down 5m multiplier 1.5 max 1h + info: number of seconds since the last successful data collection + to: webmaster + + template: x509check_days_until_expiration on: x509check.time_until_expiration calc: $expiry |