@cryptotaxi247 / netdata-1 / commits / 8c554e8ab

x509check: add last_collected alarm (#6139)

* x509check: add last_collected alarm * template name fix

Ilya Mashchenko committed May 28, 2019 at 11:58 UTC 8c554e8ab953736db4e0c4f3d84a890f63aef3c8
1 file changed +14
health/health.d/x509check.conf
+14
@@ -1,4 +1,18 @@
1
2 +# make sure x509check is running
3 +
4 +template: x509check_last_collected_secs
5 + on: x509check.time_until_expiration
6 + calc: $now - $last_collected_t
7 + units: seconds ago
8 + every: 10s
9 + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
10 + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
11 + delay: down 5m multiplier 1.5 max 1h
12 + info: number of seconds since the last successful data collection
13 + to: webmaster
14 +
15 +
16 template: x509check_days_until_expiration
17 on: x509check.time_until_expiration
18 calc: $expiry