added alarms for running named, nginx, redis, squid
Costa Tsaousis committed
Aug 20, 2016 at 23:13 UTC
c3cc7a0e214edb3a42459d8385f15ce92f5b8776
5 files changed
+45
conf.d/Makefile.am
+5
@@ -41,7 +41,12 @@ dist_pythonconfig_DATA = \
41
42
healthconfigdir=$(configdir)/health.d
43
dist_healthconfig_DATA = \
44
+ health.d/apache.conf \
45
health.d/disks.conf \
46
health.d/entropy.conf \
47
+ health.d/named.conf \
48
health.d/net.conf \
49
+ health.d/nginx.conf \
50
+ health.d/redis.conf \
51
+ health.d/squid.conf \
52
$(NULL)
conf.d/health.d/named.conf
new
+10
@@ -0,0 +1,10 @@
1
+
2
+# make sure named is running
3
+
4
+template: named_last_collected_secs
5
+ on: named.global_queries_success
6
+ calc: $now - $last_collected_t
7
+ every: 10s
8
+ warn: $this > ( 5 * $update_every)
9
+ crit: $this > (10 * $update_every)
10
+
conf.d/health.d/nginx.conf
new
+10
@@ -0,0 +1,10 @@
1
+
2
+# make sure nginx is running
3
+
4
+template: nginx_last_collected_secs
5
+ on: nginx.requests
6
+ calc: $now - $last_collected_t
7
+ every: 10s
8
+ warn: $this > ( 5 * $update_every)
9
+ crit: $this > (10 * $update_every)
10
+
conf.d/health.d/redis.conf
new
+10
@@ -0,0 +1,10 @@
1
+
2
+# make sure redis is running
3
+
4
+template: redis_last_collected_secs
5
+ on: redis.operations
6
+ calc: $now - $last_collected_t
7
+ every: 10s
8
+ warn: $this > ( 5 * $update_every)
9
+ crit: $this > (10 * $update_every)
10
+
conf.d/health.d/squid.conf
new
+10
@@ -0,0 +1,10 @@
1
+
2
+# make sure squid is running
3
+
4
+template: squid_last_collected_secs
5
+ on: squid.client_requests
6
+ calc: $now - $last_collected_t
7
+ every: 10s
8
+ warn: $this > ( 5 * $update_every)
9
+ crit: $this > (10 * $update_every)
10
+