]> arthur.barton.de Git - netdata.git/commitdiff
added alarms for running named, nginx, redis, squid
authorCosta Tsaousis <costa@tsaousis.gr>
Sat, 20 Aug 2016 20:13:17 +0000 (23:13 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Sat, 20 Aug 2016 20:13:17 +0000 (23:13 +0300)
conf.d/Makefile.am
conf.d/health.d/named.conf [new file with mode: 0644]
conf.d/health.d/nginx.conf [new file with mode: 0644]
conf.d/health.d/redis.conf [new file with mode: 0644]
conf.d/health.d/squid.conf [new file with mode: 0644]

index 178e64b623008ed1186923c4e2fa26b1c7efbaf0..0239d8cb6292f2a3a7f8dc1b289497b4db80f47b 100644 (file)
@@ -41,7 +41,12 @@ dist_pythonconfig_DATA = \
 
 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)
diff --git a/conf.d/health.d/named.conf b/conf.d/health.d/named.conf
new file mode 100644 (file)
index 0000000..e4b9b19
--- /dev/null
@@ -0,0 +1,10 @@
+
+# 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)
+
diff --git a/conf.d/health.d/nginx.conf b/conf.d/health.d/nginx.conf
new file mode 100644 (file)
index 0000000..e1fb17a
--- /dev/null
@@ -0,0 +1,10 @@
+
+# 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)
+
diff --git a/conf.d/health.d/redis.conf b/conf.d/health.d/redis.conf
new file mode 100644 (file)
index 0000000..92c4330
--- /dev/null
@@ -0,0 +1,10 @@
+
+# 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)
+
diff --git a/conf.d/health.d/squid.conf b/conf.d/health.d/squid.conf
new file mode 100644 (file)
index 0000000..fde3217
--- /dev/null
@@ -0,0 +1,10 @@
+
+# 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)
+