]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
11 years agobugfix: add a lock in handle_request_create, fix the rrdcached crash 456/head
laiwei [Mon, 24 Mar 2014 03:47:17 +0000 (11:47 +0800)] 
bugfix: add a lock in handle_request_create, fix the rrdcached crash

11 years agofix missing realpath 453/head
laiwei [Tue, 11 Mar 2014 07:49:21 +0000 (15:49 +0800)] 
fix missing realpath

11 years agobugfix: free filecopy when create when recursive creating dir; bugfix: dir-creating...
laiwei [Tue, 11 Mar 2014 03:24:44 +0000 (11:24 +0800)] 
bugfix: free filecopy when create when recursive creating dir; bugfix: dir-creating not working

11 years agoMerge pull request #452 from stamfest/rrdmodify-master
Tobias Oetiker [Sun, 9 Mar 2014 17:30:39 +0000 (18:30 +0100)] 
Merge pull request #452 from stamfest/rrdmodify-master

Rrdmodify master

11 years agoRevert "Make modify command available using RRDs" 452/head
Peter Stamfest [Sat, 8 Mar 2014 12:32:49 +0000 (13:32 +0100)] 
Revert "Make modify command available using RRDs"

This reverts commit c77b6b7a567bd787baa98a9e459bd64e9ef39154.
This cs should not have been on this branch, but because the branch was
pushed before, it can only be reverted...

11 years agoimproved rrdmodify documentation
Peter Stamfest [Sat, 8 Mar 2014 10:20:54 +0000 (11:20 +0100)] 
improved rrdmodify documentation

11 years agoMake modify command available using RRDs
Peter Stamfest [Sat, 8 Mar 2014 08:22:37 +0000 (09:22 +0100)] 
Make modify command available using RRDs

11 years agoTake care to change CDPs when changing step size and change resize semantics
Peter Stamfest [Sat, 8 Mar 2014 08:21:04 +0000 (09:21 +0100)] 
Take care to change CDPs when changing step size and change resize semantics
- all RRA modifications are now done AFTER resizing

11 years agofix timezone in tests
Tobias Oetiker [Fri, 7 Mar 2014 08:12:04 +0000 (09:12 +0100)] 
fix timezone in tests

11 years agomore test invocation fixing
Tobias Oetiker [Fri, 7 Mar 2014 07:59:23 +0000 (08:59 +0100)] 
more test invocation fixing

11 years agoimprove step resizing, this still is experimental
Peter Stamfest [Fri, 7 Mar 2014 06:38:35 +0000 (07:38 +0100)] 
improve step resizing, this still is experimental

11 years agofixed stray mentions of rrdtool (not $RRDTOOL) in test scripts, causing them to fail...
Tobias Oetiker [Fri, 7 Mar 2014 05:09:47 +0000 (06:09 +0100)] 
fixed stray mentions of rrdtool (not $RRDTOOL) in test scripts, causing them to fail on travis

11 years agoanother try at fixing travis setup
Tobias Oetiker [Thu, 6 Mar 2014 22:39:07 +0000 (23:39 +0100)] 
another try at fixing travis setup

11 years agoFurther chop up rrd_modify_r in order to integrate step changes into DS/RRA
Peter Stamfest [Thu, 6 Mar 2014 21:54:13 +0000 (22:54 +0100)] 
Further chop up rrd_modify_r in order to integrate step changes into DS/RRA
modifications.

11 years agoextremely experimental RRD step stretching
Peter Stamfest [Thu, 6 Mar 2014 18:06:48 +0000 (19:06 +0100)] 
extremely experimental RRD step stretching

11 years agoanother try for integrating tests
Tobias Oetiker [Thu, 6 Mar 2014 16:09:25 +0000 (17:09 +0100)] 
another try for integrating tests

11 years agoit is tests not test
Tobias Oetiker [Thu, 6 Mar 2014 13:09:51 +0000 (14:09 +0100)] 
it is tests not test

11 years agoanother try with travis
Tobias Oetiker [Thu, 6 Mar 2014 09:54:03 +0000 (10:54 +0100)] 
another try with travis

11 years agoadded new tests to travis build
Tobias Oetiker [Thu, 6 Mar 2014 09:47:30 +0000 (10:47 +0100)] 
added new tests to travis build

11 years agoMerge pull request #450 from stamfest/rrdmodify-master
Tobias Oetiker [Thu, 6 Mar 2014 09:40:52 +0000 (10:40 +0100)] 
Merge pull request #450 from stamfest/rrdmodify-master

Rrdmodify master

11 years agoMerge pull request #451 from stamfest/small-fixes
Tobias Oetiker [Thu, 6 Mar 2014 09:39:28 +0000 (10:39 +0100)] 
Merge pull request #451 from stamfest/small-fixes

small fixes

11 years agobetter test flexibility - use a specific rrdtool to do the tests 450/head
Peter Stamfest [Thu, 6 Mar 2014 07:49:41 +0000 (08:49 +0100)] 
better test flexibility - use a specific rrdtool to do the tests

11 years agoFix nasty off-by-one error, causing incorrect CDP calculations when adding
Peter Stamfest [Thu, 6 Mar 2014 07:26:06 +0000 (08:26 +0100)] 
Fix nasty off-by-one error, causing incorrect CDP calculations when adding
new RRAs

11 years agoAdd alltests script to run all tests at once
Peter Stamfest [Wed, 5 Mar 2014 20:30:28 +0000 (21:30 +0100)] 
Add alltests script to run all tests at once

11 years agoAvoid some "unused" warnings during compilation 451/head
Peter Stamfest [Wed, 5 Mar 2014 19:51:52 +0000 (20:51 +0100)] 
Avoid some "unused" warnings during compilation

11 years agoAllow to ask for continuing tests for intergration testing
Peter Stamfest [Wed, 5 Mar 2014 19:48:38 +0000 (20:48 +0100)] 
Allow to ask for continuing tests for intergration testing

11 years agoSecond round of refactoring: Ripping apart rrd_modify_r into more digestable
Peter Stamfest [Wed, 5 Mar 2014 18:58:17 +0000 (19:58 +0100)] 
Second round of refactoring: Ripping apart rrd_modify_r into more digestable
pieces.

11 years agoRefactoring
Peter Stamfest [Wed, 5 Mar 2014 17:01:51 +0000 (18:01 +0100)] 
Refactoring
 - rename variables
 - modularize rrd_modify_r function (it really is a mess, right now...)

11 years agoMention modify operation in main man page
Peter Stamfest [Wed, 5 Mar 2014 17:00:57 +0000 (18:00 +0100)] 
Mention modify operation in main man page

11 years agoMerge branch 'master' into rrdmodify-master
Peter Stamfest [Wed, 5 Mar 2014 07:45:09 +0000 (08:45 +0100)] 
Merge branch 'master' into rrdmodify-master

11 years agothere is no total CF
Tobias Oetiker [Sun, 2 Mar 2014 10:27:45 +0000 (11:27 +0100)] 
there is no total CF

11 years agosuppress error message from libxml when reading XML from stdin.
Peter Stamfest [Wed, 19 Feb 2014 21:34:20 +0000 (22:34 +0100)] 
suppress error message from libxml when reading XML from stdin.
This avoids breakage of the pipe protocol in case of errors.

11 years agoAvoid endless looping in case of XML errors.
Peter Stamfest [Wed, 19 Feb 2014 21:25:48 +0000 (22:25 +0100)] 
Avoid endless looping in case of XML errors.

11 years agoFix double-free bug
Peter Stamfest [Wed, 19 Feb 2014 20:54:27 +0000 (21:54 +0100)] 
Fix double-free bug

11 years agoAdd support for rrd restore to explicitly end xml files when using
Peter Stamfest [Wed, 19 Feb 2014 08:56:16 +0000 (09:56 +0100)] 
Add support for rrd restore to explicitly end xml files when using
the pipe interface by using the "-" special filename and using
ctrl-Z/newline as an end-of-file indicator.

11 years agoMerge pull request #449 from stamfest/rrdmodify-master
Tobias Oetiker [Tue, 4 Mar 2014 23:25:59 +0000 (00:25 +0100)] 
Merge pull request #449 from stamfest/rrdmodify-master

Rrdmodify master

11 years agoMerge branch 'master' of https://github.com/oetiker/rrdtool-1.x into rrdmodify-master 449/head
Peter Stamfest [Tue, 4 Mar 2014 21:52:27 +0000 (22:52 +0100)] 
Merge branch 'master' of https://github.com/oetiker/rrdtool-1.x into rrdmodify-master

11 years agoadd/update tests
Peter Stamfest [Tue, 4 Mar 2014 21:39:44 +0000 (22:39 +0100)] 
add/update tests

11 years agoFurther improve rrd modify.
Peter Stamfest [Tue, 4 Mar 2014 21:36:11 +0000 (22:36 +0100)] 
Further improve rrd modify.
I am quite sure, that this code contains a lot of hidden assumptions.

11 years agomake update_cdp usable from other modules
Peter Stamfest [Tue, 4 Mar 2014 20:46:49 +0000 (21:46 +0100)] 
make update_cdp usable from other modules

11 years agowe can also use a single RRA as a candidate
Peter Stamfest [Mon, 3 Mar 2014 08:38:13 +0000 (09:38 +0100)] 
we can also use a single RRA as a candidate

11 years agofactor out candidate finding from populate_row
Peter Stamfest [Mon, 3 Mar 2014 08:35:54 +0000 (09:35 +0100)] 
factor out candidate finding from populate_row

11 years agoAdd RRDs in tests directory to the ignore list
Peter Stamfest [Mon, 3 Mar 2014 07:28:32 +0000 (08:28 +0100)] 
Add RRDs in tests directory to the ignore list

11 years agoadd more test code and data required for testing
Peter Stamfest [Mon, 3 Mar 2014 00:04:17 +0000 (01:04 +0100)] 
add more test code and data required for testing

11 years agoskip populating values for just added DS
Peter Stamfest [Mon, 3 Mar 2014 00:01:46 +0000 (01:01 +0100)] 
skip populating values for just added DS

11 years agoFix off-by-one error when adding a new RRA
Peter Stamfest [Sun, 2 Mar 2014 23:59:23 +0000 (00:59 +0100)] 
Fix off-by-one error when adding a new RRA

11 years agoSkip RRA values already defined when populating rows.
Peter Stamfest [Sun, 2 Mar 2014 23:58:16 +0000 (00:58 +0100)] 
Skip RRA values already defined when populating rows.

11 years agoSupport version 4 RRD files
Peter Stamfest [Sun, 2 Mar 2014 23:05:06 +0000 (00:05 +0100)] 
Support version 4 RRD files

11 years agoAdd some test scripts in new tests directory
Peter Stamfest [Mon, 3 Mar 2014 07:25:54 +0000 (08:25 +0100)] 
Add some test scripts in new tests directory

11 years agoMake RRA modifications work in presence of simultanous DS modifications
Peter Stamfest [Mon, 3 Mar 2014 07:25:12 +0000 (08:25 +0100)] 
Make RRA modifications work in presence of simultanous DS modifications

11 years agoGet rid of hard-coded hash value
Peter Stamfest [Sun, 2 Mar 2014 20:51:57 +0000 (21:51 +0100)] 
Get rid of hard-coded hash value

11 years agoFix some commented out code to change RRD version when certain RRA
Peter Stamfest [Sun, 2 Mar 2014 20:47:39 +0000 (21:47 +0100)] 
Fix some commented out code to change RRD version when certain RRA
definitions require this.

11 years agoUse code to populate new RRAs from existing data
Peter Stamfest [Sun, 2 Mar 2014 10:29:19 +0000 (11:29 +0100)] 
Use code to populate new RRAs from existing data

11 years agoMerge branch 'master' of github.com:oetiker/rrdtool-1.x
Tobias Oetiker [Sun, 2 Mar 2014 10:28:55 +0000 (11:28 +0100)] 
Merge branch 'master' of github.com:oetiker/rrdtool-1.x

11 years agoAdd code to populate newly added RRA rows, but do not use it yet
Peter Stamfest [Sun, 2 Mar 2014 10:28:46 +0000 (11:28 +0100)] 
Add code to populate newly added RRA rows, but do not use it yet

11 years agothere is no total CF
Tobias Oetiker [Sun, 2 Mar 2014 10:27:45 +0000 (11:27 +0100)] 
there is no total CF

11 years agoRead all input data at once - this is in preparation of upcoming code
Peter Stamfest [Sun, 2 Mar 2014 10:27:04 +0000 (11:27 +0100)] 
Read all input data at once - this is in preparation of upcoming code
for populating newly added rows

11 years agoRip out a lot of too complicated code doing reordering of
Peter Stamfest [Fri, 28 Feb 2014 20:48:47 +0000 (21:48 +0100)] 
Rip out a lot of too complicated code doing reordering of
RRA rows. This is now done during the copying of the data to the
out RRA. This should also assist with the upcoming planned
population of newly added RRAs or RRA rows.

11 years agoPull out add_rrds in an attempt to shorten functions to a manageable size
Peter Stamfest [Thu, 27 Feb 2014 22:31:06 +0000 (23:31 +0100)] 
Pull out add_rrds in an attempt to shorten functions to a manageable size

11 years agoFix DEL command
Peter Stamfest [Thu, 27 Feb 2014 22:03:43 +0000 (23:03 +0100)] 
Fix DEL command

11 years agoupdate documentation
Peter Stamfest [Thu, 27 Feb 2014 22:01:09 +0000 (23:01 +0100)] 
update documentation

11 years agoadd support for explicit DELRRA
Peter Stamfest [Thu, 27 Feb 2014 21:41:47 +0000 (22:41 +0100)] 
add support for explicit DELRRA

11 years agoAllow to add new RRAs
Peter Stamfest [Thu, 27 Feb 2014 21:19:40 +0000 (22:19 +0100)] 
Allow to add new RRAs

11 years agoFix CDP init problems introduced with original add DS code
Peter Stamfest [Thu, 27 Feb 2014 21:14:03 +0000 (22:14 +0100)] 
Fix CDP init problems introduced with original add DS code

11 years agofactor out init_cdp and make it globally available
Peter Stamfest [Thu, 27 Feb 2014 20:53:45 +0000 (21:53 +0100)] 
factor out init_cdp and make it globally available

11 years agomake parseRRA and handle_dependent_rras globally available
Peter Stamfest [Thu, 27 Feb 2014 20:50:50 +0000 (21:50 +0100)] 
make parseRRA and handle_dependent_rras globally available

11 years agoFactor out RRA definition parsing so it may be reused for rrdtool modify.
Peter Stamfest [Thu, 27 Feb 2014 13:33:33 +0000 (14:33 +0100)] 
Factor out RRA definition parsing so it may be reused for rrdtool modify.

11 years agoAllow RRA resize to absolutely specified row_count
Peter Stamfest [Thu, 27 Feb 2014 10:01:33 +0000 (11:01 +0100)] 
Allow RRA resize to absolutely specified row_count

11 years agoMake it possible to add / remove a given number of rows for existing RRAs
Peter Stamfest [Thu, 27 Feb 2014 09:26:58 +0000 (10:26 +0100)] 
Make it possible to add / remove a given number of rows for existing RRAs

11 years agofactor out rrd file writing in rrd_modify_r
Peter Stamfest [Thu, 27 Feb 2014 07:41:12 +0000 (08:41 +0100)] 
factor out rrd file writing in rrd_modify_r

11 years agoallow to remove RRAs entirely
Peter Stamfest [Thu, 27 Feb 2014 03:25:24 +0000 (04:25 +0100)] 
allow to remove RRAs entirely

11 years agoSupport for RRA modification command line syntax
Peter Stamfest [Thu, 27 Feb 2014 02:38:24 +0000 (03:38 +0100)] 
Support for RRA modification command line syntax

11 years agoMerge pull request #448 from stamfest/pipe-restore-master
Tobias Oetiker [Thu, 27 Feb 2014 07:16:33 +0000 (08:16 +0100)] 
Merge pull request #448 from stamfest/pipe-restore-master

Pipe restore master

11 years agosuppress error message from libxml when reading XML from stdin. 448/head
Peter Stamfest [Wed, 19 Feb 2014 21:34:20 +0000 (22:34 +0100)] 
suppress error message from libxml when reading XML from stdin.
This avoids breakage of the pipe protocol in case of errors.

11 years agoAvoid endless looping in case of XML errors.
Peter Stamfest [Wed, 19 Feb 2014 21:25:48 +0000 (22:25 +0100)] 
Avoid endless looping in case of XML errors.

11 years agoFix double-free bug
Peter Stamfest [Wed, 19 Feb 2014 20:54:27 +0000 (21:54 +0100)] 
Fix double-free bug

11 years agoAdd support for rrd restore to explicitly end xml files when using
Peter Stamfest [Wed, 19 Feb 2014 08:56:16 +0000 (09:56 +0100)] 
Add support for rrd restore to explicitly end xml files when using
the pipe interface by using the "-" special filename and using
ctrl-Z/newline as an end-of-file indicator.

11 years agoMerge pull request #447 from stamfest/rrdmodify-master
Tobias Oetiker [Wed, 26 Feb 2014 14:22:11 +0000 (15:22 +0100)] 
Merge pull request #447 from stamfest/rrdmodify-master

Rrdmodify master

11 years agoAdd documentation for modify command 447/head
Peter Stamfest [Mon, 24 Feb 2014 20:10:01 +0000 (21:10 +0100)] 
Add documentation for modify command

11 years agorrdcached handling
Peter Stamfest [Mon, 24 Feb 2014 19:51:01 +0000 (20:51 +0100)] 
rrdcached handling

11 years agoAdd some documentation
Peter Stamfest [Mon, 24 Feb 2014 19:42:10 +0000 (20:42 +0100)] 
Add some documentation

11 years agostreamline and clean up
Peter Stamfest [Mon, 24 Feb 2014 19:50:18 +0000 (20:50 +0100)] 
streamline and clean up

11 years agoprovide new write_fh function
Peter Stamfest [Mon, 24 Feb 2014 19:08:40 +0000 (20:08 +0100)] 
provide new write_fh function

11 years agoExtend rrdcached client API to be able to also send FORGET and other
Peter Stamfest [Mon, 24 Feb 2014 19:06:32 +0000 (20:06 +0100)] 
Extend rrdcached client API to be able to also send FORGET and other
filename based commands easily

11 years agoAllow to add data sources to an RRD
Peter Stamfest [Mon, 24 Feb 2014 07:21:25 +0000 (08:21 +0100)] 
Allow to add data sources to an RRD

11 years agoRefactor all DS definition parsing code. It was not reusable and tied
Peter Stamfest [Mon, 24 Feb 2014 07:19:44 +0000 (08:19 +0100)] 
Refactor all DS definition parsing code. It was not reusable and tied
too much to the rrd_t data structure.

11 years agomake modify command available
Peter Stamfest [Sun, 23 Feb 2014 22:17:12 +0000 (23:17 +0100)] 
make modify command available
- so far it is only really possible to remove data sources

11 years agoadd rrd_modify (but do not yet use it)
Peter Stamfest [Sun, 23 Feb 2014 22:15:39 +0000 (23:15 +0100)] 
add rrd_modify (but do not yet use it)

11 years agomake write_file public
Peter Stamfest [Sun, 23 Feb 2014 22:08:33 +0000 (23:08 +0100)] 
make write_file public

11 years agoautogen.sh: use POSIX comparison for test
Peter A. Bigot [Wed, 19 Feb 2014 00:31:01 +0000 (18:31 -0600)] 
autogen.sh: use POSIX comparison for test

Although bash recognizes ==, and the shell has a shebang to use it, some
of us still automatically type "sh autogen.sh" instead of
"./autogen.sh", and this breaks on debian/jessie where /bin/sh is not
bash.  The fix is trivial and should be safe for bash too (which
recommends using = instead of == with the test command for POSIX
conformance.

11 years agorrd_graph: initialize new data member (fix #441)
Peter A. Bigot [Mon, 17 Feb 2014 23:24:25 +0000 (17:24 -0600)] 
rrd_graph: initialize new data member (fix #441)

primary_axis_format was added to image_desc_t but rrd_graph_init was not
updated to initialize it, resulting in this error when the garbage
values were used as axis labels:

(process:24893): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

11 years agoMerge pull request #445 from jktjkt/fix-rrdc-fetch
Tobias Oetiker [Wed, 26 Feb 2014 05:14:31 +0000 (06:14 +0100)] 
Merge pull request #445 from jktjkt/fix-rrdc-fetch

Fix rrdc_fetch behavior on RRDs with multiple DSes

11 years agoFix rrdc_fetch behavior on RRDs with multiple DSes 445/head
Jan Kundrát [Wed, 26 Feb 2014 01:57:19 +0000 (02:57 +0100)] 
Fix rrdc_fetch behavior on RRDs with multiple DSes

When reading values from RRD files with multiple data sets, the auxiliary
parsing function would only copy the first item from the returned list; the
others were left uninitialized. On my x64_64 Linux machine, this actually reused
values form previous call to parse_char_array_header which happens to be a DS
definition. Given a RRD file with DS "a", "b" and "c", the first value on each
line would be correctly parsed, but the second value is "b", the actual DS name,
and the third one "c". These "values" cannot be parsed as numbers, and the whole
function therefore returns with an error. Making sure that all pointers within
the array are copied therefore fixes this problem.

11 years agomerged changes
Julien Thomas [Fri, 7 Feb 2014 13:21:53 +0000 (14:21 +0100)] 
merged changes

11 years agoAdd --left-axis-format option to control labels on y-axis of graph.
AutoAquaria [Mon, 10 Feb 2014 17:18:56 +0000 (11:18 -0600)] 
Add --left-axis-format option to control labels on y-axis of graph.

Conflicts:

src/rrd_graph.c

11 years agoMerge pull request #435 from elfring/reserved_identifier_violation_clean-up
Tobias Oetiker [Tue, 26 Nov 2013 05:23:23 +0000 (21:23 -0800)] 
Merge pull request #435 from elfring/reserved_identifier_violation_clean-up

Bug #429: Clean-up of reserved identifier violations

11 years agoBug #429: Clean-up of reserved identifier violations 435/head
Markus Elfring [Mon, 25 Nov 2013 16:16:25 +0000 (17:16 +0100)] 
Bug #429: Clean-up of reserved identifier violations

A few identifiers did not fit to the expected naming convention of the
C++ language standard. This detail was fixed by the deletion of an underscore.
The probability for name clashes was reduced for the affected include guards
by the addition of a kind of universally unique identifier as a suffix.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
11 years agoBug #429: Clean-up of reserved identifier violations
Markus Elfring [Mon, 25 Nov 2013 16:10:51 +0000 (17:10 +0100)] 
Bug #429: Clean-up of reserved identifier violations

Some identifiers did not fit to the expected naming convention of the
C language standard. This detail was fixed by the deletion of leading underscores.
The probability for name clashes was reduced for the affected include guards
by the addition of a kind of universally unique identifier as a suffix.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
11 years agoMerge pull request #434 from elfring/signal_handler_correction
Tobias Oetiker [Mon, 25 Nov 2013 13:53:27 +0000 (05:53 -0800)] 
Merge pull request #434 from elfring/signal_handler_correction

Bug #431: Fix signal handler

11 years agoBug #431: Fix signal handler 434/head
Markus Elfring [Mon, 25 Nov 2013 13:11:34 +0000 (14:11 +0100)] 
Bug #431: Fix signal handler

The signal handler implementation called async-signal-unsafe functions.
Corresponding notifications are handled by the interface "sigwaitinfo"
in a separate thread now.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>