Florian Forster [Tue, 15 Jul 2008 18:20:17 +0000 (20:20 +0200)]
rrdcached(1): Document which commands are aware of the daemon.
Florian Forster [Tue, 15 Jul 2008 18:11:57 +0000 (20:11 +0200)]
rrdtool(1): Add a pointer to the rrdcached(1) manpage.
Florian Forster [Tue, 15 Jul 2008 18:07:07 +0000 (20:07 +0200)]
rrdxport(1): Add `--daemon' to the synopsis.
Florian Forster [Tue, 15 Jul 2008 18:06:41 +0000 (20:06 +0200)]
rrdfetch(1): Add `--daemon' to the synopsis.
Florian Forster [Tue, 15 Jul 2008 18:06:13 +0000 (20:06 +0200)]
rrdlastupdate(1): Document the new `--daemon' option.
Florian Forster [Tue, 15 Jul 2008 18:05:49 +0000 (20:05 +0200)]
rrdlast(1): Document the new `--daemon' option.
Florian Forster [Tue, 15 Jul 2008 18:05:34 +0000 (20:05 +0200)]
rrdinfo(1): Document the new `--daemon' option.
Florian Forster [Tue, 15 Jul 2008 18:05:11 +0000 (20:05 +0200)]
rrddump(1): Document the new `--daemon' option.
Florian Forster [Tue, 15 Jul 2008 18:04:16 +0000 (20:04 +0200)]
rrdtool(1): Add a pointer to the rrdflush(1) manual page.
Florian Forster [Tue, 15 Jul 2008 18:02:43 +0000 (20:02 +0200)]
rrdflush(1): Added a manual page for the `flush' command.
Florian Forster [Tue, 15 Jul 2008 17:30:18 +0000 (19:30 +0200)]
src/rrd_{fetch,update}.c: Rename the variable `daemon' to `opt_daemon'.
This resolves a stupid warning GCC throws..
Florian Forster [Tue, 15 Jul 2008 17:28:28 +0000 (19:28 +0200)]
src/rrd_info.c: Implement the `--daemon' option for `rrdtool last'.
Florian Forster [Tue, 15 Jul 2008 17:20:42 +0000 (19:20 +0200)]
src/rrd_flush.c: Add the `flush' command to the `rrdtool' application.
Florian Forster [Sun, 13 Jul 2008 14:08:50 +0000 (16:08 +0200)]
src/rrd_dump.c: Rename the `rrdcached' variable to `opt_daemon'.
Florian Forster [Sun, 13 Jul 2008 14:08:21 +0000 (16:08 +0200)]
src/rrd_lastupdate.c: Implement the `--daemon' option for `rrdtool lastupdate'.
The new library function `rrd_lastupdate' takes the usual (argc, argv)
arguments. The `rrd_lastupdate_r' function has been changed to receive
a file name directly instead of using only argv[1].
Florian Forster [Sun, 13 Jul 2008 14:03:10 +0000 (16:03 +0200)]
src/rrd_last.c: Implement the `--daemon' option for `rrdtool last'.
Florian Forster [Sun, 13 Jul 2008 12:49:58 +0000 (14:49 +0200)]
src/rrd_dump.c: Implement the `--daemon' option for `rrdtool dump'.
Florian Forster [Sun, 13 Jul 2008 12:34:33 +0000 (14:34 +0200)]
src/rrd_daemon.c: Stat files before creating a tree-node for them.
This way `rrdtool update' does complain about nonexistent files.
Florian Forster [Thu, 3 Jul 2008 21:23:05 +0000 (23:23 +0200)]
src/rrd_daemon.c: Only increate number of updates and datasets if no failure.
Florian Forster [Thu, 3 Jul 2008 20:50:21 +0000 (22:50 +0200)]
src/librrd.sym: Export the `rrdc_{connect,disconnect,update,flush} symbols.
Florian Forster [Thu, 3 Jul 2008 20:49:51 +0000 (22:49 +0200)]
src/rrd_daemon.c: Create listen threads in the detached state.
Florian Forster [Thu, 3 Jul 2008 15:50:53 +0000 (17:50 +0200)]
src/rrd_daemon.c: Remove remaining debug messages.
Florian Forster [Thu, 3 Jul 2008 15:47:25 +0000 (17:47 +0200)]
src/rrd_update.c: Set `rc' correctly when succeeding.
Florian Forster [Thu, 3 Jul 2008 15:47:03 +0000 (17:47 +0200)]
src/rrd_daemon.c: Instann the SIGTERM handler correctly.
Florian Forster [Thu, 3 Jul 2008 15:16:37 +0000 (17:16 +0200)]
rrdcached(1): Some typo and minor formulation fixes.
Florian Forster [Thu, 3 Jul 2008 15:14:04 +0000 (17:14 +0200)]
rrdcached(1): Documented the protocol used by the daemon.
Some statistic values have been renamed. This has been changed in
src/rrd_daemon.c, too.
Florian Forster [Thu, 3 Jul 2008 12:32:12 +0000 (14:32 +0200)]
src/rrd_daemon.c: Don't close the socket if UPDATE fails.
Florian Forster [Thu, 3 Jul 2008 09:39:13 +0000 (11:39 +0200)]
src/rrd_daemon.c: Use `sread' and `swrite' instead of read(2) and write(2).
The ``secure'' sread assures that the received string ends with a newline,
strips it off the buffer and assures that the returned buffer is null
terminated. swrite returns success only if all bytes could be written.
Florian Forster [Thu, 3 Jul 2008 09:17:59 +0000 (11:17 +0200)]
src/rrd_client.c: Close the socket if writing to it fails.
Florian Forster [Thu, 3 Jul 2008 09:09:53 +0000 (11:09 +0200)]
src/rrd_daemon.c: Implemented the `HELP' command.
Florian Forster [Thu, 3 Jul 2008 08:48:17 +0000 (10:48 +0200)]
src/rrd_daemon.c: Tell the connected party about invalid commands.
Florian Forster [Thu, 3 Jul 2008 08:42:45 +0000 (10:42 +0200)]
src/rrd_daemon.c: Catch invalid uses of `flush'.
And don't run into an assertion in that case.
Florian Forster [Thu, 3 Jul 2008 08:30:33 +0000 (10:30 +0200)]
src/rrd_daemon.c: Impemented the `stats' command.
It currently returns five statistics:
- Number of nodes and depth of the tree.
- Number of nodes in the update queue.
- Total number of updates and values written to disk since startup.
Florian Forster [Thu, 3 Jul 2008 08:08:33 +0000 (10:08 +0200)]
src/rrd_daemon.c: Count some statistics.
Florian Forster [Wed, 2 Jul 2008 21:13:12 +0000 (23:13 +0200)]
src/rrd_xport.c: Allow the short option `-d', too.
Florian Forster [Wed, 2 Jul 2008 21:07:37 +0000 (23:07 +0200)]
rrdcached(1): Removed the note stating that tree nodes are never removed.
Florian Forster [Wed, 2 Jul 2008 21:04:54 +0000 (23:04 +0200)]
src/rrd_daemon.c: Implemented removal of unused tree nodes.
Florian Forster [Wed, 2 Jul 2008 20:20:13 +0000 (22:20 +0200)]
src/rrd_daemon.c: Don't return TRUE in `tree_callback_flush'.
Returning TRUE will stop the traversal, so return FALSE instead.
Florian Forster [Wed, 2 Jul 2008 19:52:52 +0000 (21:52 +0200)]
rrdxport(1): Document the new `--daemon' option.
Florian Forster [Wed, 2 Jul 2008 13:55:25 +0000 (15:55 +0200)]
src/rrd_xport.c: Implement the `--daemon' option for `rrdtool xport'.
Florian Forster [Wed, 2 Jul 2008 13:54:52 +0000 (15:54 +0200)]
src/rrd_fetch.c: Revert `rrd_fetch_r' to the original version again.
Florian Forster [Tue, 1 Jul 2008 14:30:18 +0000 (16:30 +0200)]
Build system: Install `rrd_client.h' during `make install'.
Florian Forster [Tue, 1 Jul 2008 10:01:46 +0000 (12:01 +0200)]
Merge branch 'master' into ff/rrdd
Florian Forster [Tue, 1 Jul 2008 08:02:42 +0000 (10:02 +0200)]
rrdcached(1): Added the `SECURITY CONSIDERATIONS' and `HOW IT WORKS' sections.
oetiker [Tue, 1 Jul 2008 06:35:54 +0000 (06:35 +0000)]
header-fix
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1444
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 1 Jul 2008 06:34:24 +0000 (06:34 +0000)]
improve layout
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1443
a5681a0c-68f1-0310-ab6d-
d61299d08faa
Florian Forster [Tue, 1 Jul 2008 05:52:18 +0000 (07:52 +0200)]
rrdcached(1): Documented the `-p' and `-b' options.
Florian Forster [Sun, 29 Jun 2008 21:38:36 +0000 (23:38 +0200)]
Merge branch 'master' into ff/rrdd
oetiker [Sun, 29 Jun 2008 16:23:50 +0000 (16:23 +0000)]
added rrd filename to illegal update message -- he at uninett.no
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1441
a5681a0c-68f1-0310-ab6d-
d61299d08faa
Florian Forster [Sun, 29 Jun 2008 14:16:50 +0000 (16:16 +0200)]
src/rrd_daemon.c: Use static structs for the signal handler configuration.
Florian Forster [Sun, 29 Jun 2008 14:16:22 +0000 (16:16 +0200)]
src/rrd_daemon.c: Implement PID-file and basedir options.
oetiker [Sun, 29 Jun 2008 14:08:51 +0000 (14:08 +0000)]
rrdtool.spec fix by Anton Blanchard to build without php patch
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1440
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Sun, 29 Jun 2008 13:57:00 +0000 (13:57 +0000)]
make sure image-with and image-height get returned even when rrdtool is called with --lazy as reported in bug #163
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1439
a5681a0c-68f1-0310-ab6d-
d61299d08faa
Florian Forster [Sun, 29 Jun 2008 12:32:22 +0000 (14:32 +0200)]
rrdgraph(1): Document the RRDCACHED_ADDRESS environment variable.
Florian Forster [Sun, 29 Jun 2008 12:32:09 +0000 (14:32 +0200)]
rrdfetch(1): Document the RRDCACHED_ADDRESS environment variable.
Florian Forster [Sun, 29 Jun 2008 12:26:23 +0000 (14:26 +0200)]
src/rrd_client.h: Make it possible to set a custom RRDCACHED_DEFAULT_ADDRESS.
Florian Forster [Sun, 29 Jun 2008 12:25:42 +0000 (14:25 +0200)]
rrdcached(1): Documented default settings.
Florian Forster [Sun, 29 Jun 2008 12:25:21 +0000 (14:25 +0200)]
rrdupdate(1): Document the RRDCACHED_ADDRESS environment variable.
Florian Forster [Wed, 25 Jun 2008 12:00:44 +0000 (14:00 +0200)]
src/rrd_{fetch,graph,update}.c: Use the `RRDCACHED_ADDRESS' environment variable..
..as default daemon address.
Florian Forster [Wed, 25 Jun 2008 11:59:28 +0000 (13:59 +0200)]
src/rrd_client.h: Renamed the defines to be more consistent with other names.
Florian Forster [Wed, 25 Jun 2008 11:58:13 +0000 (13:58 +0200)]
rrdgraph(1): Removed a legacy `=back'.
Florian Forster [Tue, 24 Jun 2008 19:17:49 +0000 (21:17 +0200)]
rrdupdate(1): Updated the manpage to reflect the current option handling.
I. e. the section about `--[no]cache' has been removed and the section
about `--daemon' has been updated.
Florian Forster [Tue, 24 Jun 2008 19:12:27 +0000 (21:12 +0200)]
rrdgraph(1): Corrected the example included with `--daemon'.
Florian Forster [Tue, 24 Jun 2008 19:08:26 +0000 (21:08 +0200)]
src/rrd_update.c: Now remove the short options `-c' and `-n', too.
Am I really that stupid? *argh*
Florian Forster [Tue, 24 Jun 2008 19:07:28 +0000 (21:07 +0200)]
src/rrd_tool.c: Add `--daemon' to `rrdtool update's help.
Florian Forster [Tue, 24 Jun 2008 19:06:55 +0000 (21:06 +0200)]
src/rrd_update.c: Remove the long options `--[no]cache'.
Florian Forster [Tue, 24 Jun 2008 19:04:01 +0000 (21:04 +0200)]
src/rrd_client.c: Remove useless `FILE *sh;'.
Florian Forster [Tue, 24 Jun 2008 19:00:33 +0000 (21:00 +0200)]
src/rrd_daemon.c: Removed semi-automatic usage of the daemon.
With remote servers and relative paths failing silently is just too
dangerous. We shouldn't allow the user to shoot herself in the foot.
Florian Forster [Tue, 24 Jun 2008 18:51:45 +0000 (20:51 +0200)]
src/rrd_update.c: Use `-d' rather than `-s' as short option for `--daemon'.
Florian Forster [Tue, 24 Jun 2008 18:50:51 +0000 (20:50 +0200)]
src/rrd_{fetch,graph}.c: Implement `--daemon'.
Both commands not accept the `--daemon' option. When specified, a `flush'
command is send to the daemon just before reading the RRD file, so that
the output will contain the newest data available - even with (very) long
cache timeouts.
Florian Forster [Tue, 24 Jun 2008 12:48:23 +0000 (14:48 +0200)]
src/rrd_client.[ch]: Impelemt `rrdc_flush'.
Florian Forster [Tue, 24 Jun 2008 12:43:15 +0000 (14:43 +0200)]
src/rrd_daemon.c: Accept \r\n style line endings, too.
Florian Forster [Tue, 24 Jun 2008 12:42:47 +0000 (14:42 +0200)]
src/rrd_daemon.c: Don't report end-of-file as an error.
Florian Forster [Tue, 24 Jun 2008 12:42:14 +0000 (14:42 +0200)]
src/rrd_daemon.c: Implement the `flush' command.
Florian Forster [Tue, 24 Jun 2008 11:54:38 +0000 (13:54 +0200)]
src/rrd_daemon.c: Updated the enqueueing function to provide insertion at the head.
Florian Forster [Mon, 23 Jun 2008 21:22:28 +0000 (23:22 +0200)]
build system: Rename `rrdd' to `rrdcached'.
Florian Forster [Mon, 23 Jun 2008 19:56:03 +0000 (21:56 +0200)]
src/rrd_{client,daemon}.c: Move to a ASCII only protocol.
Previously the fields were separated by Null-bytes. This is basically
not possible to type in using telnet or something similar. Moving to a
protocol that's easy to type in manually is hopefully easier to debug
and use in the long run.
Florian octo Forster [Mon, 23 Jun 2008 13:49:24 +0000 (15:49 +0200)]
rrdupdate(1): Fix a typo.
Florian Forster [Sun, 22 Jun 2008 21:24:53 +0000 (23:24 +0200)]
src/rrd_daemon.c: Set the CI_FLAGS_IN_QUEUE flag when queueing a CI.
Florian Forster [Sun, 22 Jun 2008 20:19:02 +0000 (22:19 +0200)]
src/rrd_daemon.c: Remove the declaration of strdup.
It's no longer needed as we use Single UNIX stuff now, too.
Florian Forster [Sun, 22 Jun 2008 20:09:31 +0000 (22:09 +0200)]
src/rrd_daemon.c: enqueue_cache_item: Don't enqueue cache items without values.
Florian Forster [Sun, 22 Jun 2008 20:08:53 +0000 (22:08 +0200)]
src/rrd_daemon.c: Mark another argument as being unused.
Florian Forster [Sun, 22 Jun 2008 20:08:16 +0000 (22:08 +0200)]
src/rrd_daemon.c: Remove some annoying debug messages.
Florian Forster [Sun, 22 Jun 2008 20:07:47 +0000 (22:07 +0200)]
src/rrd_daemon.c: pthread_cond_timedwait expects an _absolute_ time, d'oh!
Florian Forster [Sun, 22 Jun 2008 17:46:08 +0000 (19:46 +0200)]
src/rrd_daemon.c: Add caching daemon.
Add the daemon from the RRDd project.
Florian Forster [Sun, 22 Jun 2008 17:42:31 +0000 (19:42 +0200)]
configure.ac: Check for glib-2.0.
Florian Forster [Sun, 22 Jun 2008 16:00:52 +0000 (18:00 +0200)]
src/rrd_client.[ch]: Change the `rrdd_' prefix to `rrdc_'.
Florian Forster [Sun, 22 Jun 2008 15:55:07 +0000 (17:55 +0200)]
rrdupdate(1): Move the examples and document `updatev's behavior.
Florian Forster [Sun, 22 Jun 2008 15:38:16 +0000 (17:38 +0200)]
rrdupdate(1): Documented the new options --[no]cache and --daemon.
Florian Forster [Sun, 22 Jun 2008 15:09:04 +0000 (17:09 +0200)]
src/rrd_update.c: Add support for a caching daemon.
The `rrdtool update' command has been enhanced to be aware of a caching
daemon. The options
--cache[=yes|=no]
--nocache
--daemon=<address>
have been added to control usage of the daemon.
See email <
20080622082045.GL2999@verplant.org>, sent to the
rrd-developers mailing list on Sun, 22 Jun 2008 10:20:45 +0200.
Florian Forster [Sun, 22 Jun 2008 15:04:30 +0000 (17:04 +0200)]
src/rrd_client.[ch]: Add files that handle the the network communication.
The files have been developed as `librrdc.so' as part of the `RRDd'
package. They have been renamed and adapted for inclusion into
`RRDTool'.
oetiker [Thu, 19 Jun 2008 13:18:04 +0000 (13:18 +0000)]
rrdtool.fetch is returning an extra, bogus, data point. Attached is a
patch to correct this. - Gilad Raphaelli. Fix for #161
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1436
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Thu, 12 Jun 2008 13:54:23 +0000 (13:54 +0000)]
added note on %S
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1435
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Wed, 11 Jun 2008 15:49:24 +0000 (15:49 +0000)]
made news the same as the announcement
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1434
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 23:12:55 +0000 (23:12 +0000)]
prepare for the release of rrdtool-1.3.0
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1432
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 16:38:10 +0000 (16:38 +0000)]
oops it is 1.3.0 not 1.4.0 yet
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1428
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 16:37:39 +0000 (16:37 +0000)]
preparing for 1.3
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1427
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 16:32:34 +0000 (16:32 +0000)]
document the 'internal' functions in rrd.h but mark them as deprecated, so
that anyone using them will see that they should not be doing it.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1426
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 11:16:40 +0000 (11:16 +0000)]
flip check for row_count with setting for better code logic
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1425
a5681a0c-68f1-0310-ab6d-
d61299d08faa
oetiker [Tue, 10 Jun 2008 09:35:03 +0000 (09:35 +0000)]
check row count in RRAs to be > 0 ... by Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1424
a5681a0c-68f1-0310-ab6d-
d61299d08faa