Tobias Oetiker | 1 May 2008 09:01
Picon
Gravatar

Re: rrdtool 1.3 is drawing near (last feature is in)

Hi Mark,

If you have libintl installed, all should be well. My guess is that
the change to the MakeMakefile that switched to using 'make clean'
to clean out old settings was not all that it was hyped to be.

I have modified the beast back to using good old fashioned 'rm'.
Maybe now it will work for you to.

In any event, if you do not want to run MakeMaker, there is always
a ready to compile copy on

http://oss.oetiker.ch/rrdtool/pub/beta/rrdtool-trunk-svn-snap.tar.gz

This is not only a snapshot, it also contains a ready to run,
freshly built copy of configure (which should work even if you do
NOT have libintl installed at all).

 <at> OTHERS on the list, anyone tested the new graph_v function ? do
you like it ?

cheers
tobi

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902
Tobias Oetiker | 1 May 2008 09:09
Picon
Gravatar

Re: rrdtool 1.3 is drawing near (last feature is in)

Hi Mark,

sorry ... I am lost what is image-only ? I can not find that option
in rrdtool ? Do you mean only-graph ? With the new interface you
always get all the meta information, and the old interface shoud
stay exactly as it was in 1.2 so that old applications will not
break ... please enlighten me.

cheers
tobi

Yesterday Mark Plaksin wrote:

> Tobias Oetiker <tobi <at> oetiker.ch> writes:
>
> > Developers,
> >
> > Over the last few days I have integrated a heavily modified version
> > of Mark Plaksins patch into RRDtool 1.3dev. The result is a new
> > interface to the RRDtool graph function called 'graphv' or when
> > calling from C 'rrd_graph_v'. The new interface returns a lot of
> > meta-data about the graph in rrd_info style. This even includes the
> > graph itself when called with '' or '-' as the name of the graph.
>
> It looks good!
>
> Would you make --image-only print the image_height and image_width?  It
> turns out that our app (which we'll post if people ever stop quitting
> their jobs :) can survive without it but that's just luck.  Had we
> wanted/needed to write it a different way we would have needed the
(Continue reading)

Mark Plaksin | 1 May 2008 19:27
Favicon

Re: rrdtool 1.3 is drawing near (last feature is in)

Tobias Oetiker <tobi <at> oetiker.ch> writes:

> Hi Mark,
>
> sorry ... I am lost what is image-only ? I can not find that option
> in rrdtool ? Do you mean only-graph ? With the new interface you
> always get all the meta information, and the old interface shoud
> stay exactly as it was in 1.2 so that old applications will not
> break ... please enlighten me.

Sorry.  Mindo!  I meant --only-graph.

For us this command:
/usr/local/happy/bin/rrdtool graphv ./graphs/happy-0-overlay.png --only-graph -h 100 -w 1200
--lower 0.0000000000e+00 --upper 9.9000000000e+01 -i -W 'Yakety Stats' -E --font
DEFAULT:8:/usr/share/fonts/bitstream-vera/Vera.ttf -s 1208889908 -e 1209926708 --rigid
--only-graph --rigid -i -W 'Yakety Stats' -E --font
DEFAULT:8:/usr/share/fonts/bitstream-vera/Vera.ttf -s 1208889908 -e 1209926708 --rigid -t
'aardvark.example.com/cpu' -v '' --color CANVAS#FFFFFF
DEF:WUB0=/rrd/aardvark.example.com/cpu/idle.rrd:yabba:MAX
DEF:WUB1=/rrd/aardvark.example.com/cpu/iowait.rrd:yabba:MAX
DEF:WUB2=/rrd/aardvark.example.com/cpu/sys.rrd:yabba:MAX
DEF:WUB3=/rrd/aardvark.example.com/cpu/user.rrd:yabba:MAX LINE1:WUB0#74C366:'aardvark cpu
idle' 'COMMENT:\n' VDEF:AVG0=WUB0,AVERAGE 'GPRINT:AVG0:\tAv%9.2lf%s' VDEF:MIN
 0=WUB0,MINIMUM 'GPRINT:MIN0:Min%9.2lf%s' VDEF:MAX0=WUB0,MAXIMUM 'GPRINT:MAX0:Max\:%9.2lf%s\n'
LINE1:WUB1#6DC8FE:'aardvark cpu iowait' 'COMMENT:\n' VDEF:AVG1=WUB1,AVERAGE 'GPRINT:AVG1:\tAv%9.
 2lf%s' VDEF:MIN1=WUB1,MINIMUM 'GPRINT:MIN1:Min%9.2lf%s' VDEF:MAX1=WUB1,MAXIMUM
'GPRINT:MAX1:Max\:%9.2lf%s\n' LINE1:WUB2#EA8F00:'aardvark cpu sys' 'COMMENT:\n'
VDEF:AVG2=WUB2,AVERAGE 'GPRINT:AVG2:\tAv%9.2lf%s' VDEF:MIN2=WUB2,MINIMUM
'GPRINT:MIN2:Min%9.2lf%s' VDEF:MAX2=WUB2,MAXIMUM 'GPRINT:MAX2:Max\:%9.2lf%s\n'
(Continue reading)

Tobias Oetiker | 1 May 2008 21:39
Picon
Gravatar

Re: rrdtool 1.3 is drawing near (last feature is in)

Hi Mark,

>
> For us this command:
> [..]
>
> returns only this:
> value_min = 0.0000000000e+00
> value_max = 9.9000000000e+01
>

hmm this is not as it should be. You should always get ALL the
values ... will look into this ...

cheers
tobi

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902
Mark Plaksin | 2 May 2008 01:48
Favicon

Re: rrdtool 1.3 is drawing near (last feature is in)

Tobias Oetiker <tobi <at> oetiker.ch> writes:

> Hi Mark,
>
> If you have libintl installed, all should be well. My guess is that
> the change to the MakeMakefile that switched to using 'make clean'
> to clean out old settings was not all that it was hyped to be.
>
> I have modified the beast back to using good old fashioned 'rm'.
> Maybe now it will work for you to.

It may not be worth debugging but FYI I now I get this on Debian
unstable:
checking for intltool >= 0.35.0... awk: cmd. line:1: fatal: cannot open file `./intltool-update.in' for
reading (No such file
 or directory)                                                                                                              
awk: cmd. line:1: fatal: cannot open file `./intltool-update.in' for reading (No such file or directory)
 found
./configure: line 3812: test: : integer expression expected
configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.
make: *** [config.status] Error 1

FWIW the file does exist: /usr/share/intltool/intltool-update.in

> In any event, if you do not want to run MakeMaker, there is always
> a ready to compile copy on
>
> http://oss.oetiker.ch/rrdtool/pub/beta/rrdtool-trunk-svn-snap.tar.gz

Thanks!
(Continue reading)

Tobias Oetiker | 2 May 2008 07:17
Picon
Gravatar

Re: rrdtool 1.3 is drawing near (last feature is in)

Hi Mark,

the problem is fixed in svn ...

cheers
tobi

Yesterday Mark Plaksin wrote:

> Tobias Oetiker <tobi <at> oetiker.ch> writes:
>
> > Hi Mark,
> >
> > sorry ... I am lost what is image-only ? I can not find that option
> > in rrdtool ? Do you mean only-graph ? With the new interface you
> > always get all the meta information, and the old interface shoud
> > stay exactly as it was in 1.2 so that old applications will not
> > break ... please enlighten me.
>
> Sorry.  Mindo!  I meant --only-graph.
>
> For us this command:
> /usr/local/happy/bin/rrdtool graphv ./graphs/happy-0-overlay.png --only-graph -h 100 -w 1200
--lower 0.0000000000e+00 --upper 9.9000000000e+01 -i -W 'Yakety Stats' -E --font
DEFAULT:8:/usr/share/fonts/bitstream-vera/Vera.ttf -s 1208889908 -e 1209926708 --rigid
--only-graph --rigid -i -W 'Yakety Stats' -E --font
DEFAULT:8:/usr/share/fonts/bitstream-vera/Vera.ttf -s 1208889908 -e 1209926708 --rigid -t
'aardvark.example.com/cpu' -v '' --color CANVAS#FFFFFF
DEF:WUB0=/rrd/aardvark.example.com/cpu/idle.rrd:yabba:MAX
DEF:WUB1=/rrd/aardvark.example.com/cpu/iowait.rrd:yabba:MAX
(Continue reading)

Mark Plaksin | 2 May 2008 14:41
Favicon

Re: rrdtool 1.3 is drawing near (last feature is in)

Tobias Oetiker <tobi <at> oetiker.ch> writes:

> Hi Mark,
>
> the problem is fixed in svn ...

Awesome!  Works for me :)

Thanks!
Bigunyak Dmitry | 9 May 2008 13:41
Picon

new features in RRDtool: add/delete DSs and RRAs in existing RRD base

Hello!

I have tried to find solution how to add/remove data sources or RRA in  
existing RRD base in mailing list archive and saw many questions on this  
theme. With respect to data sources some peoples suggest to use script  
founded in the contrib directory as solution. This script works in next  
sequence: dumps RRD base in XML-file, then edits this file and finely  
restores new RRD base from it. I use this solution too, but I can?t say  
that this is a good approach, first of all because of its low performance.  
In my opinion RRDtool needs to have its internal mechanism to solve this  
issue. But I havn?t found anything similar in plans for RRDtool 1.4. Why?  
Maybe you think that such mechanism in RRDtool this is not a good idea, or  
not useful feature? All the same about working with RRA. I think this  
features will make RRDtool much more flexible. What do say about this?

--

-- 
Dima: Nosce te ipsum
e-mail: icestar <at> inbox.ru
Alex van den Bogaerdt | 9 May 2008 16:28

Re: new features in RRDtool: add/delete DSs and RRAs in existing RRD base

On Fri, May 09, 2008 at 03:41:59PM +0400, Bigunyak Dmitry wrote:
> Hello!
> 
> I have tried to find solution how to add/remove data sources or RRA in  
> existing RRD base in mailing list archive and saw many questions on this  
> theme. With respect to data sources some peoples suggest to use script  
> founded in the contrib directory as solution. This script works in next  
> sequence: dumps RRD base in XML-file, then edits this file and finely  
> restores new RRD base from it. I use this solution too, but I can?t say  
> that this is a good approach, first of all because of its low performance.  

If you're going to use the script only once, performance is not really
an issue in most cases.

If you need to use such a feature many times, chances are something's
wrong in other places, such as research&development, when designing
the database.

> In my opinion RRDtool needs to have its internal mechanism to solve this  
> issue. But I havn?t found anything similar in plans for RRDtool 1.4. Why?  

I can only guess: because you can create another database with the
same RRAs and such, containing the new DS.

--

-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
Tobias Oetiker | 9 May 2008 19:25
Picon
Gravatar

Re: new features in RRDtool: add/delete DSs and RRAs in existing RRD base

Hi Bigunyak,

the 'problem' is that the on-disk data format of rrdtool does not
lend it sels to adding and removing data sources ... all that can
be done sensibly is to reqrite the file in its new structure ...

if you are planning to work on something like this, you are most
welcome ...

another thing people often ask is to changeing the step size of an
archive ... it would be an interesting task to write a rrdtool
re-sampling mechanism which is able to alter the step size of an
existing archive while keeping the data as intact as possible ...

cheers
tobi

Today Bigunyak Dmitry wrote:

> Hello!
>
> I have tried to find solution how to add/remove data sources or RRA in
> existing RRD base in mailing list archive and saw many questions on this
> theme. With respect to data sources some peoples suggest to use script
> founded in the contrib directory as solution. This script works in next
> sequence: dumps RRD base in XML-file, then edits this file and finely
> restores new RRD base from it. I use this solution too, but I can?t say
> that this is a good approach, first of all because of its low performance.
> In my opinion RRDtool needs to have its internal mechanism to solve this
> issue. But I havn?t found anything similar in plans for RRDtool 1.4. Why?
(Continue reading)


Gmane