Daniel Nichter
|
19287b6526
|
Go back to not spooling empty sample files.
|
2013-04-09 18:49:27 -06:00 |
|
Daniel Nichter
|
62987419ae
|
Remove some info messages from stop_agent().
|
2013-04-09 18:33:00 -06:00 |
|
Daniel Nichter
|
efdfa0fdef
|
Fix disabling services in stop_agent().
|
2013-04-09 18:29:17 -06:00 |
|
Daniel Nichter
|
c246bf12f3
|
Use TERM instead of QUIT signal so pt-agent can trap it.
|
2013-04-09 18:20:44 -06:00 |
|
Daniel Nichter
|
279b8f2188
|
Implement --stop.
|
2013-04-09 18:15:12 -06:00 |
|
Daniel Nichter
|
79c8705f02
|
Update default entry link. Handle catch/exit on signal better, faster.
|
2013-04-09 17:32:43 -06:00 |
|
Daniel Nichter
|
1cb611b574
|
Don't pass entry_link unless given to avoid stack trace error.
|
2013-04-09 17:12:11 -06:00 |
|
Daniel Nichter
|
b8b01d6820
|
Remove hack to avoid starting turn-off services.
|
2013-04-09 16:57:25 -06:00 |
|
Daniel Nichter
|
2500de710f
|
Fix query-history/data POST data.
|
2013-04-09 16:32:56 -06:00 |
|
Daniel Nichter
|
0869936f86
|
Fix sending/encoding the meta file.
|
2013-04-09 15:12:35 -06:00 |
|
Daniel Nichter
|
da27f42c2b
|
Remove lib/meta/* in start_services().
|
2013-04-09 14:58:08 -06:00 |
|
Daniel Nichter
|
9555b26920
|
Don't use .start files because they won't work like I was thinking. Just removing meta/service* should be enough. Only use metadata for services that spool.
|
2013-04-09 14:48:40 -06:00 |
|
Daniel Nichter
|
f9561a7197
|
Use correct start log.
|
2013-04-09 14:20:16 -06:00 |
|
Daniel Nichter
|
c900f77a69
|
Make start_services() rm meta/service*. Write lib/service.start when a service starts, and don't run_service() unless this file is present.
|
2013-04-09 14:12:48 -06:00 |
|
Daniel Nichter
|
b77612d730
|
Remove .microseconds from start_ts and end_ts.
|
2013-04-09 12:26:48 -06:00 |
|
Daniel Nichter
|
98a4d9c2d5
|
Fix typo in run_service(): write data to --spool/.tmp/.
|
2013-04-09 11:34:02 -06:00 |
|
Daniel Nichter
|
d142a4650c
|
Add --lib/meta/ to save ts for previous --run-serivce so samples are collected at distinct intervals. Send start_ts and end_ts as metadata for --send-data.
|
2013-04-09 11:18:04 -06:00 |
|
Daniel Nichter
|
5cc1663520
|
Fix --send-data causing 'Use of uninitialized value $exit_status'.
|
2013-04-08 17:16:16 -06:00 |
|
Daniel Nichter
|
9e15315c6a
|
Put env vars in correct place in crontab lines.
|
2013-04-08 17:01:13 -06:00 |
|
Daniel Nichter
|
36e417363d
|
Add certain env vars to crontab commands. Run one start-once service at a time and warn if any one fails. Temp hack to stop running turn-off services.
|
2013-04-08 16:56:26 -06:00 |
|
Daniel Nichter
|
a9e06286af
|
Handle run-once services. Stub implementation of --stop.
|
2013-04-08 16:17:08 -06:00 |
|
Daniel Nichter
|
c46a0e3199
|
Fix init_config_file() when config file doesn't exist yet.
|
2013-04-08 15:16:53 -06:00 |
|
Daniel Nichter
|
3d20ff5f54
|
Update docs re installing.
|
2013-04-08 13:33:58 -06:00 |
|
Daniel Nichter
|
6b91c5b06e
|
Fix/finish re-daemonizing. Make parent print a line about the running daemon before exiting (so user knows that pt-agent is running and "where"). Try to connect to MySQL once at first, but TODO: re-try to connect to MySQL later until successful.
|
2013-04-06 10:48:59 -06:00 |
|
Daniel Nichter
|
1610cbae96
|
Tweak Daemon.pm: re-enable output autoflush, add parent_exit callback arg, make _check_pid_file() check if the current and existing PID are the same.
|
2013-04-06 10:44:20 -06:00 |
|
Daniel Nichter
|
62a30edcea
|
Make it so pt-agent can "re-daemonize" without restarting, i.e. change it's --log and --pid on the fly.
|
2013-04-05 20:03:43 -06:00 |
|
Daniel Nichter
|
2ac102da0b
|
Large refactoring of pt-agent to make the initial start up experience more reliable, i.e. just run and wait till a good config makes everything else work.
|
2013-04-05 18:12:33 -06:00 |
|
Daniel Nichter
|
3d5325ae03
|
Rewrite Daemon.pm: don't require an OptionParser, one public func, run(), that does the whole daemonize process or just check the PID file.
|
2013-04-05 12:16:16 -06:00 |
|
Daniel Nichter
|
afa6533f43
|
Fix and test resource_diff().
|
2013-03-27 11:12:38 -06:00 |
|
Daniel Nichter
|
13e9b5d7c7
|
Fix typo checking spool data file size.
|
2013-03-26 14:41:16 -06:00 |
|
Daniel Nichter
|
b17f45d3cd
|
Fix spool file. Actually write run and send PID files.
|
2013-03-26 14:36:58 -06:00 |
|
Daniel Nichter
|
58ea0f1886
|
Fix 'Modification of a read-only value attempted at /home/ptagent/pt-agent/bin/pt-agent line 5691'.
|
2013-03-26 14:26:40 -06:00 |
|
Daniel Nichter
|
b9a82c21b9
|
Always init lib dir when applying first config.
|
2013-03-26 14:20:45 -06:00 |
|
Daniel Nichter
|
ba2b26a9c7
|
Init spool dir when confnig is applied. Use lib/logs and lib/pids for run and send logs and pids. Spool data to tmp dir first then mv to spool.
|
2013-03-26 14:10:01 -06:00 |
|
Daniel Nichter
|
6b89da736b
|
Fix minor typo.
|
2013-03-26 10:29:05 -06:00 |
|
Daniel Nichter
|
ba7d55910b
|
Check silently for first config every 60s. Check --lib dir earlier, but this is a TODO still. Replace __LIB__ and __SERVICE__ in tasks.
|
2013-03-26 10:20:13 -06:00 |
|
Daniel Nichter
|
cbc67774b3
|
Log --run-service and --send-data. Spool to separate files with .TS suffixes. Use /tmp until --lib is valid. Daemonize early. Replace __TS_MICRO__ in task options.
|
2013-03-26 09:08:37 -06:00 |
|
Daniel Nichter
|
6e1e70477e
|
Fix 'Undefined subroutine &pt_agent::get'.
|
2013-03-26 08:15:04 -06:00 |
|
Daniel Nichter
|
10a3dbdcf1
|
Fix get_api_client() so it doesn't loop out of controll if PWS doesn't return valid entry links.
|
2013-03-25 15:58:46 -06:00 |
|
Daniel Nichter
|
bf1cee02cf
|
Re-enable tmpdir auto cleanup.
|
2013-03-25 14:54:17 -06:00 |
|
Daniel Nichter
|
bdc3487919
|
Add and test start_services() for Service.run_once_on_start.
|
2013-03-25 14:27:53 -06:00 |
|
Daniel Nichter
|
2eff2692fe
|
Fix detecting new lib dir. Fix removing service files.
|
2013-03-22 17:07:02 -06:00 |
|
Daniel Nichter
|
9e1d935e19
|
Add Service.run_once_on_start. Refactor get config and get services blocks.
|
2013-03-22 12:08:45 -06:00 |
|
Daniel Nichter
|
c1cce0c6ca
|
Get and send real program version when the agent starts.
|
2013-03-21 13:50:49 -06:00 |
|
Daniel Nichter
|
f04d0e575a
|
Write pt-agent docs.
|
2013-03-21 11:49:29 -06:00 |
|
Daniel Nichter
|
0e9e897791
|
Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data.
|
2013-03-21 07:52:21 -06:00 |
|
Daniel Nichter
|
cf0342c69e
|
Implement and test running queries for tasks.
|
2013-03-19 18:17:24 -06:00 |
|
Daniel Nichter
|
846daa6c31
|
Fix/update/test sending data. Rename query-monitor to query-server in tests.
|
2013-03-19 16:35:37 -06:00 |
|
Daniel Nichter
|
5a65305a47
|
Update pt-agent to run tasks not runs.
|
2013-03-19 15:37:55 -06:00 |
|
Daniel Nichter
|
9afa462cc2
|
Fix/update t/pt-agent/run_agent.t.
|
2013-03-19 14:56:53 -06:00 |
|