rrdtool 1.3 is drawing near (last feature is in)

View: New views
13 Messages — Rating Filter:   Alert me  

rrdtool 1.3 is drawing near (last feature is in)

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

The new call is supported on the RRDtool command line, Perl and ruby
bindings. Unfortunately I am not very familiar with writing python
bindings, so this is left as an exercise to an avid python hacker
(the current python bindings do NOT include proper rrd_info
bindings, but rather an independent reimplementation of the same
functionality).

The meta information returned contains additional information about
the graph. Most notably the location of the actual graph inside the
image.

Thanks Mark for getting me started on this!

With this addition I am down to fixing some bugs mentioned on the
rrd traq but we should go rc pretty soon.

cheers
tobi

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi@... ++41 62 213 9902

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Oetiker <tobi@...> writes:

> 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.

Does anybody have a quick fix for me?  On RHEL5 (and Debian unstable) I
get this error when I run "make":

cd . && /bin/sh /home/happy/rrdtool-trunk/missing --run aclocal-1.9
 cd . && /bin/sh /home/happy/rrdtool-trunk/missing --run automake-1.9 --foreign
cd . && /bin/sh /home/happy/rrdtool-trunk/missing --run autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure  --prefix=/usr/local/happy  --no-create --no-rec
ursion                                                                                          
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 2118: syntax error near unexpected token `0.35.0,no-xml'
./configure: line 2118: `IT_PROG_INTLTOOL(0.35.0,no-xml)'
make: *** [config.status] Error 2

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Florian Forster-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mark,

On Wed, Apr 30, 2008 at 11:42:59AM -0400, Mark Plaksin wrote:
> Does anybody have a quick fix for me?  On RHEL5 (and Debian unstable)
> I get this error when I run "make":

> ./configure: line 2118: `IT_PROG_INTLTOOL(0.35.0,no-xml)'

yes, most likely you're missing `intltool'. Under Debian the required
stuff is in the `intltool' package. After installing it, run
`MakeMakefile' and then `configure' again.

I tripped over the same problem - twice. That's why I changed a check
for intltool to the MakeMakefile script - it was added to the SVN
repository with revision 1313.

Regards,
-octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/


_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (196 bytes) Download Attachment

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florian Forster <rrdtool@...> writes:

> Hi Mark,
>
> On Wed, Apr 30, 2008 at 11:42:59AM -0400, Mark Plaksin wrote:
>> Does anybody have a quick fix for me?  On RHEL5 (and Debian unstable)
>> I get this error when I run "make":
>
>> ./configure: line 2118: `IT_PROG_INTLTOOL(0.35.0,no-xml)'
>
> yes, most likely you're missing `intltool'. Under Debian the required
> stuff is in the `intltool' package. After installing it, run
> `MakeMakefile' and then `configure' again.

I already had intltool on the Debian box.  I installed it on the RHEL5
box and ran MakeMakefile but I still get:

kage_3:~/rrdtool-trunk $ ./MakeMakefile
libtool --version = 1.5.22  (expecting 1.5.14 or later)
automake  --version = 1.9.6  (expecting 1.9.5 or later)
autoconf --version = 2.59  (expecting 2.59 or later)
intltoolize --version = 0.35.0  (expecting 0.35.0 or later)
./configure: line 2118: syntax error near unexpected token `0.35.0,no-xml'
./configure: line 2118: `IT_PROG_INTLTOOL(0.35.0,no-xml)'
make: *** [config.status] Error 2

I'm using revision 1332 of the repo which is the latest unless I'm
missing something.

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mark Plaksin <happy@...> writes:

>> yes, most likely you're missing `intltool'. Under Debian the required
>> stuff is in the `intltool' package. After installing it, run
>> `MakeMakefile' and then `configure' again.
>
> I already had intltool on the Debian box.  I installed it on the RHEL5
> box and ran MakeMakefile but I still get:

Goodness.  I swear I already checked for libxml2-devel on the RHEL box
but obviously not.  I installed it and all is well.

I still don't understand the problem w/ Debian but it *is* unstable :)

Sorry for the noise!

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Oetiker <tobi@...> 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
height and width with --image-only.

Thanks!

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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).

@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@... ++41 62 213 9902

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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
> height and width with --image-only.
>
> Thanks!
>
> _______________________________________________
> rrd-developers mailing list
> rrd-developers@...
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
>
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi@... ++41 62 213 9902

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Oetiker <tobi@...> 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:MIN0=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' LINE1:WUB3#FF0000:'aardvark cpu user' 'COMMENT:\n' VDEF:AVG3=WUB3,AVERAGE 'GPRINT:AVG3:\tAv%9.2lf%s' VDEF:MIN3=WUB3,MINIMUM 'GPRINT:MIN3:Min%9.2lf%s' VDEF:MAX3=WUB3,MAXIMUM 'GPRINT:MAX3:Max\:%9.2lf%s\n'

returns only this:
value_min = 0.0000000000e+00
value_max = 9.9000000000e+01

I can try to find a smaller example command but I probably won't be able
to do it until next week.

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... ++41 62 213 9902

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Oetiker <tobi@...> 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!

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mark,

the problem is fixed in svn ...

cheers
tobi

Yesterday Mark Plaksin wrote:

> Tobias Oetiker <tobi@...> 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:MIN0=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' LINE1:WUB3#FF0000:'aardvark cpu user' 'COMMENT:\n' VDEF:AVG3=WUB3,AVERAGE 'GPRINT:AVG3:\tAv%9.2lf%s' VDEF:MIN3=WUB3,MINIMUM 'GPRINT:MIN3:Min%9.2lf%s' VDEF:MAX3=WUB3,MAXIMUM 'GPRINT:MAX3:Max\:%9.2lf%s\n'
>
> returns only this:
> value_min = 0.0000000000e+00
> value_max = 9.9000000000e+01
>
> I can try to find a smaller example command but I probably won't be able
> to do it until next week.
>
> _______________________________________________
> rrd-developers mailing list
> rrd-developers@...
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
>
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi@... ++41 62 213 9902

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

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

by Mark Plaksin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Oetiker <tobi@...> writes:

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

Awesome!  Works for me :)

Thanks!

_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers