nginx_plus: last_collected alarm added
lgz committed
Jan 19, 2018 at 19:47 UTC
aa7cafb70e7887430790c8d64efc6db61f19e5d6
2 files changed
+15
conf.d/Makefile.am
+1
@@ -98,6 +98,7 @@ dist_healthconfig_DATA = \
98
health.d/net.conf \
99
health.d/netfilter.conf \
100
health.d/nginx.conf \
101
+ health.d/nginx_plus.conf \
102
health.d/postgres.conf \
103
health.d/qos.conf \
104
health.d/ram.conf \
conf.d/health.d/nginx_plus.conf
new
+14
@@ -0,0 +1,14 @@
1
+
2
+# make sure nginx_plus is running
3
+
4
+template: nginx_plus_last_collected_secs
5
+ on: nginx_plus.requests_total
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
+