]> arthur.barton.de Git - netdata.git/commitdiff
network interface errors are now warnings; added mysql alarm
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 5 Sep 2016 20:20:09 +0000 (23:20 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 5 Sep 2016 20:20:09 +0000 (23:20 +0300)
conf.d/Makefile.am
conf.d/health.d/mysql.conf [new file with mode: 0644]
conf.d/health.d/net.conf

index c2fbac5a2a9658f7ddac5316d36e4a5418e7c3b1..4dff03877513528cae435d1f55aff35a7c7a1521 100644 (file)
@@ -47,6 +47,7 @@ dist_healthconfig_DATA = \
        health.d/disks.conf \
        health.d/entropy.conf \
        health.d/memcached.conf \
+       health.d/mysql.conf \
        health.d/named.conf \
        health.d/net.conf \
        health.d/nginx.conf \
diff --git a/conf.d/health.d/mysql.conf b/conf.d/health.d/mysql.conf
new file mode 100644 (file)
index 0000000..77c21aa
--- /dev/null
@@ -0,0 +1,12 @@
+
+# make sure mysql is running
+
+template: mysql_last_collected_secs
+      on: mysql.queries
+    calc: $now - $last_collected_t
+   every: 10s
+    warn: $this > ( 5 * $update_every)
+    crit: $this > (60 * $update_every)
+   units: seconds ago
+    info: number of seconds since the last successful data collection
+      to: dba
index 209dbda6abca238ce6a487e853b8eb4828263915..8ed713758d156e2d53a033aeefef349b79038192 100644 (file)
@@ -7,7 +7,7 @@ template: 30min_packet_drops
       on: net.drops
   lookup: sum -30m unaligned absolute
    every: 1m
-    crit: $this > 0
+    warn: $this > 0
    units: packets
     info: dropped packets in the last 30 minutes
       to: sysadmin
@@ -22,7 +22,7 @@ template: 30min_fifo_errors
       on: net.fifo
   lookup: sum -30m unaligned absolute
    every: 1m
-    crit: $this > 0
+    warn: $this > 0
    units: errors
     info: network interface fifo errors in the last 30 minutes
       to: sysadmin