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
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
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
* 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
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
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
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
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
Catch CDEF:tot= and raise and error to fix #199. Thanks to Jeron Massar for reporting this. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1691 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3.2 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1484 a5681a0c-68f1-0310-ab6d-d61299d08faa
Improve performance by keeping multiple pango font descriptions. For the first invocation we are about 20% times as fast for the second one about 4-5 times faster ... git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1475 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3.1 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1447 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3.0 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1432 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc9 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1413 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc8 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1406 a5681a0c-68f1-0310-ab6d-d61299d08faa
From: Sebastian Harl sh tokkee.org Date: Sun, 8 Jun 2008 15:01:05 +0200 Subject: [PATCH] Cleanup the symbols exported by librrd. Up to know librrd exported a lot of symbols, most of which are to be regarded as private symbols. This somewhat pollutes the API as the symbols could, in theory, be used by external software and, more importantly, makes symbol based dependencies (as recently introduced in e.g. Debian) somewhat harder to implement. This patch does a somewhat large-scale cleanup of the exported symbols: * Introduced a librrd.sym file which contains all symbols that are to be exported. This file is then passed to libtool using the -export-symbols option which tells the linker to export the given symbols only (note: according to the libtool manual, this has no effect on some architectures - however, I assume that most architectures in use today do support it). librrd.sym contains all symbols originally defined in rrd.h sans LockRRD() (which has been moved to rrd_tool.h). The following functions have been added to rrd.h and the list of exported symbols (some of them have been renamed, see below): - rrd_info() - rrd_info_free() - rrd_info_print() - rrd_info_push() - rrd_lastupdate() - rrd_update_v() - rrd_strerror() * Prefixed all public functions and types with "rrd_" to avoid name clashes with other libraries. Also, while I was at it, I introduced typedefs for all custom types and prefixed the time names with "_t" to improve consistency: - enum info_type -> rrd_info_type_t - enum timetype -> rrd_timetype_t - union infoval -> rrd_infoval_t - struct info_t -> rrd_info_t - struct rrd_context -> rrd_context_t - struct rrd_time_value -> rrd_time_value_t - info_free() -> rrd_info_free() - info_free() -> rrd_info_free() - info_print() -> rrd_info_print() - info_push() -> rrd_info_push() - LockRRD() -> rrd_lock() (not public though) - parsetime() -> rrd_parsetime() (and: src/parsetime.c -> src/rrd_parsetime.c) - proc_start_end() -> rrd_proc_start_end() - set_to_DINF() -> rrd_set_to_DINF() - set_to_DNAN() -> rrd_set_to_DNAN() * Moved readfile() from rrd_open.c to rrd_cgi.c and declared it static. This function is used in rrd_cgi.c only. * rrd_lock() (f.k.a. LockRRD()) now accepts a rrd_file_t pointer instead of an integer to increase encapsulation. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1405 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc7 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1388 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc6 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1380 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc5 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1375 a5681a0c-68f1-0310-ab6d-d61299d08faa
prepare for the release of rrdtool-1.3rc4 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1366 a5681a0c-68f1-0310-ab6d-d61299d08faa