From 97699c5c60342be372d776da4829167adfdfc133 Mon Sep 17 00:00:00 2001 From: Peter Thurner Date: Wed, 13 Mar 2019 10:14:22 +0100 Subject: sslcheck module: (remote) SSL certificate expiry time check (#5365) * added WIP ssl certificate expiry time check plugin * fixing bugs * more bugfixes * cleaned up * fixed graphing * More pretty readme * cleaned up style * change author * simplify * add days_until_expiration_warn and correctly calc seconds * update config * config update * readme update * return false from check if module failed to collect data * set default update_every to 60 * add alarm * add sslcheck to makefile * fix indentation * add crit to alarm * update conf * update readme * add days_until_expiration_critical * change default days_until_expiration_warning to 14 * minor --- health/Makefile.am | 1 + health/health.d/sslcheck.conf | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 health/health.d/sslcheck.conf (limited to 'health') diff --git a/health/Makefile.am b/health/Makefile.am index 4c4cdd7a03..86ad5969a8 100644 --- a/health/Makefile.am +++ b/health/Makefile.am @@ -68,6 +68,7 @@ dist_healthconfig_DATA = \ health.d/retroshare.conf \ health.d/softnet.conf \ health.d/squid.conf \ + health.d/sslcheck.conf \ health.d/stiebeleltron.conf \ health.d/swap.conf \ health.d/tcp_conn.conf \ diff --git a/health/health.d/sslcheck.conf b/health/health.d/sslcheck.conf new file mode 100644 index 0000000000..29a017e3d6 --- /dev/null +++ b/health/health.d/sslcheck.conf @@ -0,0 +1,10 @@ + +template: sslcheck_days_until_expiration + on: sslcheck.time_until_expiration + calc: $time + units: seconds + every: 60s + warn: $this < $days_until_expiration_warning*24*60*60 + crit: $this < $days_until_expiration_critical*24*60*60 + info: certificate time until expiration + to: webmaster -- cgit v1.2.3