summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorIlya <ilyamaschenko@gmail.com>2017-06-12 13:57:00 +0900
committerIlya <ilyamaschenko@gmail.com>2017-06-12 13:57:00 +0900
commit69850a9b7c07e75d17d6f580754584b7438ef77d (patch)
tree0d0f1d2e68d5ff7c0813b0d373240fe9ac3950e5 /conf.d
parent365417086e659820570e89c93439b1dc96b05860 (diff)
apache plugin: alarm for lighttpd added
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/Makefile.am1
-rw-r--r--conf.d/health.d/lighttpd.conf14
2 files changed, 15 insertions, 0 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am
index ce93971fb3..5322c73a7a 100644
--- a/conf.d/Makefile.am
+++ b/conf.d/Makefile.am
@@ -74,6 +74,7 @@ dist_healthconfig_DATA = \
health.d/ipfs.conf \
health.d/ipmi.conf \
health.d/isc_dhcpd.conf \
+ health.d/lighttpd.conf \
health.d/mdstat.conf \
health.d/memcached.conf \
health.d/mysql.conf \
diff --git a/conf.d/health.d/lighttpd.conf b/conf.d/health.d/lighttpd.conf
new file mode 100644
index 0000000000..915907a4ab
--- /dev/null
+++ b/conf.d/health.d/lighttpd.conf
@@ -0,0 +1,14 @@
+
+# make sure lighttpd is running
+
+template: lighttpd_last_collected_secs
+ on: lighttpd.requests
+ calc: $now - $last_collected_t
+ units: seconds ago
+ every: 10s
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
+ delay: down 5m multiplier 1.5 max 1h
+ info: number of seconds since the last successful data collection
+ to: webmaster
+