"rrd_parsetime" uses (many) global variables and is thus not
thread-safe. Using it in the FETCH command reproducably segfaults the
caching daemon.
This replacement will only work with "simple" integers, i. e. times
specified as "1272470594" (sometime on April 28th) or "-3600" (one hour
ago). -- Florian Forster
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2074 a5681a0c-68f1-0310-ab6d-d61299d08faa
thread-safe. Using it in the FETCH command reproducably segfaults the
caching daemon.
This replacement will only work with "simple" integers, i. e. times
specified as "1272470594" (sometime on April 28th) or "-3600" (one hour
ago). -- Florian Forster
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2074 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agowhen using CDEF datasources in rrd, the rpnp in process_pdp_st (allocated in rpn_expa...
when using CDEF datasources in rrd, the rpnp in process_pdp_st (allocated in rpn_expand) in is never freed -- Frederik Kriewitz
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2073 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2073 a5681a0c-68f1-0310-ab6d-d61299d08faa
When specifying a relative path (-j option) rrd_cached would segfault when
trying to read past journals (journal_init function). Added an extra check
to journal_init before reading the directory, and, when parsing the command
line options, to expand the relative path to an absolute path. -- Adrian-Ioan Vasile yoyo@opennet.ro
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2072 a5681a0c-68f1-0310-ab6d-d61299d08faa
trying to read past journals (journal_init function). Added an extra check
to journal_init before reading the directory, and, when parsing the command
line options, to expand the relative path to an absolute path. -- Adrian-Ioan Vasile yoyo@opennet.ro
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2072 a5681a0c-68f1-0310-ab6d-d61299d08faa
check for round function as it is in -lm in solaris ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2071 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2071 a5681a0c-68f1-0310-ab6d-d61299d08faa
Relicense the RRDCacheD client interface under the MIT license. This
allows the interface to be used from non-GPL applications by copying the
source code files into the projects source tree. -- Florian Forster rrdtool@octo.it
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2070 a5681a0c-68f1-0310-ab6d-d61299d08faa
allows the interface to be used from non-GPL applications by copying the
source code files into the projects source tree. -- Florian Forster rrdtool@octo.it
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2070 a5681a0c-68f1-0310-ab6d-d61299d08faa
make rrdtool compile with gcc 4.5 if -std=c99 is set -- anicka@suse.cz
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2069 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2069 a5681a0c-68f1-0310-ab6d-d61299d08faa
mark unused arguments in the same way throughout the code
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2067 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2067 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed info interface documentation
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2064 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2064 a5681a0c-68f1-0310-ab6d-d61299d08faa
Rather than calling "FLUSH" for each RRD file needed for drawing a
graph and then accessing the file directly, use the "FLUSH" command to
receive the data required for drawing a graph.
The daemon can now be specified in one of three ways:
* A new option has been added to the "DEF" option. If the "DEF" command
includes the option "daemon=...", then the given daemon is used for
accessing that file only. This option takes precedence over all
other options. The value given follows the same syntax as other ways
to specify a daemon address, thouh colons need to be escaped from
rrdgraph(1).
Example:
'DEF:v1=path/to/example.rrd:value:AVERAGE:daemon=collect1.octo.cx'
* The "--daemon" option can be given to the overall "rrdtool graph"
command. When given, this address is used for all file accesses
except those which explicitely contain a "daemon=..." option.
* If the "RRDCACHED_ADDRESS" environment variable is set, it's value
is used as the daemon address. This is the lowest priority option
and only used if no other option is given.
One nice detail is that with ":daemon=...", the cache address can be
specified for each "DEF:" definition. It is therefore possible to graph
values stored on several servers in one graph ? even if several RRD
files have the same name. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2062 a5681a0c-68f1-0310-ab6d-d61299d08faa
graph and then accessing the file directly, use the "FLUSH" command to
receive the data required for drawing a graph.
The daemon can now be specified in one of three ways:
* A new option has been added to the "DEF" option. If the "DEF" command
includes the option "daemon=...", then the given daemon is used for
accessing that file only. This option takes precedence over all
other options. The value given follows the same syntax as other ways
to specify a daemon address, thouh colons need to be escaped from
rrdgraph(1).
Example:
'DEF:v1=path/to/example.rrd:value:AVERAGE:daemon=collect1.octo.cx'
* The "--daemon" option can be given to the overall "rrdtool graph"
command. When given, this address is used for all file accesses
except those which explicitely contain a "daemon=..." option.
* If the "RRDCACHED_ADDRESS" environment variable is set, it's value
is used as the daemon address. This is the lowest priority option
and only used if no other option is given.
One nice detail is that with ":daemon=...", the cache address can be
specified for each "DEF:" definition. It is therefore possible to graph
values stored on several servers in one graph ? even if several RRD
files have the same name. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2062 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_format.c: Implemented "cf_to_string"
A simple helper function to turn an "enum cf_en" to a string. The returned
pointer points to static memory and doesn't need to be freed. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2061 a5681a0c-68f1-0310-ab6d-d61299d08faa
A simple helper function to turn an "enum cf_en" to a string. The returned
pointer points to static memory and doesn't need to be freed. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2061 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_fetch.c: Use "rrdc_fetch" if daemon is available.
Instead of flushing the file via the connection to the daemon and then
accessing it directly, use the "FETCH" command to access the file via
the RRDCacheD. This removes ambiguities with absolute and relative paths
and makes it possible to read data from files that are not available
locally. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2060 a5681a0c-68f1-0310-ab6d-d61299d08faa
Instead of flushing the file via the connection to the daemon and then
accessing it directly, use the "FETCH" command to access the file via
the RRDCacheD. This removes ambiguities with absolute and relative paths
and makes it possible to read data from files that are not available
locally. -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2060 a5681a0c-68f1-0310-ab6d-d61299d08faa
Add a "FETCH" command to RRDCacheD which behaves like a (simplified
version of) rrdfetch(1).
This has advantages over calling "FLUSH" from within the "client",
especially if the daemon is accessed using a network socket. For one, it
makes it easy to separate collecting and storing of data on one side and
creating graphs on another, possibly more public server. Without this
command this is only possible using networked file systems and similar
techniques.
When talking to an instance of RRDCacheD via a network socket, only
relative pathnames are allowed. If the RRD file is to be accessed
afterwards (why else would one call "FLUSH"?), the client has to be in a
specific directory so the *same* relative path can be used. If the file
is on a share mounted via the network, the required CWD may differ from
the CWD of the server, making developing and deploying solutions using
separated storing and graphing unnecessarily hard.
The data can be accessed using "rrdc_fetch" which should be a drop-in
replacement for "rrd_fetch_r". This makes it easy for programs using the
RRDtool C API to use this new functionality. -- Florian Forster
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2059 a5681a0c-68f1-0310-ab6d-d61299d08faa
version of) rrdfetch(1).
This has advantages over calling "FLUSH" from within the "client",
especially if the daemon is accessed using a network socket. For one, it
makes it easy to separate collecting and storing of data on one side and
creating graphs on another, possibly more public server. Without this
command this is only possible using networked file systems and similar
techniques.
When talking to an instance of RRDCacheD via a network socket, only
relative pathnames are allowed. If the RRD file is to be accessed
afterwards (why else would one call "FLUSH"?), the client has to be in a
specific directory so the *same* relative path can be used. If the file
is on a share mounted via the network, the required CWD may differ from
the CWD of the server, making developing and deploying solutions using
separated storing and graphing unnecessarily hard.
The data can be accessed using "rrdc_fetch" which should be a drop-in
replacement for "rrd_fetch_r". This makes it easy for programs using the
RRDtool C API to use this new functionality. -- Florian Forster
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2059 a5681a0c-68f1-0310-ab6d-d61299d08faa
* GRAD element for graph, it acts more or less like an AREA,
except you can specify a second color and a height which is used to
create a gradient from one color to the next
by Rian Shelley
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2058 a5681a0c-68f1-0310-ab6d-d61299d08faa
except you can specify a second color and a height which is used to
create a gradient from one color to the next
by Rian Shelley
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2058 a5681a0c-68f1-0310-ab6d-d61299d08faa
when printing time_t use %lld with (long long int) for portability
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2057 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2057 a5681a0c-68f1-0310-ab6d-d61299d08faa
use long long int instead of just long long
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2056 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2056 a5681a0c-68f1-0310-ab6d-d61299d08faa
add documentation on -a
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2055 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2055 a5681a0c-68f1-0310-ab6d-d61299d08faa
rename chunk option from -m to -a -- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2054 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2054 a5681a0c-68f1-0310-ab6d-d61299d08faa
* Add utility functions to allocate pointers in variable size chunks.
* Introduce "-m" argument to reduce calls to realloc(). -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2053 a5681a0c-68f1-0310-ab6d-d61299d08faa
* Introduce "-m" argument to reduce calls to realloc(). -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2053 a5681a0c-68f1-0310-ab6d-d61299d08faa
* do add intl directory back to Makefile.am ... no use distributing the stuff if we don't use it
* link pangocairo and not pango ... thanks Stephen S. Disbrow for finding this
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2052 a5681a0c-68f1-0310-ab6d-d61299d08faa
* link pangocairo and not pango ... thanks Stephen S. Disbrow for finding this
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2052 a5681a0c-68f1-0310-ab6d-d61299d08faa
added solaris build hint by fabien wernli
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2050 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2050 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached: Updated help output
rrdcached: Exit with status != 0, if an invalid command line option was used. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2049 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached: Exit with status != 0, if an invalid command line option was used. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2049 a5681a0c-68f1-0310-ab6d-d61299d08faa
Wall is not a portable cc option ... if this is to be used we would have to check
which C compiler is in use ... so lets drop it for now
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2045 a5681a0c-68f1-0310-ab6d-d61299d08faa
which C compiler is in use ... so lets drop it for now
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2045 a5681a0c-68f1-0310-ab6d-d61299d08faa
include gettext 0.17 ... for those who do not have it on board
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2044 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2044 a5681a0c-68f1-0310-ab6d-d61299d08faa
wait before release to prevent timeout on scp
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2043 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2043 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.4.3
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2042 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2042 a5681a0c-68f1-0310-ab6d-d61299d08faa
fixed spelling a bit
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2041 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2041 a5681a0c-68f1-0310-ab6d-d61299d08faa
do not autogen the CHANGES file anymore
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2040 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2040 a5681a0c-68f1-0310-ab6d-d61299d08faa
we are in 2010 now
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2039 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2039 a5681a0c-68f1-0310-ab6d-d61299d08faa
update date
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2038 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2038 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agorrdcached: Log to stderr (in addition to syslog) when running in foreground. -- Sebas...
rrdcached: Log to stderr (in addition to syslog) when running in foreground. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2037 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2037 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached: Do not put any code in assert(). -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2036 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2036 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached: Added -m command line option. This option may be used to specify
the file permissions of a UNIX socket. The option affects the following
sockets only, i.e., it's possible to specify different modes for different
sockets. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2035 a5681a0c-68f1-0310-ab6d-d61299d08faa
the file permissions of a UNIX socket. The option affects the following
sockets only, i.e., it's possible to specify different modes for different
sockets. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2035 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached: Let -s affect the following sockets only. This way, it's possible
to specify different groups for different sockets. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2034 a5681a0c-68f1-0310-ab6d-d61299d08faa
to specify different groups for different sockets. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2034 a5681a0c-68f1-0310-ab6d-d61299d08faa
add 'm' as a shortcut for 'zoom' in rrd_graph (1.4 code+docu)
(1.3 only docu). Fix for Debian Bug 573299 provided by Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2033 a5681a0c-68f1-0310-ab6d-d61299d08faa
(1.3 only docu). Fix for Debian Bug 573299 provided by Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2033 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoin rrd_cgi RRD::TIME::LAST do not raise argc when calling rrd_last since the strftime...
in rrd_cgi RRD::TIME::LAST do not raise argc when calling rrd_last since the strftime argument which
is provided is already in the count but does not get passed to rrd_last. Thanks to Robert Luberda (fixing Debian Bug #573638.)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2030 a5681a0c-68f1-0310-ab6d-d61299d08faa
is provided is already in the count but does not get passed to rrd_last. Thanks to Robert Luberda (fixing Debian Bug #573638.)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2030 a5681a0c-68f1-0310-ab6d-d61299d08faa
Obviously this will only work if rrdcached is running as root which in
my case it has to be (as upstart can't currently monitor non-root
daemons). As you may have RRD data sources (data loggers) and RRD
consumers (e.g. CGI scripts) that both need to talk to the cache
daemon one solution is to set the group permissions of the socket.
This offer some flexibility over trying to get every RRD user/daemon
running under the same user context. -- Alex Bennee ajb pitcairn.cambridgebroadband.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2029 a5681a0c-68f1-0310-ab6d-d61299d08faa
my case it has to be (as upstart can't currently monitor non-root
daemons). As you may have RRD data sources (data loggers) and RRD
consumers (e.g. CGI scripts) that both need to talk to the cache
daemon one solution is to set the group permissions of the socket.
This offer some flexibility over trying to get every RRD user/daemon
running under the same user context. -- Alex Bennee ajb pitcairn.cambridgebroadband.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2029 a5681a0c-68f1-0310-ab6d-d61299d08faa
added --no-overwrite option to rrdtool create. It prevents rrdtool from clobbering existing rrd files. -- Chris - LINX
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2028 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2028 a5681a0c-68f1-0310-ab6d-d61299d08faa
I think I just solved a longstanding bug in the rrd_update routine
... I am writing a tool for seeding new rrd files from an existing
one ... essentially enabeling arbitrary restructuring ...
while doing this I found the following:
pdp: 1 2 | 3 4 5 6 7 | 8 9
for a consolidation of 5 steps I get
AVG RRA .. | 5 | ..
MIN RRA .. | 2 | ..
MAX RRA .. | 7 | ..
while I would have expected to get
AVG RRA .. | 5 | ..
MIN RRA .. | 3 | ..
MAX RRA .. | 7 | ..
the behavior has been like this at least since 1.2
looking at the code I found that the behavior had been introduced
by a patch optimizing rrd_update for updates covering multiple pdps
in one go ... in that optimization, the normal case where an update
covers exactly ONE pdp had been sort of neglected ... so much for
tunel vision.
The problem was, that the cdp value for MIN and MAX got initialized
from the last pdp value BEFORE the consolidation interval ... for
normal data no one would notice (or did notice) but it is still
wrong ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2024 a5681a0c-68f1-0310-ab6d-d61299d08faa
... I am writing a tool for seeding new rrd files from an existing
one ... essentially enabeling arbitrary restructuring ...
while doing this I found the following:
pdp: 1 2 | 3 4 5 6 7 | 8 9
for a consolidation of 5 steps I get
AVG RRA .. | 5 | ..
MIN RRA .. | 2 | ..
MAX RRA .. | 7 | ..
while I would have expected to get
AVG RRA .. | 5 | ..
MIN RRA .. | 3 | ..
MAX RRA .. | 7 | ..
the behavior has been like this at least since 1.2
looking at the code I found that the behavior had been introduced
by a patch optimizing rrd_update for updates covering multiple pdps
in one go ... in that optimization, the normal case where an update
covers exactly ONE pdp had been sort of neglected ... so much for
tunel vision.
The problem was, that the cdp value for MIN and MAX got initialized
from the last pdp value BEFORE the consolidation interval ... for
normal data no one would notice (or did notice) but it is still
wrong ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2024 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoadded additional dependencies on Makefile to make sure bindings makefiles get rebuild...
added additional dependencies on Makefile to make sure bindings makefiles get rebuild after reconfig
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2023 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2023 a5681a0c-68f1-0310-ab6d-d61299d08faa
reset rrd_state for grapv in ruby bindings -- Sven Engelhardt
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2022 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2022 a5681a0c-68f1-0310-ab6d-d61299d08faa
make sure we only use _NL_TIME_WEEK_1STDAY if we actually have it ... thanks kevin for the report
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2020 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2020 a5681a0c-68f1-0310-ab6d-d61299d08faa
use _NL_TIME_WEEK_1STDAY to determin the first day of the week.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2018 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2018 a5681a0c-68f1-0310-ab6d-d61299d08faa
use locale information from LC_TIME first_weekday to determine if the week should start sunday or monday.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2017 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2017 a5681a0c-68f1-0310-ab6d-d61299d08faa
new rb_rrd_xport function for ruby bindings. -- Pavel Pachkovskij pavel.pachkovskij azati.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2016 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2016 a5681a0c-68f1-0310-ab6d-d61299d08faa
make sure that (argv-1)[0] points to something sensible ... hack to undo the damage caused by a sensless optimization. see bug #251
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2013 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2013 a5681a0c-68f1-0310-ab6d-d61299d08faa
add 'u' to backup one line for special legend placement tricks
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2012 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2012 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix right aligned text
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2011 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2011 a5681a0c-68f1-0310-ab6d-d61299d08faa
add online documentation for --pango-markup switch
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2010 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2010 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoAttached patch passes DESTDIR to setup.py as --root=<DESTDIR> iff a DESTDIR was given...
Attached patch passes DESTDIR to setup.py as --root=<DESTDIR> iff a DESTDIR was given. Bernhard Reutner-Fischer
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2006 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2006 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoonly draw the new type of marker in the graph legend when called with --dynamic-label...
only draw the new type of marker in the graph legend when called with --dynamic-labels -- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2005 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2005 a5681a0c-68f1-0310-ab6d-d61299d08faa
add a timeout to the ms_async timestamp updating issue since this test was reported to hang while sync was called.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2003 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2003 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix cairo version
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2002 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2002 a5681a0c-68f1-0310-ab6d-d61299d08faa
new (better) checker for incoming COUNTER or DERIVED data. thanks Florian!
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2001 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2001 a5681a0c-68f1-0310-ab6d-d61299d08faa
re-fix #243 checking for '\0' made the whole check pointless. Now it should actually catch bad input.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2000 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2000 a5681a0c-68f1-0310-ab6d-d61299d08faa
sizeof(time_t) is 4 byte not 32 bit ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1999 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1999 a5681a0c-68f1-0310-ab6d-d61299d08faa
we are using a comparison with sizeof(long) to figure the size of time_t this is unfortunate
since on freebsd in 64bit mode time_t is 32 bit while long is 64 bit
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1997 a5681a0c-68f1-0310-ab6d-d61299d08faa
since on freebsd in 64bit mode time_t is 32 bit while long is 64 bit
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1997 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoThe end of the export range should not be adjusted DOWN but UP to hit the next matchi...
The end of the export range should not be adjusted DOWN but UP to hit the next matching step interval or the response will be one row short. Thanks swami for the bugreport.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1996 a5681a0c-68f1-0310-ab6d-d61299d08faa
the end time itself is not part of a time range ... this fixes the segfault reported in #248
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1995 a5681a0c-68f1-0310-ab6d-d61299d08faa
14 years agoteach rrd_restore to be able to read the #text value of <a></a> ... this fixes proble...
teach rrd_restore to be able to read the #text value of <a></a> ... this fixes problems with
blank last_ds entries ... as reported in #247.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1992 a5681a0c-68f1-0310-ab6d-d61299d08faa
blank last_ds entries ... as reported in #247.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1992 a5681a0c-68f1-0310-ab6d-d61299d08faa
do not build
anymore
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1990 a5681a0c-68f1-0310-ab6d-d61299d08faa
anymore
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1990 a5681a0c-68f1-0310-ab6d-d61299d08faa
yet another try to get the rpn example right ... #246
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1986 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1986 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix spacing
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1985 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1985 a5681a0c-68f1-0310-ab6d-d61299d08faa
this one proofes difficult to fix ... :-) another try ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1984 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1984 a5681a0c-68f1-0310-ab6d-d61299d08faa
its 7000 not 700 ... fix for #246 again
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1983 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1983 a5681a0c-68f1-0310-ab6d-d61299d08faa
add 0,7000 to fix #246
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1982 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1982 a5681a0c-68f1-0310-ab6d-d61299d08faa
use puts("x") instead of fputs("x\n",stdout) -- Bernhard Reutner-Fischer
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1977 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1977 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove duplicate help text -- Bernhard Reutner-Fischer
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1976 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1976 a5681a0c-68f1-0310-ab6d-d61299d08faa
be more diligent in checking the input arguments for rrdtool update and complain if they are wrong. fix for #243 (and more)
--This line, and those below, will be ignored-
M trunk/program/src/rrd_update.c
M branches/1.3/program/src/rrd_update.c
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1973 a5681a0c-68f1-0310-ab6d-d61299d08faa
--This line, and those below, will be ignored-
M trunk/program/src/rrd_update.c
M branches/1.3/program/src/rrd_update.c
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1973 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.4.2
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1970 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1970 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix pod syntax
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1969 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1969 a5681a0c-68f1-0310-ab6d-d61299d08faa
15 years agoSwitch LC_NUMERIC to C prior to creating rrd_xport output. This makes sure that numbe...
Switch LC_NUMERIC to C prior to creating rrd_xport output. This makes sure that numbers are always output with a . and not with a ,
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1968 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1968 a5681a0c-68f1-0310-ab6d-d61299d08faa
clarify rrd_daemon code with JOURNAL_REPLAY macro -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1967 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1967 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.4.1
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1963 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1963 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated versions to account for rrd cached fix
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1962 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1962 a5681a0c-68f1-0310-ab6d-d61299d08faa
Avoid unnecessary string handling for UPDATE commands in rrd_deaemon for 20x
speed increasse. Only copy as many bytes as necessary. During journal
replay, avoid unnecessary copy (string is discarded). Bug reported by
Thorsten von Eicken Patched by kevin brintnall
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1961 a5681a0c-68f1-0310-ab6d-d61299d08faa
speed increasse. Only copy as many bytes as necessary. During journal
replay, avoid unnecessary copy (string is discarded). Bug reported by
Thorsten von Eicken Patched by kevin brintnall
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1961 a5681a0c-68f1-0310-ab6d-d61299d08faa
we have 2009 now
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1959 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1959 a5681a0c-68f1-0310-ab6d-d61299d08faa
added links to documentation
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1958 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1958 a5681a0c-68f1-0310-ab6d-d61299d08faa
set version to 1.4.0 for all files
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1957 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1957 a5681a0c-68f1-0310-ab6d-d61299d08faa
create build script for 1.4 release
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1956 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1956 a5681a0c-68f1-0310-ab6d-d61299d08faa
* remove intl from build process ... someone who does actually need it should fix this ...
* make the code work on solaris 10 (tested on opencsw server farm. thanks!)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1955 a5681a0c-68f1-0310-ab6d-d61299d08faa
* make the code work on solaris 10 (tested on opencsw server farm. thanks!)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1955 a5681a0c-68f1-0310-ab6d-d61299d08faa
more solaris 10 portability changes ....
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1954 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1954 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove HAVE_LOCALE_H and HAVE_TIME_H and HAVE_SETLOCALE since they have not been used consistantly anyway
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1953 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1953 a5681a0c-68f1-0310-ab6d-d61299d08faa
if we use HAVE_TIME_H we should have a check for this in configure ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1952 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1952 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated for 1.4 release
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1951 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1951 a5681a0c-68f1-0310-ab6d-d61299d08faa
simplify rrd_graph LC_NUMERIC fix so that all call paramters are affected by it.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1950 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1950 a5681a0c-68f1-0310-ab6d-d61299d08faa
allow the grid on:off pattern to be configured
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1949 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1949 a5681a0c-68f1-0310-ab6d-d61299d08faa
needs locale.h to compile
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1948 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1948 a5681a0c-68f1-0310-ab6d-d61299d08faa
optional software is expected to live in /opt, so lets follow this custom ... /usr/local is really old school.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1945 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1945 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix memory handling when argument separation in pipe mode fails. fix for #230
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1944 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1944 a5681a0c-68f1-0310-ab6d-d61299d08faa
set locale to C while restoring
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1939 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1939 a5681a0c-68f1-0310-ab6d-d61299d08faa
another typo fixed by Justin T Pryzby
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1938 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1938 a5681a0c-68f1-0310-ab6d-d61299d08faa
Removed left-over occurrence of LIB_LIBINTL -- sebastian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1937 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1937 a5681a0c-68f1-0310-ab6d-d61299d08faa
Fixed various typos in the manpages. Debian bug #550919. -- Justin T. Pryzby
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1936 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1936 a5681a0c-68f1-0310-ab6d-d61299d08faa
load rrd_config.h before rrd_client.h since its content is expected to be present -- Florian Forster
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1935 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1935 a5681a0c-68f1-0310-ab6d-d61299d08faa
Fix potential memory leak in rrd_flushcached during failure. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1934 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1934 a5681a0c-68f1-0310-ab6d-d61299d08faa
sebastian was missing from the contributors list
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1933 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1933 a5681a0c-68f1-0310-ab6d-d61299d08faa
Do not mess with the locale settings. The main program takes care of that (rrd_tool.c calls setlocale(LC_ALL,"") already.
We do call setlocale on LC_NUMERIC a few times to get predictable number formats when parsing strings into floats, but apart from that the code is
written in a portable manner and can take whatever the local system supports.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1932 a5681a0c-68f1-0310-ab6d-d61299d08faa
We do call setlocale on LC_NUMERIC a few times to get predictable number formats when parsing strings into floats, but apart from that the code is
written in a portable manner and can take whatever the local system supports.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1932 a5681a0c-68f1-0310-ab6d-d61299d08faa
* comment on the reson for calling setlocale
* to not force the message encoding ... messages
should be encoded in the current locale
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1931 a5681a0c-68f1-0310-ab6d-d61299d08faa
* to not force the message encoding ... messages
should be encoded in the current locale
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1931 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrd_client, rrd_daemon: Do not require hostnames to contain a dot.
Non-FQDN (e.g. "localhost") are now supported as well. Anything that does not
start with '[' should be (and is now) treated as <name>[:<port>]. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1930 a5681a0c-68f1-0310-ab6d-d61299d08faa
Non-FQDN (e.g. "localhost") are now supported as well. Anything that does not
start with '[' should be (and is now) treated as <name>[:<port>]. -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1930 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrd_client: Improved error handling / reporting.
* Report getaddrinfo() errors using gai_strerror().
* Replaced "Internal error" with a more verbose error message, if available.
-- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1929 a5681a0c-68f1-0310-ab6d-d61299d08faa
* Report getaddrinfo() errors using gai_strerror().
* Replaced "Internal error" with a more verbose error message, if available.
-- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1929 a5681a0c-68f1-0310-ab6d-d61299d08faa