added whoisquery health templates (#8700)
Update Makefile.am to add whoisquery.conf
Yashar Nesabian committed
Apr 20, 2020 at 23:58 UTC
b30a70a092079d30e03a97e666d60ee63232f5b3
2 files changed
+25
health/Makefile.am
+1
@@ -99,6 +99,7 @@ dist_healthconfig_DATA = \
99
health.d/vernemq.conf \
100
health.d/vsphere.conf \
101
health.d/web_log.conf \
102
+ health.d/whoisquery.conf \
103
health.d/wmi.conf \
104
health.d/x509check.conf \
105
health.d/zfs.conf \
health/health.d/whoisquery.conf
new
+24
@@ -0,0 +1,24 @@
1
+
2
+# make sure whoisquery is running
3
+
4
+template: whoisquery_last_collected_secs
5
+ on: whoisquery.time_until_expiration
6
+ calc: $now - $last_collected_t
7
+ units: seconds ago
8
+ every: 60s
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: whoisquery_days_until_expiration
17
+ on: whoisquery.time_until_expiration
18
+ calc: $expiry
19
+ units: seconds
20
+ every: 60s
21
+ warn: $this < $days_until_expiration_warning*24*60*60
22
+ crit: $this < $days_until_expiration_critical*24*60*60
23
+ info: domain time until expiration
24
+ to: webmaster