apache plugin: alarm for lighttpd added
Ilya committed
Jun 12, 2017 at 13:57 UTC
69850a9b7c07e75d17d6f580754584b7438ef77d
2 files changed
+15
conf.d/Makefile.am
+1
@@ -74,6 +74,7 @@ dist_healthconfig_DATA = \
74
health.d/ipfs.conf \
75
health.d/ipmi.conf \
76
health.d/isc_dhcpd.conf \
77
+ health.d/lighttpd.conf \
78
health.d/mdstat.conf \
79
health.d/memcached.conf \
80
health.d/mysql.conf \
conf.d/health.d/lighttpd.conf
new
+14
@@ -0,0 +1,14 @@
1
+
2
+# make sure lighttpd is running
3
+
4
+template: lighttpd_last_collected_secs
5
+ on: lighttpd.requests
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
+