Done
Details
Assignee
Carlos SalgueroCarlos Salguero(Deactivated)Reporter
lpjirasynclpjirasync(Deactivated)Priority
LowComponents
Fix versions
Needs Review
YesStory Points
0.5
Details
Details
Assignee
Carlos Salguero
Carlos Salguero(Deactivated)Reporter
lpjirasync
lpjirasync(Deactivated)Priority
Components
Fix versions
Needs Review
Yes
Story Points
0.5
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 9:24 PM
Updated March 4, 2024 at 4:39 PM
Resolved October 1, 2021 at 12:27 PM
**Reported in Launchpad by zhechen last update 25-11-2016 14:13:03
host env:
Centos 6.8
percona-toolkit-2.2.19
two mysql instance:
$ pidof mysqld
33530 17881
my host have two mysql instance, 3304 port(pid: 17881) and 3306 port(pid: 33530), when I use pt-stalk to monitor 3304 port, the mysql info logs in /var/lib/pt-stalk/ is about 3306 port, this is wrong, I just want log the mysql 3304 port.
the following code in pt-stalk mabye get wrong mysql pid:
792 collect() {
793 local d="$1" # directory to save results in
794 local p="$2" # prefix for each result file
795
796 local mysqld_pid=$(_pidof mysqld | awk '{print $1; exit;}')
797
the subsequent mysql info will be wrong when mysqld_pid is wrong, pt-stalk should read mysql pid_file to get right pid number.