Code

rrdtool.git
7 years agofix off by 1 error master
oetiker [Mon, 3 Sep 2012 13:39:29 +0000 (13:39 +0000)]
fix off by 1 error

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofixed pango markup link
oetiker [Wed, 22 Aug 2012 09:57:33 +0000 (09:57 +0000)]
fixed pango markup link

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2304 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoremove a bunch of variables which were set but never used as pointed out by gcc
oetiker [Tue, 14 Aug 2012 09:23:11 +0000 (09:23 +0000)]
remove a bunch of variables which were set but never used as pointed out by gcc

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2303 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix locations for installing the sample programs to make automake happy
oetiker [Tue, 14 Aug 2012 09:22:19 +0000 (09:22 +0000)]
fix locations for installing the sample programs to make automake happy

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2302 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agointegrate rrdinfo and rrdcreate into the rrdupdate binary - Sven-Göran Bergh
oetiker [Mon, 13 Aug 2012 14:04:15 +0000 (14:04 +0000)]
integrate rrdinfo and rrdcreate into the rrdupdate binary - Sven-Göran Bergh

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2300 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agouse snprintf, strdup, ... where possible to make for safer operation -- Martin Pelikan
oetiker [Mon, 13 Aug 2012 06:19:17 +0000 (06:19 +0000)]
use snprintf, strdup, ... where possible to make for safer operation -- Martin Pelikan

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2299 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoopenbsd does not know EPROTO it seems
oetiker [Sun, 12 Aug 2012 20:49:17 +0000 (20:49 +0000)]
openbsd does not know EPROTO it seems

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2298 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agocomplete segfault fix for second axis %s format begun in r2123 (thanks Martin Pelikan...
oetiker [Sun, 12 Aug 2012 14:37:31 +0000 (14:37 +0000)]
complete segfault fix for second axis %s format begun in r2123 (thanks Martin Pelikan for the hint)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2297 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoRRDs.xs uses &PL_sv_undef to insert undefined values into arrays and hashes. This...
oetiker [Tue, 31 Jul 2012 12:43:45 +0000 (12:43 +0000)]
RRDs.xs uses &PL_sv_undef to insert undefined values into arrays and hashes. This leads to all sorts of problems. For details, please see "AVs, HVs and undefined values" section in perlguts(1). -- patch by tobez+lars

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2296 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agosupport for the xport command -- Jimmy Ngo
oetiker [Sat, 28 Jul 2012 13:55:30 +0000 (13:55 +0000)]
support for the xport command -- Jimmy Ngo

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2295 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoserviced config etc files for rrdtool
oetiker [Mon, 2 Jul 2012 15:05:32 +0000 (15:05 +0000)]
serviced config etc files for rrdtool

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2292 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agowire up systemd support in autoconf -- tomek@pipebreaker.pl
oetiker [Mon, 2 Jul 2012 14:01:06 +0000 (14:01 +0000)]
wire up systemd support in autoconf -- tomek@pipebreaker.pl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2291 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agorrd_graph_rpn: add a MEDIAN operator. -- Aaron Gallagher <_@habnab.it>
oetiker [Fri, 1 Jun 2012 10:04:59 +0000 (10:04 +0000)]
rrd_graph_rpn: add a MEDIAN operator. -- Aaron Gallagher <_@habnab.it>

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2290 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomake rrd_daemon systemd aware - patch by Tomasz Torcz tomek pipebreaker.pl
oetiker [Wed, 23 May 2012 14:39:48 +0000 (14:39 +0000)]
make rrd_daemon systemd aware - patch by  Tomasz Torcz tomek pipebreaker.pl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2289 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix warning: "__STRICT_ANSI__" is not defined warning patch by Gilles Esp
oetiker [Mon, 7 May 2012 07:31:28 +0000 (07:31 +0000)]
fix warning: "__STRICT_ANSI__" is not defined warning patch by Gilles Esp

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2288 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomake sure the grid and label positioner does NOT take the dst state of the current...
oetiker [Tue, 10 Apr 2012 10:12:28 +0000 (10:12 +0000)]
make sure the grid and label positioner does NOT take the dst state of the current time into account.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2286 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoif the perl bindings are to be installed together with rrdtool, make sure INSTALL_BAS...
oetiker [Thu, 8 Mar 2012 07:46:04 +0000 (07:46 +0000)]
if the perl bindings are to be installed together with rrdtool, make sure INSTALL_BASE does not confuse things. Inspired by Mike Schilli.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2284 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agointroducing the new key=value parser for graph command arguments ... work in progress...
oetiker [Tue, 6 Mar 2012 10:13:46 +0000 (10:13 +0000)]
introducing the new key=value parser for graph command arguments ... work in progress - Martin Sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2283 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix flush race in rrdcached -- Christian Hitz
oetiker [Mon, 5 Mar 2012 16:49:01 +0000 (16:49 +0000)]
fix flush race in rrdcached -- Christian Hitz

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2282 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix regression in graph generation -- martin sperl
oetiker [Thu, 1 Mar 2012 09:45:08 +0000 (09:45 +0000)]
fix regression in graph generation -- martin sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2281 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agostart of implementation to create a new chart type (XY) -- martin sperl
oetiker [Sat, 25 Feb 2012 16:10:50 +0000 (16:10 +0000)]
start of implementation to create a new chart type (XY) -- martin sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2280 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofor RRAs with a step count of 1, treat MIN/MAX/LAST and AVERAGE as equal, so there...
oetiker [Sat, 25 Feb 2012 16:09:41 +0000 (16:09 +0000)]
for RRAs with a step count of 1, treat MIN/MAX/LAST and AVERAGE as equal, so there is no need to create a MIN/MAX/LAST entry for the highest resolution. -- Martin Sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2279 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomoved output generation for xport out of rrd_tool.c -- martin sperl
oetiker [Fri, 24 Feb 2012 07:44:25 +0000 (07:44 +0000)]
moved output generation for xport out of rrd_tool.c -- martin sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2278 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoextra output formats for rrd_graph -- martin sperl
oetiker [Thu, 23 Feb 2012 08:33:19 +0000 (08:33 +0000)]
extra output formats for rrd_graph -- martin sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2277 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agojson requires keys to be proper strings and thus quoted ...
oetiker [Wed, 22 Feb 2012 22:11:18 +0000 (22:11 +0000)]
json requires keys to be proper strings and thus quoted ...

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2276 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agokill a few warnings and properly release memory -- martin sperl
oetiker [Wed, 22 Feb 2012 10:27:42 +0000 (10:27 +0000)]
kill a few warnings and properly release memory -- martin sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2275 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoimplement CSV, TSC, SSV with JSON and XML as "graphics" formats for rrdgraph -- Marti...
oetiker [Wed, 22 Feb 2012 06:44:28 +0000 (06:44 +0000)]
implement CSV, TSC, SSV with JSON and XML as "graphics" formats for rrdgraph -- Martin Sperl

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2274 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomaximum library version is 255
oetiker [Mon, 20 Feb 2012 10:26:42 +0000 (10:26 +0000)]
maximum library version is 255

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2273 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoremove duplicate code in rrd_open -- Richard Laager
oetiker [Thu, 2 Feb 2012 15:39:54 +0000 (15:39 +0000)]
remove duplicate code in rrd_open -- Richard Laager

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2271 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agouse posix_fallocate when initialiying rrd files ... instead of filling them with...
oetiker [Thu, 2 Feb 2012 15:38:44 +0000 (15:38 +0000)]
use  posix_fallocate when initialiying rrd files ... instead of filling them with yero explicitly -- Richard Laager

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2270 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix for tcl bindings ... -- George Ross
oetiker [Thu, 2 Feb 2012 15:35:24 +0000 (15:35 +0000)]
fix for tcl bindings ... -- George Ross

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2269 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoregression fix for r2265
oetiker [Tue, 24 Jan 2012 08:20:45 +0000 (08:20 +0000)]
regression fix for r2265

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2266 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agotest for tm.tm_gmtoff presence in configure.ac fix for #330
oetiker [Tue, 24 Jan 2012 08:18:37 +0000 (08:18 +0000)]
test for tm.tm_gmtoff presence in configure.ac fix for #330

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2265 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agocheck in /usr/lib64 for tclConfig.sh too
oetiker [Tue, 24 Jan 2012 07:38:31 +0000 (07:38 +0000)]
check in /usr/lib64 for tclConfig.sh too

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2264 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix shared library version number
oetiker [Mon, 23 Jan 2012 13:56:25 +0000 (13:56 +0000)]
fix shared library version number

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2263 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoadded a nop control for string formating, so that strings ending in /x are possible...
oetiker [Fri, 20 Jan 2012 07:57:59 +0000 (07:57 +0000)]
added a nop control for string formating, so that strings ending in /x are possible by entering \x\.
fix for #331

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2262 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoadded support for rrdgraph to use the yotta, zetta, zepto, yocto prefixes. Fix for...
oetiker [Fri, 20 Jan 2012 07:27:50 +0000 (07:27 +0000)]
added support for rrdgraph to use the yotta, zetta, zepto, yocto prefixes. Fix for #333 (thanks Christoph)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2261 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agobe clearer as to what VDEF LAST/FIRST do.
oetiker [Wed, 18 Jan 2012 06:08:12 +0000 (06:08 +0000)]
be clearer as to what VDEF LAST/FIRST do.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2259 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoremove perl 5.004 compatibility hack and make things work on newer perls in exchange :-)
oetiker [Tue, 17 Jan 2012 06:53:29 +0000 (06:53 +0000)]
remove perl 5.004 compatibility hack and make things work on newer perls in exchange :-)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2258 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix libwrap and libdbi detection logic
oetiker [Mon, 16 Jan 2012 14:34:21 +0000 (14:34 +0000)]
fix libwrap and libdbi detection logic

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2254 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoaddeded documentation for json
oetiker [Mon, 16 Jan 2012 14:31:49 +0000 (14:31 +0000)]
addeded documentation for json

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2253 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agorrdtool is assuming that rrd_xport will always return -1 on failure;
oetiker [Mon, 16 Jan 2012 10:59:14 +0000 (10:59 +0000)]
rrdtool is assuming that rrd_xport will always return -1 on failure;
however, rrd_xport returns errno (which is, generally, not -1) if
rrd_client fails. I figured it was easier to change rrdtool than to change
everything in rrd_client. For good measure, I also changed the checks on
the calls to rrd_fetch and rrd_graph. I'm not sure if they're susceptible
to the same problem, but, well, better to check for the one thing you do
what you want than to enumerate all the possible things you don't want.

This segfault is caused by an uninitialized variable use (in particular,
legend_v and col_cnt end up being used and passed to printf uninitialized).
Nothing offhand jumped out at me as easily-exploitable to do code
injection, but I only spent five or so minutes looking at it, so there very
well may be a security problem hiding behind this. -- James Brown <jbrown@yelp.com>

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2251 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agointegrated json support in rrdtool xport with inspiration from Erik Kastner and Micha...
oetiker [Sun, 15 Jan 2012 16:31:12 +0000 (16:31 +0000)]
integrated json support in rrdtool xport with inspiration from Erik Kastner and Michael Markstaller -- Tobi

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2250 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agobe more careful when finding pic flags
oetiker [Mon, 19 Dec 2011 16:03:09 +0000 (16:03 +0000)]
be more careful when finding pic flags

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2247 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix horyzontal alignement of lines and aread
oetiker [Fri, 16 Dec 2011 20:19:49 +0000 (20:19 +0000)]
fix horyzontal alignement of lines and aread

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2245 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix grid fitting for corner cases
oetiker [Fri, 16 Dec 2011 17:39:14 +0000 (17:39 +0000)]
fix grid fitting for corner cases

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2243 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agouse standard functions for checking
oetiker [Fri, 16 Dec 2011 16:13:23 +0000 (16:13 +0000)]
use standard functions for checking

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2241 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agosearch for tcpd.h with <>
oetiker [Fri, 16 Dec 2011 13:25:34 +0000 (13:25 +0000)]
search for tcpd.h with <>

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2240 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix win32 distributables
oetiker [Fri, 16 Dec 2011 07:48:48 +0000 (07:48 +0000)]
fix win32 distributables

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2239 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomerged updated win32 port by Larry Adams and the cacti team
oetiker [Thu, 15 Dec 2011 16:08:59 +0000 (16:08 +0000)]
merged updated win32 port by Larry Adams and the cacti team

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2236 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofixed some reference errors
oetiker [Mon, 12 Dec 2011 06:48:45 +0000 (06:48 +0000)]
fixed some reference errors

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2234 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agorpn compare operators CAN return unknown ... (#293)
oetiker [Thu, 1 Dec 2011 15:27:24 +0000 (15:27 +0000)]
rpn compare operators CAN return unknown ... (#293)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2232 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agogettext 0.17 is sufficient too and more widely used than 0.18 ...
oetiker [Thu, 1 Dec 2011 15:09:12 +0000 (15:09 +0000)]
gettext 0.17 is sufficient too and more widely used than 0.18 ...
-- Bernard Li <bernard@vanhpc.org>

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2231 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix some issues with the
oetiker [Thu, 1 Dec 2011 15:07:38 +0000 (15:07 +0000)]
fix some issues with the
spec file, specifically:

- Reset Release to 1
- Add -lua subpackage
- Fix -perl subpackage so it includes the correct Perl package paths

The version should probably be updated to 1.5.0 (for trunk), or we
could just grab that from configure.ac.

Tested building on EL5 and EL6 (beta).

It would be great if this could also be backported to the 1.4 tree.

-- Bernard Li <bernard@vanhpc.org>

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2230 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix typo in configure.ac (regression from r2227) fix for #324
oetiker [Tue, 29 Nov 2011 22:42:45 +0000 (22:42 +0000)]
fix typo in configure.ac (regression from r2227) fix for #324

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2229 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoIt seems that function graph_size_location() doesn't call xtr(im, 0) if (im->extra_fl...
oetiker [Mon, 28 Nov 2011 07:38:54 +0000 (07:38 +0000)]
It seems that function graph_size_location() doesn't call xtr(im, 0) if (im->extra_flags & ONLY_GRAPH) != 0. Therefore, static variable pixie in function xtr() remains uninitialized (fix for #322). -- u00mp yandex.ru

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2228 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix glib dependency for --disable-rrd_graph and update library versions (fix for...
oetiker [Mon, 28 Nov 2011 07:32:36 +0000 (07:32 +0000)]
fix glib dependency for --disable-rrd_graph and update library versions (fix for #323)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2227 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agocall this 1.4.999
oetiker [Thu, 24 Nov 2011 15:15:42 +0000 (15:15 +0000)]
call this 1.4.999

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2226 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoinitialize magfact to 1 ... fixes logarithm chart display issues (patch from Christop...
oetiker [Thu, 24 Nov 2011 15:07:23 +0000 (15:07 +0000)]
initialize magfact to 1 ... fixes logarithm chart display issues (patch from Christoph Biedl) #296

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2225 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoupdates to the win32 port -- Chris Larsen
oetiker [Thu, 24 Nov 2011 14:55:06 +0000 (14:55 +0000)]
updates to the win32 port -- Chris Larsen

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2223 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix some string marshaling bugs in the Dot Net binding -- Chris Larsen
oetiker [Thu, 24 Nov 2011 14:51:24 +0000 (14:51 +0000)]
fix some string marshaling bugs in the Dot Net binding -- Chris Larsen

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2222 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoafter fetching, data must be reduced to at least chart resolution, else some data...
oetiker [Thu, 24 Nov 2011 14:26:30 +0000 (14:26 +0000)]
after fetching, data must be reduced to at least chart resolution, else some data will not get plotted. fix for #298

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2221 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoproperly handle the case where RRDCACHED_ADDRESS is an empty string
oetiker [Thu, 24 Nov 2011 10:55:18 +0000 (10:55 +0000)]
properly handle the case where RRDCACHED_ADDRESS is an empty string

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2220 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agothe number of COMPUTE rpn nodes is architecture dependent. calculate the right number...
oetiker [Wed, 23 Nov 2011 16:54:17 +0000 (16:54 +0000)]
the number of COMPUTE rpn nodes is architecture dependent. calculate the right number and complain otherwise. Fix for #300.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2219 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agomake rrd_mkdir_p work on bsd* unixes too ... their dirname call works differently...
oetiker [Wed, 23 Nov 2011 08:52:37 +0000 (08:52 +0000)]
make rrd_mkdir_p work on bsd* unixes too ... their dirname call works differently ... #305

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2217 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agouse long int format
oetiker [Wed, 23 Nov 2011 08:49:23 +0000 (08:49 +0000)]
use long int format

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2216 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoa new command-line parameter, --week-fmt, by which I can translate the word "week...
oetiker [Tue, 22 Nov 2011 17:13:13 +0000 (17:13 +0000)]
a new command-line parameter, --week-fmt, by which I can translate the word "week" in the graphs. -- Martin Volf

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2215 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoallow to restore xml files with zero row rras ... this is a degenerated case
oetiker [Tue, 22 Nov 2011 15:40:22 +0000 (15:40 +0000)]
allow to restore xml files with zero row rras ... this is a degenerated case
that does not occure in the wild, as rrdtool prevents the creation of such
rrd files. But rrdtool restore 1.3 did allows to create them via restore.
Now this is possible again. Fix for #310.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2212 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix ifdef use
oetiker [Tue, 22 Nov 2011 15:28:45 +0000 (15:28 +0000)]
fix ifdef use

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2211 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agothe first TREND* value can be calculated earlier ... -- fredrick (fix for #312)
oetiker [Tue, 22 Nov 2011 12:59:57 +0000 (12:59 +0000)]
the first TREND* value can be calculated earlier ... -- fredrick (fix for #312)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2210 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoactually link with LIBINTL if we got it ... should make solaris happy
oetiker [Tue, 22 Nov 2011 12:46:15 +0000 (12:46 +0000)]
actually link with LIBINTL if we got it ... should make solaris happy

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2209 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agodbi_result_get_datetime_idx() return timestamp in UTC, but time axis on graph suppose...
oetiker [Wed, 16 Nov 2011 16:49:10 +0000 (16:49 +0000)]
dbi_result_get_datetime_idx() return timestamp in UTC, but time axis on graph supposed to be in local time.
fix provided in #321
 --This line, and those below, will be ignored--

M    trunk/program/src/rrd_fetch_libdbi.c
M    branches/1.4/program/src/rrd_fetch_libdbi.c

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2208 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoallow rrdtool for windows to properly support binary mode stdout/stdin -- Larry Adams
oetiker [Mon, 14 Nov 2011 21:30:31 +0000 (21:30 +0000)]
allow rrdtool for windows to properly support binary mode stdout/stdin -- Larry Adams

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2207 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix ruby binding for rrd_xport #318
oetiker [Thu, 20 Oct 2011 06:48:39 +0000 (06:48 +0000)]
fix ruby binding for rrd_xport #318

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2206 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofree step_list on error. fix for #317
oetiker [Tue, 18 Oct 2011 14:22:04 +0000 (14:22 +0000)]
free step_list on error. fix for #317

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2204 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agoimproved library handling
oetiker [Thu, 29 Sep 2011 11:40:10 +0000 (11:40 +0000)]
improved library handling

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2203 a5681a0c-68f1-0310-ab6d-d61299d08faa

7 years agofix buffer overflow for LONG lines in journal handling code for update requests.
oetiker [Tue, 27 Sep 2011 06:15:36 +0000 (06:15 +0000)]
fix buffer overflow for LONG lines in journal handling code for update requests.
fix for #316

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2202 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agohandling of ENV_RRDCACHED_ADDRESS:
oetiker [Fri, 16 Sep 2011 13:04:31 +0000 (13:04 +0000)]
handling of ENV_RRDCACHED_ADDRESS:
added missing brackets after if, backported fix from trunk to 1.4 while doing it
-- patch by x @ zamyteam.org

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2199 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agofix alignment of centered items ... title and footer
oetiker [Sun, 14 Aug 2011 09:41:30 +0000 (09:41 +0000)]
fix alignment of centered items ... title and footer

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2197 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoproper fix for the header size problem and its effects on rrd_resize
oetiker [Wed, 29 Jun 2011 15:18:22 +0000 (15:18 +0000)]
proper fix for the header size problem and its effects on rrd_resize

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2192 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agofox for #302. refuse to build if troff and nroff are not around
oetiker [Thu, 23 Jun 2011 06:31:08 +0000 (06:31 +0000)]
fox for #302. refuse to build if troff and nroff are not around

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2188 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agofix for #301: plug memory leak in lua bindings -- bmayland @ leoninedev.com
oetiker [Thu, 23 Jun 2011 05:48:37 +0000 (05:48 +0000)]
fix for #301: plug memory leak in lua bindings -- bmayland @ leoninedev.com

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2187 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoFix for #304: checking for time_t is done with AC_RUN_IFELSE which fails when cross...
oetiker [Thu, 23 Jun 2011 05:45:36 +0000 (05:45 +0000)]
Fix for #304: checking for time_t is done with AC_RUN_IFELSE which fails when cross-compiling. The size of time_t can be detected with AC_CHECK_SIZEOF. -- Michael Olbrich

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2186 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agofix rrd_create behaviour when mmaping on a full filesystem by actually 'filling'...
oetiker [Thu, 21 Apr 2011 06:12:50 +0000 (06:12 +0000)]
fix rrd_create behaviour when mmaping on a full filesystem by actually 'filling' the file with
zero. -- Francois-Xavier Bourlet francois-xavier.bourlet dotcloud.com

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2181 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agowith libwrap use 'rrdcached' as the name of our daemon and not just rrdcache
oetiker [Tue, 15 Mar 2011 07:53:03 +0000 (07:53 +0000)]
with libwrap use 'rrdcached' as the name of our daemon and not just rrdcache

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2180 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agobring spaceing around graph back in line with 1.2 goodness ... in connection with...
oetiker [Mon, 14 Mar 2011 08:22:46 +0000 (08:22 +0000)]
bring spaceing around graph back in line with 1.2 goodness ... in connection with no-legend and no title

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2179 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoeven with libdbi enabled, do not mistake "sqlxxabc.rrd" for an sql url -- Peter Stamfest
oetiker [Thu, 3 Mar 2011 06:53:05 +0000 (06:53 +0000)]
even with libdbi enabled, do not mistake "sqlxxabc.rrd" for an sql url -- Peter Stamfest

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2176 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoas rrd_cgi fails to parse stuff, do NOT try to fix up the mess ... it is bound to...
oetiker [Wed, 26 Jan 2011 08:38:47 +0000 (08:38 +0000)]
as rrd_cgi fails to parse stuff, do NOT try to fix up the mess ... it is bound to fail

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2174 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoupdate timestamp continuity checks in rrd_cached ... allow sub-second precision
oetiker [Tue, 18 Jan 2011 14:18:09 +0000 (14:18 +0000)]
update timestamp continuity checks in rrd_cached ... allow sub-second precision

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2173 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoAdded configure option to disable building rrd_graph: --disable-rrd_graph. With suppo...
oetiker [Tue, 18 Jan 2011 08:49:24 +0000 (08:49 +0000)]
Added configure option to disable building rrd_graph: --disable-rrd_graph. With support from Ulf Zimmermann (OpenLane)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2172 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoadded explanation on the rows returned from fetch. fix for #291.
oetiker [Sat, 15 Jan 2011 13:01:13 +0000 (13:01 +0000)]
added explanation on the rows returned from fetch. fix for #291.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2170 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agomake sure we do not free stuff in rrdnew which was simply copied from rrdold and...
oetiker [Sat, 15 Jan 2011 12:53:43 +0000 (12:53 +0000)]
make sure we do not free stuff in rrdnew which was simply copied from rrdold and thus gets freed there already ...

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2169 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agofix wording regarding min/max setting
oetiker [Thu, 6 Jan 2011 15:39:55 +0000 (15:39 +0000)]
fix wording regarding min/max setting

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2167 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agodo not close the filehandle to the resize file of there was a problem getting it...
oetiker [Thu, 6 Jan 2011 15:00:34 +0000 (15:00 +0000)]
do not close the filehandle to the resize file of there was a problem getting it in the first place.

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2166 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoit there is no right label, do not reserve any space for it
oetiker [Sun, 26 Dec 2010 19:19:13 +0000 (19:19 +0000)]
it there is no right label, do not reserve any space for it

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2160 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agomake configure recognize tcl-site argument (#281)
oetiker [Sun, 26 Dec 2010 17:25:09 +0000 (17:25 +0000)]
make configure recognize tcl-site argument (#281)

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2159 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoadd some extra checks to RRA arguments
oetiker [Sun, 26 Dec 2010 17:13:08 +0000 (17:13 +0000)]
add some extra checks to RRA arguments

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2158 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agomake MAP_PRIVATE conditional on AIX not being defined ... should fix part of #216
oetiker [Sun, 26 Dec 2010 16:04:03 +0000 (16:04 +0000)]
make MAP_PRIVATE conditional on AIX not being defined ... should fix part of #216

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2157 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years agoThe buffer length for command buffers should be controlled by a single
oetiker [Tue, 21 Dec 2010 16:50:16 +0000 (16:50 +0000)]
The buffer length for command buffers should be controlled by a single
#define. Renamed CMD_MAX to RRD_CMD_MAX and put into rrd_client.h
so that it is available to clients as well. -- kevin brintnall

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2156 a5681a0c-68f1-0310-ab6d-d61299d08faa

8 years ago1) Sigma calculation had an error. The first data value in each bin didn't get squared.
oetiker [Tue, 21 Dec 2010 16:38:48 +0000 (16:38 +0000)]
1) Sigma calculation had an error. The first data value in each bin didn't get squared.

2) "rrdfillmissing" was dummy. I have added code to do the work. The parameter has NOW to be in seconds. In doc it is
given in steps. The size of steps depends to much on size of graph so I think its easier to use seconds and internal
calculate the number of steps.

by Hans Jørgen Jakobsen

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2155 a5681a0c-68f1-0310-ab6d-d61299d08faa