diff --git a/bin/pt-mysql-summary b/bin/pt-mysql-summary index bd8960cc..3c794eb8 100755 --- a/bin/pt-mysql-summary +++ b/bin/pt-mysql-summary @@ -921,7 +921,7 @@ get_mysqldump_args () { collect_mysqld_executables () { local mysqld_instances="$1" - for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do + for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^.*[0-9]/{print $1}' ); do ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$' done | sort -u } diff --git a/lib/bash/collect_mysql_info.sh b/lib/bash/collect_mysql_info.sh index ba35831a..df4bddcd 100644 --- a/lib/bash/collect_mysql_info.sh +++ b/lib/bash/collect_mysql_info.sh @@ -201,7 +201,7 @@ get_mysqldump_args () { collect_mysqld_executables () { local mysqld_instances="$1" - for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do + for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^.*[0-9]/{print $1}' ); do ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$' done | sort -u }