healthconfigdir=$(configdir)/health.d
dist_healthconfig_DATA = \
+ health.d/apache.conf \
health.d/disks.conf \
health.d/entropy.conf \
+ health.d/named.conf \
health.d/net.conf \
+ health.d/nginx.conf \
+ health.d/redis.conf \
+ health.d/squid.conf \
$(NULL)
--- /dev/null
+
+# make sure named is running
+
+template: named_last_collected_secs
+ on: named.global_queries_success
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (10 * $update_every)
+
--- /dev/null
+
+# make sure nginx is running
+
+template: nginx_last_collected_secs
+ on: nginx.requests
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (10 * $update_every)
+
--- /dev/null
+
+# make sure redis is running
+
+template: redis_last_collected_secs
+ on: redis.operations
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (10 * $update_every)
+
--- /dev/null
+
+# make sure squid is running
+
+template: squid_last_collected_secs
+ on: squid.client_requests
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (10 * $update_every)
+