summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2019-05-28 11:58:44 +0300
committerGitHub <noreply@github.com>2019-05-28 11:58:44 +0300
commit8c554e8ab953736db4e0c4f3d84a890f63aef3c8 (patch)
tree53270e1709d3434eee0d294119ada2492d69618b
parentcfa8b9e2de8f3eef63afe1bbe9ca8e65466c5f7f (diff)
x509check: add last_collected alarm (#6139)
* x509check: add last_collected alarm * template name fix
-rw-r--r--health/health.d/x509check.conf14
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