Commit Graph

32 Commits

Author SHA1 Message Date
Frank Cizmich 1e2e7b5a18 pt-stalk now collects 1 minute of dmesg output preceding trigger event - 1349086 2014-10-22 16:16:13 -02: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 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 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 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
Daniel Nichter d04529a64b Wait --run-time more for collector procs to finish, then kill them, then remove empty files. 2012-10-13 12:21:52 -06:00
Daniel Nichter e1bd108aa4 Collect INNODB_TRX, INNODB_LOCKS, and INNODB_LOCK_WAITS. Fix update-module so it works again with Bash tools. 2012-08-30 15:40:09 -06:00
Daniel Nichter b5ba79bb6d Collect df -k instead of df -h. Set log_error with abs path to fix failing t/lib/bash/collect.t test. 2012-08-14 09:11:41 -06:00
Daniel Nichter 94d9483d03 Make vmstat, iostat, and mpstat run for --run-time not --interval. 2012-03-30 11:35:32 -06:00
Daniel Nichter 0ac6c35211 Fix _pidof() calls in collect.sh. Update Bash libs in pt-ioprofile. 2012-02-03 10:49:27 -07:00
Daniel Nichter 7be99c5140 Add _which() to alt_cmds.sh and update pt-stalk. 2012-02-02 12:04:28 -07:00
Daniel Nichter c40e5db1bf Fix lib tests for MySQL 5.0. 2012-02-02 10:56:55 -07:00
Daniel Nichter d1a684b55b Use _pidof() and _lsof() from Percona Monitoring Plugins. Use "" and "yes" exclusively in collect(). Don't exec cmds that need mysqld_pid unless mysqld_pid is defined. Use log() instead of echo. 2012-01-30 08:59:19 -07:00
Daniel Nichter e954505dd2 Don't print errors in data files; let the general -output file catch them. Print TS lines before data. Try to find sysctl manually. Add _pidof() to alt_cmds.sh. 2012-01-27 17:37:59 -07:00
Daniel Nichter 05ac0be136 Change --disk-byte-limit to --disk-bytes-free and --disk-pct-limit to --disk-pct-free. 2012-01-26 12:45:44 -07:00
Daniel Nichter c2fd3f54c2 Use "yes" for true, "" for false. Use $PO_DIR instead of $TMP_DIR/po. Add and test Baron's code for 'Options and values after processing arguments'. Make --help exit 0 unless there were errors. 2012-01-24 12:49:18 -07:00
Daniel Nichter 2412e01aa0 Use which to get programs. Don't create file unless the program or file exists. 2012-01-19 10:46:48 -07:00
Daniel Nichter cfce6e6eb2 More quoting and tweaking re Baron's review. 2012-01-13 10:02:17 -07:00
Daniel Nichter 90fbfaf41f Don't quote $EXT_ARGV so multiple opts work. 2011-12-08 14:25:35 -07:00
Daniel Nichter 36e88c8e40 Fix typo. 2011-12-08 13:49:44 -07:00
Daniel Nichter 9ec71db008 Collect INFORMATION_SCHEMA.INNODB_LOCK_WAITS data. 2011-12-08 13:33:50 -07:00
Daniel Nichter 1c495936c8 Get Open_tables if <= 1000. 2011-12-08 12:05:20 -07:00
Daniel Nichter 0cfef9134c Collect proclist in loop. 2011-12-08 11:45:16 -07:00
Daniel Nichter f624220b40 Fix typo. 2011-12-06 13:36:45 -07:00
Daniel Nichter f6306c9ec0 Test collect.sh. Use --run-time instead of --interval for collect loop. Fix and require per-test test names in util/test-bash-functions. Fix OPT_ERR in parse_options.sh. 2011-12-06 13:23:47 -07:00
Daniel Nichter c804079c0d Add Bash libs collect.sh (pt-collect internals), safeguards.sh, and alt_cmds.sh. 2011-12-05 13:48:54 -07:00