Commit Graph

2668 Commits

Author SHA1 Message Date
Daniel Nichter e825b233f5 Call JSON::decode() explicitly. 2013-06-15 13:00:15 -07:00
Daniel Nichter ccb2a7e7c7 Fix call to check_deps() for normal runs. 2013-06-15 12:52:37 -07:00
Daniel Nichter e3a8afc5b0 Fix Deb dep for IO::Socket::SSL. 2013-06-15 12:48:00 -07:00
Daniel Nichter 4f330004af Add DBI to deps. 2013-06-15 12:45:28 -07:00
Daniel Nichter 48d8fbcfad Actually exit if check_deps() fails in --install. 2013-06-15 12:34:47 -07:00
Daniel Nichter e3c931ff39 Exit if check_deps() fails in --install. 2013-06-15 12:33:16 -07:00
Daniel Nichter 7950b0d7cd Do require not eval for delayed loading. 2013-06-15 12:31:38 -07:00
Daniel Nichter 5be7c252b8 Delay loading required non-core modules and let pt-agent check for them manually. 2013-06-15 12:23:04 -07:00
Daniel Nichter e37bd32396 Start implementing Perl module dep check on --install. 2013-06-15 12:10:19 -07:00
Daniel Nichter 1496dd0aa5 Remove Rows_affected for SELECT|SHOW|SET|ADMIN in JSONReportFormatter. 2013-06-15 11:04:25 -07:00
Daniel Nichter b966968f9c Fix typo in __STAGE_FILE__. 2013-06-15 10:36:52 -07:00
Daniel Nichter 12c3bb307f Make pqd exit 1 on invalid --resume line. 2013-06-15 10:33:11 -07:00
Daniel Nichter c337d1ee44 Fix check for valid --resume file line. 2013-06-15 10:25:39 -07:00
Daniel Nichter 0437978fc1 Make pqd die on invalid --resume file line. 2013-06-15 10:21:21 -07:00
Daniel Nichter 00b9bc363d Fix __META_FILE__ replacement. 2013-06-15 10:08:56 -07:00
Daniel Nichter 58f8dfc979 Fix typo in __META__FILE__. 2013-06-14 22:21:52 -07:00
Daniel Nichter 805dd500b9 Change --stop error. 2013-06-14 22:12:02 -07:00
Daniel Nichter 29b1d20857 Fix reporting errors when stopping services. 2013-06-14 22:05:51 -07:00
Daniel Nichter 85bc902cc2 Let --run-service work without an agent. 2013-06-14 22:00:49 -07:00
Daniel Nichter 3b21af5504 Fix STORE values by making $store service-scoped. 2013-06-14 21:38:13 -07:00
Daniel Nichter 490d95dee7 Simplify and maybe fix crash in replace_special_vars(). 2013-06-14 21:22:55 -07:00
Daniel Nichter a148ce1cff eval replace_special_vars(). 2013-06-14 21:11:47 -07:00
Daniel Nichter 84cf7c00d0 Add __ENV__ to replace_special_vars(). 2013-06-14 21:05:50 -07:00
Daniel Nichter 7d2d3bfbfc Update the docs. 2013-06-14 20:52:54 -07:00
Daniel Nichter d074c1746b Remove misleading 'Online logging enabled' message. 2013-06-14 20:19:02 -07:00
Daniel Nichter 1c29d6adb3 Make Agent.versions rw. 2013-06-14 19:59:14 -07:00
Daniel Nichter 31157e368f Get MySQL version if needed. Remove Agent.actions. 2013-06-14 19:54:30 -07:00
Daniel Nichter 4e97201e34 Print the connect error. 2013-06-14 19:28:31 -07:00
Daniel Nichter 5bd7248c6c Replace __BIN_DIR__ and __TRASH_FILE__. Init --spool/.trash. 2013-06-14 19:12:58 -07:00
Daniel Nichter 079f570c78 Clear some states if no services are enabled. 2013-06-14 18:23:50 -07:00
Daniel Nichter a5bbd680c8 Always return stopped services from apply_services() so crontab is updated. 2013-06-14 17:59:31 -07:00
Daniel Nichter d89b260a97 Tweak some lines of output. 2013-06-14 17:29:18 -07:00
Daniel Nichter ad3e6a1663 Stop all services when pt-agent stops due to signal. 2013-06-14 17:26:58 -07:00
Daniel Nichter 3799682bce Calc MySQL restart on check-by-check bias to avoid drift causing false-positives. 2013-06-14 17:24:07 -07:00
Daniel Nichter 133232422b Fix sort_services() to return an empty hashref for services if there aren't any. 2013-06-14 17:11:07 -07:00
Daniel Nichter 66e1a8ec86 Always expect a list of services. If none and no previous services, warn about no services enabled. If either or, then apply the curr services even if empty list to disable everything. 2013-06-14 16:06:13 -07:00
Daniel Nichter 37b34e47b9 Don't keep reporting 'MySQL restarted'. 2013-06-14 15:45:03 -07:00
Daniel Nichter 26b14588cb Make MySQL uptime check account for time spent doing everything between checks. 2013-06-14 15:33:27 -07:00
Daniel Nichter a771591815 Do check for MySQL restart first in case GET /config is slow. Increase margin to 5s. 2013-06-14 15:03:41 -07:00
Daniel Nichter 2ba12f3958 Tweak how check_if_mysql_restarted() works. 2013-06-14 14:52:47 -07:00
Daniel Nichter a7d76311b0 Fix crash due to bad localization of var. Update post-install message. 2013-06-14 14:21:21 -07:00
Daniel Nichter 2d594617da Enable output autoflush in install() so install steps work correctly. 2013-06-14 13:54:20 -07:00
Daniel Nichter 125feff82a Fix typo. 2013-06-14 13:51:45 -07:00
Daniel Nichter bc70912fe8 Update Logger in pt-agent. 2013-06-14 13:50:30 -07:00
Daniel Nichter a26792e2fd New --install output: quieter, more consistent. 2013-06-14 13:49:58 -07:00
Daniel Nichter f49bbde71b Pass --interactive to instal(). 2013-06-14 12:27:26 -07:00
Daniel Nichter 62648bf213 First attempt at detecting MySQL restart. 2013-06-14 11:19:11 -07:00
Daniel Nichter e1a911e0a9 Pass quiet to init_lib() for --run-service and --send-data so crontab doesn't mail root. 2013-06-13 22:08:24 -07:00
Daniel Nichter 9b6ff10682 Fix/clarify --status warnings about services running or not. 2013-06-13 21:17:16 -07:00
Daniel Nichter 5b4f7086aa Fix "Can't call method "meta" on unblessed reference" error. 2013-06-13 21:12:50 -07:00