PT-1526 Add ndb status to pt-mysql-summary

This commit is contained in:
Carlos Salguero
2018-04-04 09:26:02 -03:00
parent 6e96a1123c
commit f6c01fc5bf
3 changed files with 11 additions and 1 deletions

View File

@@ -118,6 +118,10 @@ collect_mysql_processlist () {
collect_mysql_users () {
$CMD_MYSQL $EXT_ARGV -ss -e 'SELECT COUNT(*), SUM(user=""), SUM(password=""), SUM(password NOT LIKE "*%") FROM mysql.user' 2>/dev/null
if [ "$?" -ne 0 ]; then
$CMD_MYSQL $EXT_ARGV -ss -e 'SELECT COUNT(*), SUM(user=""), SUM(authentication_string=""), SUM(authentication_string NOT LIKE "*%") FROM mysql.user' 2>/dev/null
fi
}
collect_mysql_show_slave_hosts () {