]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
10 years agofactor out core bin-prefilling to shorten functions
Peter Stamfest [Wed, 27 Aug 2014 08:55:23 +0000 (10:55 +0200)] 
factor out core bin-prefilling to shorten functions

10 years agotake XFF into account when prefilling
Peter Stamfest [Wed, 27 Aug 2014 08:31:29 +0000 (10:31 +0200)] 
take XFF into account when prefilling

10 years agoAllow to use different selection strategies when selecting candidate RRAs
Peter Stamfest [Wed, 27 Aug 2014 08:23:32 +0000 (10:23 +0200)] 
Allow to use different selection strategies when selecting candidate RRAs
for modify or prefilling

10 years agoadd "const" keyword to cf_conv to avoid some warnings
Peter Stamfest [Wed, 27 Aug 2014 07:24:10 +0000 (09:24 +0200)] 
add "const" keyword to cf_conv to avoid some warnings

10 years agoadd custom quicksort, where the comparison function takes an extra argument for param...
Peter Stamfest [Wed, 27 Aug 2014 06:28:01 +0000 (08:28 +0200)] 
add custom quicksort, where the comparison function takes an extra argument for parameters
Using quicksort might in practice actually be overkill, because most of the time we will
sort rather short arrays anyway.

10 years agoAdd new test for checking handling of CFs during prefilling
Peter Stamfest [Tue, 26 Aug 2014 09:51:43 +0000 (11:51 +0200)] 
Add new test for checking handling of CFs during prefilling

10 years agoadd test playing with different bin sizes
Peter Stamfest [Sun, 24 Aug 2014 21:48:32 +0000 (23:48 +0200)] 
add test playing with different bin sizes

10 years agotake start time from sources if unspecified
Peter Stamfest [Sun, 24 Aug 2014 21:19:32 +0000 (23:19 +0200)] 
take start time from sources if unspecified

10 years agoimprove tests
Peter Stamfest [Sun, 24 Aug 2014 20:59:32 +0000 (22:59 +0200)] 
improve tests

10 years agoactivate create-with-source tests in standard test suite
Peter Stamfest [Sun, 24 Aug 2014 20:52:50 +0000 (22:52 +0200)] 
activate create-with-source tests in standard test suite

10 years agoFix comment
Peter Stamfest [Sun, 24 Aug 2014 19:27:38 +0000 (21:27 +0200)] 
Fix comment

10 years agoAdd interval handling functions. These will be needed in the future to
Peter Stamfest [Sun, 24 Aug 2014 13:46:48 +0000 (15:46 +0200)] 
Add interval handling functions. These will be needed in the future to
handle pre filling of RRAs.

10 years agoproperly handle DS names - this allows to reorder data sources
Peter Stamfest [Thu, 21 Aug 2014 19:37:55 +0000 (21:37 +0200)] 
properly handle DS names - this allows to reorder data sources

10 years agoreduce number of warnings - even if most are triggered by debug code
Peter Stamfest [Thu, 21 Aug 2014 19:36:45 +0000 (21:36 +0200)] 
reduce number of warnings - even if most are triggered by debug code

10 years agoFirst test for create with old data
Peter Stamfest [Thu, 21 Aug 2014 10:13:23 +0000 (12:13 +0200)] 
First test for create with old data

10 years agofirst real prefill implementation
Peter Stamfest [Thu, 21 Aug 2014 10:12:05 +0000 (12:12 +0200)] 
first real prefill implementation
- this still contains loads of debug output and some real problems and
  assumptions, so it won't work correctly for most cases

10 years agosome minor fixes for correctness
Peter Stamfest [Thu, 21 Aug 2014 10:11:16 +0000 (12:11 +0200)] 
some minor fixes for correctness

10 years agoMove some functions from rrd_modify to rrd_create
Peter Stamfest [Thu, 21 Aug 2014 10:09:06 +0000 (12:09 +0200)] 
Move some functions from rrd_modify to rrd_create

10 years agoallow to print the actual rrdtool calls run by a test by setting the VERBOSE
Peter Stamfest [Wed, 20 Aug 2014 22:52:01 +0000 (00:52 +0200)] 
allow to print the actual rrdtool calls run by a test by setting the VERBOSE
env. variable to a non-empty string before calling the test

10 years agoMove custom logic row-rotation logic from write_fh, originally there to
Peter Stamfest [Wed, 20 Aug 2014 22:43:18 +0000 (00:43 +0200)] 
Move custom logic row-rotation logic from write_fh, originally there to
support rrd_restore with its random cur_row placement to
rrd_restore itself.  This makes write_fh a truly reuseable function.

10 years agoAdd a dump-restore test
Peter Stamfest [Wed, 20 Aug 2014 22:36:39 +0000 (00:36 +0200)] 
Add a dump-restore test

10 years agoKeep a pointer to the internal rrd data structure with rrd_file_t objects
Peter Stamfest [Thu, 14 Aug 2014 07:05:04 +0000 (09:05 +0200)] 
Keep a pointer to the internal rrd data structure with rrd_file_t objects
to simplify management of opened RRD files - now it is only required
to keep the rrd_file_t object around to be able to manage the underlying
rrd structure and not both objects in some additional data structure.

10 years agoGet rid of rrd_create_fn and use new creation infrastructure instead.
Peter Stamfest [Wed, 13 Aug 2014 18:30:13 +0000 (20:30 +0200)] 
Get rid of rrd_create_fn and use new creation infrastructure instead.

10 years agoadd tests for no-overwrite functionality
Peter Stamfest [Mon, 25 Aug 2014 20:33:25 +0000 (22:33 +0200)] 
add tests for no-overwrite functionality

10 years agoadd new rrdc_create_r2 function to support new sources syntax
Peter Stamfest [Wed, 13 Aug 2014 18:26:55 +0000 (20:26 +0200)] 
add new rrdc_create_r2 function to support new sources syntax

10 years agoturn GList based sources list into C array
Peter Stamfest [Wed, 13 Aug 2014 18:25:27 +0000 (20:25 +0200)] 
turn GList based sources list into C array

10 years ago- add support for --source options(s)
Peter Stamfest [Sat, 9 Aug 2014 11:22:03 +0000 (13:22 +0200)] 
- add support for --source options(s)
- add "destruction" path in rrd_create command line parser

10 years agoExtend rrd_create_r2 with a new (as of now unused) sources argument
Peter Stamfest [Wed, 13 Aug 2014 18:23:04 +0000 (20:23 +0200)] 
Extend rrd_create_r2 with a new (as of now unused) sources argument

10 years agoadd rrd_init_data function
Peter Stamfest [Wed, 13 Aug 2014 18:17:58 +0000 (20:17 +0200)] 
add rrd_init_data function

10 years agofix init_cdp. The original code implicitly always used the first pdp_prep
Peter Stamfest [Wed, 13 Aug 2014 18:14:31 +0000 (20:14 +0200)] 
fix init_cdp. The original code implicitly always used the first pdp_prep
structure of the underlying rrd, which lead to wrong cdp initialization in
experimental code. This change will be needed for future work.

10 years agomove write_rrd and write_fh into rrd_create.c.
Peter Stamfest [Wed, 13 Aug 2014 18:10:43 +0000 (20:10 +0200)] 
move write_rrd and write_fh into rrd_create.c.
While this is purely cosmetic, writing an RRD file is actually creating one, so
it makes sense to concentrate the various writing functions into one place.

10 years agoMerge pull request #529 from petgit/VS2013
Tobias Oetiker [Wed, 27 Aug 2014 20:19:03 +0000 (22:19 +0200)] 
Merge pull request #529 from petgit/VS2013

Visual Studio 2013 Support

10 years agouse of g_free() cause heap damage on windows if memory is allocated by malloc().... 529/head
petgit [Wed, 27 Aug 2014 19:52:53 +0000 (21:52 +0200)] 
use of g_free() cause heap damage on windows if memory is allocated by malloc(). Key is allocated by malloc() in sprintf_alloc(), so free() should use.

10 years agoException calling: g_hash_table_destroy(im->rrd_map)
petgit [Wed, 27 Aug 2014 06:05:22 +0000 (08:05 +0200)] 
Exception calling: g_hash_table_destroy(im->rrd_map)
temporary commented out
vcxproj: adjusted for debug

10 years agoremove duplicate code
Tobias Oetiker [Wed, 20 Aug 2014 15:40:44 +0000 (17:40 +0200)] 
remove duplicate code

10 years agobetter error messages
Tobias Oetiker [Wed, 20 Aug 2014 15:40:29 +0000 (17:40 +0200)] 
better error messages

10 years agothis is an oportunistic parser, so dont complain
Tobias Oetiker [Wed, 20 Aug 2014 15:40:00 +0000 (17:40 +0200)] 
this is an oportunistic parser, so dont complain

10 years agocleanup rrd_strtodbl calls
Tobias Oetiker [Wed, 20 Aug 2014 14:00:17 +0000 (16:00 +0200)] 
cleanup rrd_strtodbl calls

10 years agorrd_strtoding should be called rrd_strtodbl
Tobias Oetiker [Wed, 20 Aug 2014 12:17:34 +0000 (14:17 +0200)] 
rrd_strtoding should be called rrd_strtodbl

10 years agomake sure non of the standard *printf functions get replaced. we only need this in...
Tobias Oetiker [Wed, 20 Aug 2014 12:16:52 +0000 (14:16 +0200)] 
make sure non of the standard *printf functions get replaced. we only need this in specific places.

10 years agowrong argument count
Tobias Oetiker [Wed, 20 Aug 2014 11:53:07 +0000 (13:53 +0200)] 
wrong argument count

11 years agoupdate before install
Tobias Oetiker [Thu, 7 Aug 2014 09:07:01 +0000 (11:07 +0200)] 
update before install

11 years agoMerge pull request #524 from pabigot/support-cross-compile
Tobias Oetiker [Thu, 7 Aug 2014 09:00:19 +0000 (11:00 +0200)] 
Merge pull request #524 from pabigot/support-cross-compile

configure.ac: remove explicit default path for libxml2

11 years agoconfigure.ac: remove explicit default path for libxml2 524/head
Peter A. Bigot [Tue, 5 Aug 2014 21:39:58 +0000 (16:39 -0500)] 
configure.ac: remove explicit default path for libxml2

OpenEmbedded needs to cross-compile rrdtool, and historically has
applied this patch locally because the implementation of EX_CHECK_ALL
unconditionally added -I/usr/include.  Since the correct include path is
automatically provided by a successful pkg-config invocation there is no
need to set it explicitly.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
11 years agoMerge pull request #523 from sshipway/master
Tobias Oetiker [Tue, 5 Aug 2014 04:29:08 +0000 (06:29 +0200)] 
Merge pull request #523 from sshipway/master

Adding new RPN stack operations: DEPTH, INDEX, COPY, ROLL

11 years agoAdded new stack operations 523/head
Steve Shipway [Mon, 4 Aug 2014 23:01:11 +0000 (11:01 +1200)] 
Added new stack operations

11 years agoAdded new stack operations
Steve Shipway [Mon, 4 Aug 2014 22:52:00 +0000 (10:52 +1200)] 
Added new stack operations

11 years agoMerge pull request #518 from pabigot/fix-rrd_info-param
Tobias Oetiker [Mon, 4 Aug 2014 13:33:59 +0000 (15:33 +0200)] 
Merge pull request #518 from pabigot/fix-rrd_info-param

rrd_info: make filename argument const

11 years agoMerge pull request #519 from aelse/python-fix-build-path
Tobias Oetiker [Mon, 4 Aug 2014 13:33:27 +0000 (15:33 +0200)] 
Merge pull request #519 from aelse/python-fix-build-path

Fix src/build paths

11 years agoexclude xport bits if compiled without graph support
Tobias Oetiker [Thu, 31 Jul 2014 13:58:11 +0000 (15:58 +0200)] 
exclude xport bits if compiled without graph support

11 years agoworking on a fix for issue #521
Tobias Oetiker [Thu, 31 Jul 2014 13:40:26 +0000 (15:40 +0200)] 
working on a fix for issue #521

11 years agoonly have graph options when there is graph support
Tobias Oetiker [Wed, 30 Jul 2014 06:53:21 +0000 (08:53 +0200)] 
only have graph options when there is graph support

Conflicts:

bindings/python/rrdtoolmodule.c

11 years agoVS2013, modifications to compile as C++ and on Windows .
petgit [Thu, 24 Jul 2014 06:27:56 +0000 (08:27 +0200)] 
VS2013, modifications to compile as  C++ and on Windows .

11 years agoFix src/build paths 519/head
Alexander Else [Mon, 21 Jul 2014 04:18:36 +0000 (14:18 +1000)] 
Fix src/build paths

11 years agorrd_info: make filename argument const 518/head
Peter A. Bigot [Sun, 20 Jul 2014 09:19:22 +0000 (04:19 -0500)] 
rrd_info: make filename argument const

Avoids following error:

rrdinfo.cc:10:42: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   rp = rrd_info_r("/home/pab/ted5000.rrd");

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
11 years agoMerge pull request #517 from petgit/master
Tobias Oetiker [Sun, 13 Jul 2014 15:07:35 +0000 (17:07 +0200)] 
Merge pull request #517 from petgit/master

Create rrd file: Allow only short integer numbers in rpn formula

11 years agoCreate rrd file: Allow only short integer numbers in rpn formula 517/head
petgit [Sun, 13 Jul 2014 14:24:13 +0000 (16:24 +0200)] 
Create rrd file: Allow only short integer numbers in rpn formula

11 years agoMerge pull request #514 from Sweet-kid/strtod_api
Tobias Oetiker [Fri, 11 Jul 2014 21:54:46 +0000 (23:54 +0200)] 
Merge pull request #514 from Sweet-kid/strtod_api

Wrote api for rrd_strtod

11 years agoRemoved printfs left while debugging 514/head
Upasana [Fri, 11 Jul 2014 18:11:37 +0000 (23:41 +0530)] 
Removed printfs left while debugging

11 years ago*endptr should be set in rrd_strtoding, not endptr
Upasana [Fri, 11 Jul 2014 17:17:26 +0000 (22:47 +0530)] 
*endptr should be set in rrd_strtoding, not endptr

so that value is reflected in the callee function as well

11 years agoMissed this instance of rrd_strtoding earlier
Upasana [Fri, 11 Jul 2014 17:16:48 +0000 (22:46 +0530)] 
Missed this instance of rrd_strtoding earlier

11 years agomake sure that sscanf doesn't get too much data
Upasana [Fri, 11 Jul 2014 17:14:48 +0000 (22:44 +0530)] 
make sure that sscanf doesn't get too much data

%19[0-9e+-] makes sure that it takes only the characters required for
getting a double variable

11 years agoFixed some bad indentation
Upasana [Wed, 9 Jul 2014 21:28:12 +0000 (02:58 +0530)] 
Fixed some bad indentation

11 years agorrd_strtoding now takes error string as an argument
Upasana [Wed, 9 Jul 2014 21:25:11 +0000 (02:55 +0530)] 
rrd_strtoding now takes error string as an argument

This commit replaces all rrd_strtoding calls with a 4 argument
version of the function and also make sure that its return value
(which shows whether the string has been converted partially,
fully or not converted at all) is checked at all the places.

11 years agofix badges
Tobias Oetiker [Mon, 7 Jul 2014 06:39:31 +0000 (08:39 +0200)] 
fix badges

11 years agoAdded rrd_strtoding to the symbol export list
Upasana [Sun, 6 Jul 2014 12:59:46 +0000 (18:29 +0530)] 
Added rrd_strtoding to the symbol export list

11 years agoadded rrd_strtoding & replaced all rrd_strtod instances with it
Upasana [Sat, 5 Jul 2014 23:33:49 +0000 (05:03 +0530)] 
added rrd_strtoding & replaced all rrd_strtod instances with it

11 years agofix spelling
Tobias Oetiker [Sun, 6 Jul 2014 12:23:21 +0000 (14:23 +0200)] 
fix spelling

11 years agomore tests
Tobias Oetiker [Sat, 5 Jul 2014 20:09:43 +0000 (22:09 +0200)] 
more tests

11 years agomake rrd_strtod and rrd_snprintf available for all to enjoy
Tobias Oetiker [Wed, 2 Jul 2014 12:23:09 +0000 (14:23 +0200)] 
make rrd_strtod and rrd_snprintf available for all to enjoy

11 years agoMerge pull request #513 from Sweet-kid/rrd_snprintf
Tobias Oetiker [Tue, 1 Jul 2014 19:57:43 +0000 (21:57 +0200)] 
Merge pull request #513 from Sweet-kid/rrd_snprintf

Removed setlocale instances https://github.com/oetiker/rrdtool-1.x/issues/504 #510

11 years agoFixed some terrible indentations 512/head 513/head
Upasana [Sun, 29 Jun 2014 12:00:28 +0000 (17:30 +0530)] 
Fixed some terrible indentations

11 years agoRemoved setlocale calls, used rrd_strtod & rrd_snprintf
Upasana [Sun, 29 Jun 2014 11:59:48 +0000 (17:29 +0530)] 
Removed setlocale calls, used rrd_strtod & rrd_snprintf

11 years agoAdded locale independent versions of strtod function
Upasana [Sun, 29 Jun 2014 11:49:32 +0000 (17:19 +0530)] 
Added locale independent versions of strtod function

11 years agofix preprocessor warnings
Tobias Oetiker [Fri, 27 Jun 2014 07:19:22 +0000 (09:19 +0200)] 
fix preprocessor warnings

11 years agoinclude snprintf.m4 in the distro
Tobias Oetiker [Thu, 26 Jun 2014 20:32:54 +0000 (22:32 +0200)] 
include snprintf.m4 in the distro

11 years agointegrate rrd_snprintf
Tobias Oetiker [Thu, 26 Jun 2014 14:17:42 +0000 (16:17 +0200)] 
integrate rrd_snprintf

11 years agoMerge pull request #511 from oetiker/remove-extra-advise-and-sync
Tobias Oetiker [Mon, 30 Jun 2014 11:54:26 +0000 (13:54 +0200)] 
Merge pull request #511 from oetiker/remove-extra-advise-and-sync

Remove unnecessary WILLNEED and msync calls

11 years ago* msync is NOT necessary before munmap, the data gets synced automatically 511/head
Tobias Oetiker [Mon, 30 Jun 2014 09:16:40 +0000 (11:16 +0200)] 
* msync is NOT necessary before munmap, the data gets synced automatically
* remove WILLNEED madvise, this only slows the code down while the os des not seem todo anything sensible with the info

11 years agoMerge branch 'master' of github.com:oetiker/rrdtool-1.x
Tobias Oetiker [Mon, 30 Jun 2014 09:12:38 +0000 (11:12 +0200)] 
Merge branch 'master' of github.com:oetiker/rrdtool-1.x

11 years agoit is rrdtool info not rrdinfo
Tobias Oetiker [Mon, 30 Jun 2014 09:12:15 +0000 (11:12 +0200)] 
it is rrdtool info not rrdinfo

11 years agoMerge pull request #509 from oetiker/support_missing_graph_in_bindings
Tobias Oetiker [Mon, 30 Jun 2014 08:50:50 +0000 (10:50 +0200)] 
Merge pull request #509 from oetiker/support_missing_graph_in_bindings

Support missing graph in bindings

11 years agosupport HAVE_RRD_GRAPH 509/head
Tobias Oetiker [Fri, 27 Jun 2014 07:48:26 +0000 (09:48 +0200)] 
support HAVE_RRD_GRAPH

11 years agohandle missing rrd_graph support
Tobias Oetiker [Thu, 26 Jun 2014 13:37:18 +0000 (15:37 +0200)] 
handle missing rrd_graph support

11 years agodo not build rrd_cgi when we have no graph support
Tobias Oetiker [Thu, 26 Jun 2014 12:53:08 +0000 (14:53 +0200)] 
do not build rrd_cgi when we have no graph support

11 years agoMerge pull request #508 from bbonev/buffsize
Tobias Oetiker [Tue, 24 Jun 2014 05:53:36 +0000 (07:53 +0200)] 
Merge pull request #508 from bbonev/buffsize

Change static buffers in image_desc_t to dynamically allocated

11 years agoChange static buffers in image_desc_t to dynamically allocated, 508/head
Boian Bonev [Tue, 24 Jun 2014 03:50:39 +0000 (06:50 +0300)] 
Change static buffers in image_desc_t to dynamically allocated,
so that all of them can handle much larger string with pango markup

11 years agoMerge pull request #506 from aelse/python-use-distribute
Tobias Oetiker [Mon, 23 Jun 2014 06:03:17 +0000 (08:03 +0200)] 
Merge pull request #506 from aelse/python-use-distribute

Python bindings build with Distribute

11 years agoPython bindings build with Distribute 506/head
Alexander Else [Mon, 23 Jun 2014 02:48:42 +0000 (12:48 +1000)] 
Python bindings build with Distribute

11 years agoMerge pull request #497 from phpmoli/patch-15
Tobias Oetiker [Fri, 13 Jun 2014 09:32:08 +0000 (11:32 +0200)] 
Merge pull request #497 from phpmoli/patch-15

mods of #477 rrdcached document changes/2

11 years agoMerge pull request #502 from oetiker/fetch-callback
Tobias Oetiker [Fri, 13 Jun 2014 09:31:33 +0000 (11:31 +0200)] 
Merge pull request #502 from oetiker/fetch-callback

Fetch callback

11 years agoactually do a test with the data 502/head
Tobias Oetiker [Fri, 13 Jun 2014 09:02:44 +0000 (11:02 +0200)] 
actually do a test with the data

11 years agoremove extra output
Tobias Oetiker [Fri, 13 Jun 2014 08:50:35 +0000 (10:50 +0200)] 
remove extra output

11 years agocall the perl tests as well
Tobias Oetiker [Fri, 13 Jun 2014 08:50:26 +0000 (10:50 +0200)] 
call the perl tests as well

11 years agoMerge branch 'master' of github.com:oetiker/rrdtool-1.x into fetch-callback
Tobias Oetiker [Fri, 13 Jun 2014 08:42:32 +0000 (10:42 +0200)] 
Merge branch 'master' of github.com:oetiker/rrdtool-1.x into fetch-callback

11 years agofetch callback support in perl RRDs module.
Tobias Oetiker [Fri, 13 Jun 2014 08:41:49 +0000 (10:41 +0200)] 
fetch callback support in perl RRDs module.

11 years agoMerge pull request #501 from pabigot/enh-unpriv-rrdcached
Tobias Oetiker [Sun, 1 Jun 2014 10:26:44 +0000 (12:26 +0200)] 
Merge pull request #501 from pabigot/enh-unpriv-rrdcached

rrdcached enhancements to drop unused privileges

11 years agorrdcached-lsb: update to support unprivileged group/user configuration 501/head
Peter A. Bigot [Sun, 1 Jun 2014 00:42:41 +0000 (19:42 -0500)] 
rrdcached-lsb: update to support unprivileged group/user configuration

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
11 years agorrdcached: add options to drop privileges after daemonize
Peter A. Bigot [Sun, 1 Jun 2014 00:03:55 +0000 (19:03 -0500)] 
rrdcached: add options to drop privileges after daemonize

Some init systems have an interface to run daemons as unprivileged
accounts, but they conflict with rrdcached's expectations of creating
pid files and sockets in privileged areas when following Filesystem
Hierarchy Standard namings.  Add options that are used to drop to
unprivileged group and accounts after all activities that require
privilege have been completed.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
11 years agorrdtool: fix mis-use of getuid
Peter A. Bigot [Sat, 31 May 2014 22:44:05 +0000 (17:44 -0500)] 
rrdtool: fix mis-use of getuid

Checking whether the application is running with root privileges requires
use of geteuid(), not getuid().

Signed-off-by: Peter A. Bigot <pab@pabigot.com>