@cryptotaxi247 / netdata-1 / commits / a1e558d21

fix for mysql not collecting Questions and Qcache Inserts

Costa Tsaousis (ktsaou) committed Jun 12, 2016 at 14:26 UTC a1e558d213614019886ddd8fa7dd532811df588c
1 file changed +2 -2
charts.d/mysql.chart.sh
+2 -2
@@ -17,7 +17,7 @@ mysql_get() {
17 local oIFS="${IFS}"
18 mysql_data=()
19 IFS=$'\t'$'\n'
20 - arr=($("${@}" -e "SHOW GLOBAL STATUS WHERE value REGEXP '^[0-9]';" | egrep "^(Bytes|Slow_|Queri|Handl|Table|Selec|Sort_|Creat|Conne|Abort|Binlo|Threa|Innod|Qcach|Key_|Open)" ))
20 + arr=($("${@}" -e "SHOW GLOBAL STATUS WHERE value REGEXP '^[0-9]';" | egrep "^(Bytes|Slow_|Que|Handl|Table|Selec|Sort_|Creat|Conne|Abort|Binlo|Threa|Innod|Qcach|Key_|Open)" ))
21 IFS="${oIFS}"
22
23 [ "${#arr[@]}" -lt 3 ] && return 1
@@ -449,7 +449,7 @@ END
449 BEGIN mysql_$x.qcache_ops $1
450 SET Qcache_hits hits = ${mysql_data[Qcache_hits]}
451 SET Qcache_lowmem_prunes = ${mysql_data[Qcache_lowmem_prunes]}
452 -SET Qcache_inserts_inserts = ${mysql_data[Qcache_inserts_inserts]}
452 +SET Qcache_inserts = ${mysql_data[Qcache_inserts]}
453 SET Qcache_not_cached = ${mysql_data[Qcache_not_cached]}
454 END
455 BEGIN mysql_$x.qcache $1