From: Florian Forster <octo@leeloo.lan.home.verplant.org>
This patch introduces per-socket, per-command permissions to the RRD
caching daemon, RRDCacheD. This allows administrators to limit access to
the daemon in a fine-grained manner.
The patch removes the command line option `-L' and introduces `-P'
instead. The option must appear *before* the `-l' option and the given
permissions are set for all following sockets or another `-P' option.
For example:
rrdcached -P FLUSH,PENDING -l 10.2.3.4 -P UPDATE -l unix:/some/path
Allow `FLUSH' and `PENDING' commands to clients connected via IPv4
networking and `UPDATE' to clients connected via a UNIX domain socket
only.
There are a couple of exceptions:
- The commands `HELP' and `QUIT' are always allowed.
- If the command `BATCH' is allowed, the command `.' is automatically
allowed, too.
By default, i. e. if no `-P' option is specified, all commands will be
allowed. As a shortcut to reset the behavior to the default behavior,
you can use the slightly hackish `-P ""' syntax.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1892 a5681a0c-68f1-0310-ab6d-d61299d08faa
This patch introduces per-socket, per-command permissions to the RRD
caching daemon, RRDCacheD. This allows administrators to limit access to
the daemon in a fine-grained manner.
The patch removes the command line option `-L' and introduces `-P'
instead. The option must appear *before* the `-l' option and the given
permissions are set for all following sockets or another `-P' option.
For example:
rrdcached -P FLUSH,PENDING -l 10.2.3.4 -P UPDATE -l unix:/some/path
Allow `FLUSH' and `PENDING' commands to clients connected via IPv4
networking and `UPDATE' to clients connected via a UNIX domain socket
only.
There are a couple of exceptions:
- The commands `HELP' and `QUIT' are always allowed.
- If the command `BATCH' is allowed, the command `.' is automatically
allowed, too.
By default, i. e. if no `-P' option is specified, all commands will be
allowed. As a shortcut to reset the behavior to the default behavior,
you can use the slightly hackish `-P ""' syntax.
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1892 a5681a0c-68f1-0310-ab6d-d61299d08faa
with my Debian Testing box I had to apply the following small changes to
the `configure.ac' file in order to make `autoconf' happy. Don't know
what the problem precisely is ? m4 and its square parenthesis is too
high for me ;) -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1891 a5681a0c-68f1-0310-ab6d-d61299d08faa
the `configure.ac' file in order to make `autoconf' happy. Don't know
what the problem precisely is ? m4 and its square parenthesis is too
high for me ;) -- Florian
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1891 a5681a0c-68f1-0310-ab6d-d61299d08faa
there is no config directory ... so lets not search for it in autogen.sh
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1890 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1890 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix freeing order when generating error messages. found by Dmitry V. Krivenok
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1889 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1889 a5681a0c-68f1-0310-ab6d-d61299d08faa
include math.h when testing IEEE
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1887 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1887 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove extra \ in perl example
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1886 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1886 a5681a0c-68f1-0310-ab6d-d61299d08faa
The journal files are time-stamped and replayed in order. This allows
systems with 32-bit signed off_t to write more than 2GB of journal entries
per flush interval. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1885 a5681a0c-68f1-0310-ab6d-d61299d08faa
systems with 32-bit signed off_t to write more than 2GB of journal entries
per flush interval. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1885 a5681a0c-68f1-0310-ab6d-d61299d08faa
add some shell proggramming advice ... Bernhard Reutner-Fischer
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1884 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1884 a5681a0c-68f1-0310-ab6d-d61299d08faa
Remove PID file later in the cleanup process --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1883 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1883 a5681a0c-68f1-0310-ab6d-d61299d08faa
Increment the DataSetsWritten counter before freeing the RRD values. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1882 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1882 a5681a0c-68f1-0310-ab6d-d61299d08faa
The current method may have caused flushes (and journal rotations) more
often than necessary. The problem was introduced in r1600. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1881 a5681a0c-68f1-0310-ab6d-d61299d08faa
often than necessary. The problem was introduced in r1600. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1881 a5681a0c-68f1-0310-ab6d-d61299d08faa
Two-phase shutdown for rrdcached ensures that values are flushed.
Previously, it was possible for the queue threads to exit before the flush
thread completed queueing values. If running with -F, rrdcached may have
crashed due to assertion failure before writing all values. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1880 a5681a0c-68f1-0310-ab6d-d61299d08faa
Previously, it was possible for the queue threads to exit before the flush
thread completed queueing values. If running with -F, rrdcached may have
crashed due to assertion failure before writing all values. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1880 a5681a0c-68f1-0310-ab6d-d61299d08faa
include PACKAGE_VERSION as version number for python module to fix #236
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1879 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1879 a5681a0c-68f1-0310-ab6d-d61299d08faa
in rrd > 1.3 it's called rrd_info_push ... and not just info_push ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1878 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1878 a5681a0c-68f1-0310-ab6d-d61299d08faa
Show the index of each data source in the rrd_info output. Patch for #231 provided by Glenn Herteg, GroundWork Open Source, Inc.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1877 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1877 a5681a0c-68f1-0310-ab6d-d61299d08faa
new news
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1876 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1876 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrd_tune HW Update
Allow to set the smoothing window (alpha, beta, gamma) to zero.
I'm using rrdtool 1.3.8 with abberant behavior detection from the Brutlag
method. I need to use a week seasonality and no smoothing for the SEASONAL
and DEVSEASONAL. So I use rrdtune in order to set the smoothing window to
0.0. This calls the set_hwarg(). But this method is also used to tune the
alpha, beta and gamma that can't be set to 0.0 So when I tune my smoothing
window size to 0.0, it returns -1 due to the if(window<=0.0) then do
nothing. I join here a small correction with a differnent method used to set
only the smoothing window size and allowing it to be zero.
-- sylvain.luiset gmail.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1875 a5681a0c-68f1-0310-ab6d-d61299d08faa
Allow to set the smoothing window (alpha, beta, gamma) to zero.
I'm using rrdtool 1.3.8 with abberant behavior detection from the Brutlag
method. I need to use a week seasonality and no smoothing for the SEASONAL
and DEVSEASONAL. So I use rrdtune in order to set the smoothing window to
0.0. This calls the set_hwarg(). But this method is also used to tune the
alpha, beta and gamma that can't be set to 0.0 So when I tune my smoothing
window size to 0.0, it returns -1 due to the if(window<=0.0) then do
nothing. I join here a small correction with a differnent method used to set
only the smoothing window size and allowing it to be zero.
-- sylvain.luiset gmail.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1875 a5681a0c-68f1-0310-ab6d-d61299d08faa
update conditional silent-rules
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1874 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1874 a5681a0c-68f1-0310-ab6d-d61299d08faa
Handle race condition for "UPDATE" with new files. Problem found by Sebastian Harl. Patch by Kevin.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1872 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1872 a5681a0c-68f1-0310-ab6d-d61299d08faa
Do not trust cache tree pointers after releasing the cache lock.
It's possible that a "FORGET" was issued in the mean time. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1871 a5681a0c-68f1-0310-ab6d-d61299d08faa
It's possible that a "FORGET" was issued in the mean time. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1871 a5681a0c-68f1-0310-ab6d-d61299d08faa
destroy flush condition variable
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1870 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1870 a5681a0c-68f1-0310-ab6d-d61299d08faa
Move <libgen.h> include so we know whether we HAVE_LIBGEN_H -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1869 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1869 a5681a0c-68f1-0310-ab6d-d61299d08faa
Silence automake portability warnings caused by multiple inference rules. -- kevin brintnall
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1868 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1868 a5681a0c-68f1-0310-ab6d-d61299d08faa
check for the size of time_t and behave accordingly
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1866 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1866 a5681a0c-68f1-0310-ab6d-d61299d08faa
be more careful when converting to string to time_t ... test if time_t is long long
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1863 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1863 a5681a0c-68f1-0310-ab6d-d61299d08faa
add the real license ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1860 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1860 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix bad pdf links
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1859 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1859 a5681a0c-68f1-0310-ab6d-d61299d08faa
added compat 5.1 license copied from website
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1858 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1858 a5681a0c-68f1-0310-ab6d-d61299d08faa
make config.h a symlink to rrd_config.h so that intl/Makefile is happy
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1857 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1857 a5681a0c-68f1-0310-ab6d-d61299d08faa
Relax automake requirements and make 1.11 features optional -- kevin brintnall
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1856 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1856 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix some missing rrd_flushcached instances -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1855 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1855 a5681a0c-68f1-0310-ab6d-d61299d08faa
switch to the rrd_flushcached interface
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1854 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1854 a5681a0c-68f1-0310-ab6d-d61299d08faa
consider fgets return value
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1853 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1853 a5681a0c-68f1-0310-ab6d-d61299d08faa
do not try to mess with autopoints files
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1852 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1852 a5681a0c-68f1-0310-ab6d-d61299d08faa
check return value from write
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1851 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1851 a5681a0c-68f1-0310-ab6d-d61299d08faa
check return values of dup and ftruncate
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1850 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1850 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix some warnings
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1849 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1849 a5681a0c-68f1-0310-ab6d-d61299d08faa
added a copy to svn since it is changed from the original
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1848 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1848 a5681a0c-68f1-0310-ab6d-d61299d08faa
changed from original version, so include it ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1847 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1847 a5681a0c-68f1-0310-ab6d-d61299d08faa
include libtool with the distro
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1846 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1846 a5681a0c-68f1-0310-ab6d-d61299d08faa
another ID tag
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1845 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1845 a5681a0c-68f1-0310-ab6d-d61299d08faa
more id tags added
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1844 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1844 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated for release
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1843 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1843 a5681a0c-68f1-0310-ab6d-d61299d08faa
updated for release
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1842 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1842 a5681a0c-68f1-0310-ab6d-d61299d08faa
added $Id:$
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1841 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1841 a5681a0c-68f1-0310-ab6d-d61299d08faa
initial news
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1840 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1840 a5681a0c-68f1-0310-ab6d-d61299d08faa
Mention that negative time values should be separated by '--' in rrdupdate.pod -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1839 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1839 a5681a0c-68f1-0310-ab6d-d61299d08faa
15 years agoMake rrdtool compile on GNU/kFreeBSD. Fix for Debian bug 494874. Patch by Petr Salinger.
Make rrdtool compile on GNU/kFreeBSD. Fix for Debian bug 494874. Patch by Petr Salinger.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1837 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1837 a5681a0c-68f1-0310-ab6d-d61299d08faa
make negative update times work as diescribed in the documentation (-5 is NOW-5seconds)
this takes care of debian bug 332766
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1836 a5681a0c-68f1-0310-ab6d-d61299d08faa
this takes care of debian bug 332766
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1836 a5681a0c-68f1-0310-ab6d-d61299d08faa
madvise hints may not be ORed since they are enumerated ... #224
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1834 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1834 a5681a0c-68f1-0310-ab6d-d61299d08faa
back to 0.14.4
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1833 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1833 a5681a0c-68f1-0310-ab6d-d61299d08faa
get the latest gettext
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1830 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1830 a5681a0c-68f1-0310-ab6d-d61299d08faa
added gettext.h to dist
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1826 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1826 a5681a0c-68f1-0310-ab6d-d61299d08faa
added missing gettext.h
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1825 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1825 a5681a0c-68f1-0310-ab6d-d61299d08faa
we don't have any translations ... so do not pretend
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1824 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1824 a5681a0c-68f1-0310-ab6d-d61299d08faa
reduce gettext version requirements
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1823 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1823 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix path
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1820 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1820 a5681a0c-68f1-0310-ab6d-d61299d08faa
the get ready for 1.4rc patch
* updated to automake 1.11 with silet build, with this warnings stand out much better in the build process.
use make V=1 to see all as before
* switched from intltoolize to autopoint for gettext support
* moved m4 bits into their own subdirectory
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1819 a5681a0c-68f1-0310-ab6d-d61299d08faa
* updated to automake 1.11 with silet build, with this warnings stand out much better in the build process.
use make V=1 to see all as before
* switched from intltoolize to autopoint for gettext support
* moved m4 bits into their own subdirectory
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1819 a5681a0c-68f1-0310-ab6d-d61299d08faa
Only include libgen.h when we have it. use pbbasename if we do not. Also fixes #223.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1818 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1818 a5681a0c-68f1-0310-ab6d-d61299d08faa
update flush to flushcached
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1817 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1817 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings should invoke new rrd_flushcached (instead of rrd_cmd_flush) -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1816 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1816 a5681a0c-68f1-0310-ab6d-d61299d08faa
"ulong" is not portable. must be unsigned long -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1815 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1815 a5681a0c-68f1-0310-ab6d-d61299d08faa
update flush document name
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1814 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1814 a5681a0c-68f1-0310-ab6d-d61299d08faa
rename rrd_flush.c to rrd_flushcached.c in Makefile.am
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1813 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1813 a5681a0c-68f1-0310-ab6d-d61299d08faa
resolve the "flush inconsistency":
* rrd_flush (a leftover from when rrdtool was using stream based io) is turned into a no-op
but still exported to preserve library compatibility.
* rrd_cmd_flush (the implementation of "rrdtool flush") is renamed to rrd_flushcached
along with its command line invocation which is now rrdtool flushcached
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1812 a5681a0c-68f1-0310-ab6d-d61299d08faa
* rrd_flush (a leftover from when rrdtool was using stream based io) is turned into a no-op
but still exported to preserve library compatibility.
* rrd_cmd_flush (the implementation of "rrdtool flush") is renamed to rrd_flushcached
along with its command line invocation which is now rrdtool flushcached
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1812 a5681a0c-68f1-0310-ab6d-d61299d08faa
While restoring, rrd_restore uses between 30 and 40 times as much memory as
the size of the rrd file to be restored. This is due to the use of libxml2
for parsing the the whole file prior to turning it into rrd structs.
This patch switches rrd_restore to using the xmlTextReader interface for
incremental consumtion of xml files. This reduces the memory requirements to
about twice the size of the rrd file which should be quite manageable for
most cases.
The parsing is about 25% less efficient than with the original libxml2
version of rrd_restore. This could be in part due to the more liberal use of
malloced memory. Optimizing this is for another day though.
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1811 a5681a0c-68f1-0310-ab6d-d61299d08faa
the size of the rrd file to be restored. This is due to the use of libxml2
for parsing the the whole file prior to turning it into rrd structs.
This patch switches rrd_restore to using the xmlTextReader interface for
incremental consumtion of xml files. This reduces the memory requirements to
about twice the size of the rrd file which should be quite manageable for
most cases.
The parsing is about 25% less efficient than with the original libxml2
version of rrd_restore. This could be in part due to the more liberal use of
malloced memory. Optimizing this is for another day though.
--tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1811 a5681a0c-68f1-0310-ab6d-d61299d08faa
only include utime.h when necessary
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1809 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1809 a5681a0c-68f1-0310-ab6d-d61299d08faa
* in 1.3: Changed types used in rrd_file_t from off_t to size_t to prevent: warning: comparison between signed and unsigned
* Misc other off_t -> size_t changes to prevent signed warning
* in 1.3: Added rrd_dump_opt_r declaration to prevent undef warning
* Explicit cast to time_t of check in rrd_fetch to prevent signed warning
* Added vasprintf path to sprintf_alloc to prevent excessive mallocing
* in 1.3: fixed STRERROR_R_CHAR_P undef warning
patch by Steven Hartland killing multiplay.co.uk
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1808 a5681a0c-68f1-0310-ab6d-d61299d08faa
* Misc other off_t -> size_t changes to prevent signed warning
* in 1.3: Added rrd_dump_opt_r declaration to prevent undef warning
* Explicit cast to time_t of check in rrd_fetch to prevent signed warning
* Added vasprintf path to sprintf_alloc to prevent excessive mallocing
* in 1.3: fixed STRERROR_R_CHAR_P undef warning
patch by Steven Hartland killing multiplay.co.uk
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1808 a5681a0c-68f1-0310-ab6d-d61299d08faa
reset errno right befor the call I want to test
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1806 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1806 a5681a0c-68f1-0310-ab6d-d61299d08faa
inline is something for the compiler to figure ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1805 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1805 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix error messages on the road to fix #222
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1804 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1804 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix text organisation
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1803 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1803 a5681a0c-68f1-0310-ab6d-d61299d08faa
integrated fix for debian bug #529291 as supplied by Anders Hammarquist
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1800 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1800 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix rrd_getops use of external variables (optarg and friends) ... most
prominently is kills a segfault when using rrdtool perl bindings on
solaris ... thanks to Ihsan Dogan for helping with tracking this down and providing
access to sparc solaris boxes.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1799 a5681a0c-68f1-0310-ab6d-d61299d08faa
prominently is kills a segfault when using rrdtool perl bindings on
solaris ... thanks to Ihsan Dogan for helping with tracking this down and providing
access to sparc solaris boxes.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1799 a5681a0c-68f1-0310-ab6d-d61299d08faa
added some remarks on CDEF versus VDEF to the docs -- Pablo Sanchez
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1797 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1797 a5681a0c-68f1-0310-ab6d-d61299d08faa
This patch includes utility functions to support dynamically sized arrays.
This simplifies the code that manages some of the dynamic structures
inside rrdcached.
A few data types have been changed to size_t.
-- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1796 a5681a0c-68f1-0310-ab6d-d61299d08faa
This simplifies the code that manages some of the dynamic structures
inside rrdcached.
A few data types have been changed to size_t.
-- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1796 a5681a0c-68f1-0310-ab6d-d61299d08faa
introduced header_property in info output -- Daniel.Pocock barclayscapital.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1795 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1795 a5681a0c-68f1-0310-ab6d-d61299d08faa
add documentation for graph-render-mode
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1794 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1794 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix comments and error messages in rrd_restore patch
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1793 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1793 a5681a0c-68f1-0310-ab6d-d61299d08faa
Fix casting issues in rrd_restore. The bug manifested when compiled on sparc v9 as explained in #218.
Patch based in input provided by poster of #218.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1792 a5681a0c-68f1-0310-ab6d-d61299d08faa
Patch based in input provided by poster of #218.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1792 a5681a0c-68f1-0310-ab6d-d61299d08faa
make ruby bindings compile with newer ruby versions ... fix for #217
patch provided by rrd trac user.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1791 a5681a0c-68f1-0310-ab6d-d61299d08faa
patch provided by rrd trac user.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1791 a5681a0c-68f1-0310-ab6d-d61299d08faa
Generate an error message when using RRDp with graph - this can not work reliably. (Debian Bug#251701) -- Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1790 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1790 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrd_random() is a wrapper around random() that ensures the PRNG is seeded
exactly ONCE per process.
rrd_utils.c is introduced for functions that do not have a better home. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1789 a5681a0c-68f1-0310-ab6d-d61299d08faa
exactly ONCE per process.
rrd_utils.c is introduced for functions that do not have a better home. --kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1789 a5681a0c-68f1-0310-ab6d-d61299d08faa
This patch consolidates several aspects of the command handling in
rrdcached:
* all commands, help, and context information is reduced to a single data
structure.
* all checks for command validity (context and permission) are handled in
the main dispatch routine
This removes duplicate help/syntax text, and long if..elseif..else chains.
It facilitates the addition of new commands. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1788 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached:
* all commands, help, and context information is reduced to a single data
structure.
* all checks for command validity (context and permission) are handled in
the main dispatch routine
This removes duplicate help/syntax text, and long if..elseif..else chains.
It facilitates the addition of new commands. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1788 a5681a0c-68f1-0310-ab6d-d61299d08faa
The bookkeeping of all threads is not necessary, since we cannot pthread_join() them anyway. We only need to know when the last one has exited. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1787 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1787 a5681a0c-68f1-0310-ab6d-d61299d08faa
added missing docs -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1786 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1786 a5681a0c-68f1-0310-ab6d-d61299d08faa
added missing newline -- by sebastian harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1785 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1785 a5681a0c-68f1-0310-ab6d-d61299d08faa
make sure an empty m4 is in the checkout
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1778 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1778 a5681a0c-68f1-0310-ab6d-d61299d08faa
fix for #213 restore old behaviour of --lazy. Even in lazy mode all the data
calculation elements are run. The main time saving comes from the fact that
the graph is not being drawn and the image does not have to be compressed.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1773 a5681a0c-68f1-0310-ab6d-d61299d08faa
calculation elements are run. The main time saving comes from the fact that
the graph is not being drawn and the image does not have to be compressed.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1773 a5681a0c-68f1-0310-ab6d-d61299d08faa
make sure rrd_dump outputs numbers with C locale so that . does not suddenly become , this fixes #212
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1772 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1772 a5681a0c-68f1-0310-ab6d-d61299d08faa
I thought that it would be nice to be able to pass
parameters to python bindings as a list (array) of strings. -- Vytautas Zdanavicius vytaszd at yahoo.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1771 a5681a0c-68f1-0310-ab6d-d61299d08faa
parameters to python bindings as a list (array) of strings. -- Vytautas Zdanavicius vytaszd at yahoo.com
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1771 a5681a0c-68f1-0310-ab6d-d61299d08faa
use %lld with (long long) conversion when printing time.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1770 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1770 a5681a0c-68f1-0310-ab6d-d61299d08faa
printf for time_t with %lli can easily cause a segfault since on many platforms
time_t is only 32bit ... by adding (long long) to the time value this gets fixed.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1769 a5681a0c-68f1-0310-ab6d-d61299d08faa
time_t is only 32bit ... by adding (long long) to the time value this gets fixed.
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1769 a5681a0c-68f1-0310-ab6d-d61299d08faa
lets have an error message when creating the graph fails
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1768 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1768 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove excess flush calls ...
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1764 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1764 a5681a0c-68f1-0310-ab6d-d61299d08faa
remove flush symbol
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1762 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1762 a5681a0c-68f1-0310-ab6d-d61299d08faa
the call to rrd_flush has appeared when rrd_open was fleshed out. It used to be an fflush call
which is something entirely different than the current rrd_flush implementation with fdatasync was ...
we can safely drop this and gain performance for holt winters in the process ... -- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1760 a5681a0c-68f1-0310-ab6d-d61299d08faa
which is something entirely different than the current rrd_flush implementation with fdatasync was ...
we can safely drop this and gain performance for holt winters in the process ... -- tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1760 a5681a0c-68f1-0310-ab6d-d61299d08faa
New rrd_graph functions for legend placement control added -- Patch by Melchior Rabe rrdtool mrab.de
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1759 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1759 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrd_flush.c: Provide a more useful error message.
by Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1758 a5681a0c-68f1-0310-ab6d-d61299d08faa
by Sebastian Harl
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1758 a5681a0c-68f1-0310-ab6d-d61299d08faa
Renaming ntmake.pl to ntmake.PL (r1742) had unforseen side effects. At least
on freebsd ntmake.PL gets called automatically during build. This is not
desired. I renamed the file to ntmake-build sinc it gets called
explicilty on windows anyway. Reported by Kevin modified by Tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1757 a5681a0c-68f1-0310-ab6d-d61299d08faa
on freebsd ntmake.PL gets called automatically during build. This is not
desired. I renamed the file to ntmake-build sinc it gets called
explicilty on windows anyway. Reported by Kevin modified by Tobi
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1757 a5681a0c-68f1-0310-ab6d-d61299d08faa