]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/health.d/mysql.conf
fail2bain plugin: "Currently In Jail" chart renamed
[netdata.git] / conf.d / health.d / mysql.conf
index e6f309fe8702e7a101f28044462289b06215ca3d..1eeb993f039a59742d9bfc9c551513d5b2d97878 100644 (file)
@@ -49,22 +49,23 @@ template: mysql_10s_table_locks_waited
 
 template: mysql_10s_waited_locks_ratio
       on: mysql.table_locks
-    calc: $mysql_10s_table_locks_waited * 100 / ( $mysql_10s_table_locks_waited + $mysql_10s_table_locks_immediate)
+    calc: ( ($mysql_10s_table_locks_waited + $mysql_10s_table_locks_immediate) > 0 ) ? (($mysql_10s_table_locks_waited * 100) / ($mysql_10s_table_locks_waited + $mysql_10s_table_locks_immediate)) : 0
    units: %
    every: 10s
-    warn: $this > (($status >= $WARNING)  ? (10) : (20))
-    crit: $this > (($status == $CRITICAL) ? (20) : (50))
-   delay: down 5m multiplier 1.5 max 1h
+    warn: $this > (($status >= $WARNING)  ? (10) : (25))
+    crit: $this > (($status == $CRITICAL) ? (25) : (50))
+   delay: down 30m multiplier 1.5 max 1h
     info: the ratio of mysql waited table locks, for the last 10 seconds
       to: dba
 
+
 # -----------------------------------------------------------------------------
 # replication
 
 template: mysql_replication
       on: mysql.slave_status
     calc: ($sql_running == -1 OR $io_running == -1)?0:1
-   units: status
+   units: ok/failed
    every: 10s
     crit: $this == 0
    delay: down 5m multiplier 1.5 max 1h
@@ -78,7 +79,7 @@ template: mysql_replication_lag
    every: 10s
     warn: $this > (($status >= $WARNING)  ? (5)  : (10))
     crit: $this > (($status == $CRITICAL) ? (10) : (30))
-   delay: down 5m multiplier 1.5 max 1h
+   delay: down 15m multiplier 1.5 max 1h
     info: the number of seconds mysql replication is behind this master
       to: dba