Commit Graph

159 Commits

Author SHA1 Message Date
Frank Cizmich
f8c8411297 simplified conditional for testing if HOME is set 2015-01-19 14:58:47 -02:00
Frank Cizmich
18f85786ba added test. removed space 2015-01-14 14:36:44 -02:00
Frank Cizmich
a7e1975eea parse_options checks if HOME is set 2015-01-13 17:36:26 -02:00
Frank Cizmich
c46232cf3c merged pt-stalk-should-also-gather-dmesg-output-1349086 2014-11-06 19:18:49 -02:00
Frank Cizmich
1e2e7b5a18 pt-stalk now collects 1 minute of dmesg output preceding trigger event - 1349086 2014-10-22 16:16:13 -02:00
Frank Cizmich
dc4c506483 many scripts failed when reading no-version-check from global config file - 1361293 2014-10-06 19:04:49 -02:00
Frank Cizmich
21b1c78a78 merged pt-summary-problem-parsing-dmidecode-output-on-some-machines-1368379 2014-09-18 18:56:03 -03:00
Frank Cizmich
5e7cedfbc4 pt-summary problem parsing output from dmidecode version 2.12 - 1368379 2014-09-17 18:25:04 -03:00
Frank Cizmich
95c5f4d4ef updated module and tests for issue - 1264580 2014-09-03 18:18:38 -03:00
Frank Cizmich
cde3e26140 fixed pt-mest --version
fixed version parsing in parse_options.sh , was incompatible with dash shell script
2014-07-10 17:15:13 -03:00
Daniel Nichter
2a1654c47b Merge pt-stalk-sleep-collect-option. 2013-12-13 20:31:53 -08:00
Daniel Nichter
69586fdf50 Revert r587: *do* sync on clock ticks. Fix pt-stalk.t (127.1 no longer works?). Enhance --sleep-collect docs. 2013-12-13 20:19:51 -08:00
Daniel Nichter
5ff62d6956 Fix tests. 2013-12-12 05:49:59 +00:00
Daniel Nichter
591e5e00f3 Add back blank lines around Schema section contents. Use default vals for OPT_DATABASE, OPT_ALL_DATABASES, and OPT_READ_SAMPLE in report_mysql_info.sh to avoid errors in unit tests. 2013-12-12 05:02:34 +00:00
Daniel Nichter
826685e636 Remove blank lines around Schema section contents. 2013-12-11 20:49:19 -08:00
Daniel Nichter
b7320fc9ee Remove mysqldump prompt, add --all-databases, and make --databases or --all-databases required to do mysqldump (Schema section). 2013-12-11 20:40:57 -08:00
Daniel Nichter
a2f71b41f8 Fix check_disk_space(). 2013-10-31 11:20:46 -07:00
Daniel Nichter
a6dc5a91ec Read opts file in perl instead of 'cat file | perl' to avoid occasional 'cat: write error: Broken pipe'. 2013-08-09 21:21:55 +00:00
Daniel Nichter
5035de3fbb Calc cnt for iostat, vmstat, mpstat, and mysqladmin -c as --run-time/--sleep-collect. 2013-07-24 13:29:23 -07:00
Daniel Nichter
47ef093a58 Calc collect loop run time based on start ts - curr ts so arbitrary --sleep-collect work. Do not sync on clock ticks. 2013-07-24 12:49:28 -07:00
Daniel Nichter
86a949253d Allow string interpol in collect sleep calc so --sleep-collect works. 2013-07-24 12:08:01 -07:00
Daniel Nichter
50301e51d5 Add --sleep-collect, default 1. 2013-07-24 11:53:08 -07:00
Daniel Nichter
5a5fe75130 Merge pt-stalk-1019648. 2013-03-12 15:23:02 -06:00
Daniel Nichter
7f728acddd Move code to get InnoDB status into its own sub. 2013-03-12 15:08:25 -06:00
Daniel Nichter
e3346332e1 Merge pt-ms-pt-stalk-standard-mysql-options. 2013-03-09 11:57:41 -07:00
Brian Fraser
0efad73f3e Rearrange mysql options so that --defaults-file is always first, and remove default: localhost from pt-ms and pt-stalk, since parse_options.sh deals with defaults + config files for mysql options poorly 2013-03-06 12:52:17 -03:00
Brian Fraser
ebd83f5ba4 Minor fixes for compat 2013-03-05 11:32:21 -03:00
Daniel Nichter
f7f63555ee Add lib/bash/subshell.sh and use in pt-stalk to fix/improve subprocess waiting. 2013-03-04 17:47:02 -07:00
Fernando Ipar
177c2aaef7 Changed collect so that innodb status is read from tmp file if the original output is truncated 2013-03-04 17:40:41 -02:00
Brian Fraser
9e2ce2197f pt-ms & pt-stalk: Enable the standard mysql options 2013-02-25 11:21:46 -03:00
Daniel Nichter
26cc08d3d9 Fix default log level in log_warn_die.sh. 2013-01-24 11:39:23 -07:00
Daniel Nichter
b196f50e60 Test --verbose. Remove global default OPT_VERBOSE from log_warn_die.sh so tool's option can set it. 2013-01-24 11:13:39 -07:00
Daniel Nichter
11fa16382c Add --verbose to pt-stalk. Change _print() to ts() in log_warn_die.sh. 2013-01-24 09:36:57 -07:00
Daniel Nichter
98ced1a035 Make add info() log_warn_die.sh and make the subs respect OPT_VERBOSE. Add more test harness subs in util/test-bash-functions. 2013-01-24 09:17:19 -07:00
Brian Fraser fraserb@gmail.com
4eaf6e51f8 Merged experimental-fix-986847-pt-stalk-set-command 2012-12-05 21:15:20 -03:00
Brian Fraser fraserb@gmail.com
f8c7c7f2d4 Merged fix-1015590-pt-mysql-summary-percona-server-5.5 2012-12-05 21:10:22 -03:00
Brian Fraser
a5d1021367 Rename "Cluster" to "Cluster Name" and "Node" to "Node Name" 2012-12-04 13:26:34 -03:00
Brian Fraser
15855fb076 Change feat_on_renamed() per Daniel's feedback 2012-12-04 13:17:58 -03:00
Brian Fraser
ee607b1f25 Change the ordering in the PXC section 2012-12-04 00:39:34 -03:00
Brian Fraser
a3527f748c Fixed the Smooth Flushing report on 5.1, which was broken by the previous commit, and made it work on 5.5 2012-11-30 18:17:30 -03:00
Brian Fraser
ee41d4deb4 Introduce feat_on_renamed, a wrapper around feat_on for renamed variables 2012-11-29 22:32:22 -03:00
Brian Fraser
98707e937c pt-mysql-summary: Feedback from Fred & Jay; Display wsrep_slave_threads, and also parse & display pc.ignore_sb, pc.ignore_quorum, gcache.size, gcache.dir, gcache.name, all from wsrep_provider_options 2012-11-29 19:38:50 -03:00
Brian Fraser
ff3d496cf0 pt-mysql-summary: Make sure the Status Counters don't use scientific notation 2012-11-29 18:08:59 -03:00
Brian Fraser fraserb@gmail.com
d47b9f1f95 pt-mysql-summary: Start reporting some PXC info 2012-11-27 19:05:45 -03:00
Brian Fraser fraserb@gmail.com
f915e54a17 pt-mysql-summary: Make the "Executables" section work 2012-11-27 18:28:07 -03:00
Brian Fraser fraserb@gmail.com
bb75e6a6b7 pt-mysql-summary: Make the "Instances" section work if the instances were started with --defaults-file 2012-11-27 18:19:47 -03:00
Brian Fraser fraserb@gmail.com
84043cee75 parse_options.sh: Make sure that --help works under sh 2012-11-27 18:05:53 -03:00
Brian Fraser fraserb@gmail.com
22ec559b38 Fix for 986847: Allow setting which commands (and extra options) pt-stalk uses through env vars 2012-11-12 11:26:01 -03:00
Brian Fraser
227dfa6ea7 Fix for 1015590: pt-mysql-summary not Percona Server 5.5-ready 2012-11-02 00:21:48 -03:00
Daniel Nichter
b6072ab011 Only cat cnf file > mysql-config-file if it exists. 2012-10-24 12:43:26 -06:00