From kalt at taranis.org Wed Jul 12 22:41:53 2006 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 12 Jul 2006 22:41:53 -0400 Subject: [drraw-users] drraw 2.2a1 released --- Testers WANTED! Message-ID: <20060713024153.GA12053@bzz.taranis.org> Version 2.2a1 of drraw is now available for download from: http://web.taranis.org/drraw/ The alpha release of drraw brings a few enhancements over the 2.1.x releases; most importantly, it has full support for the new RRDtool features introduced with version 1.2, while remaining backward compatible with older RRDtool releases. Whether you are running RRDtool 1.2.x or earlier, your feedback would be appreciated. Enjoy! hanges since 2.1.3 [2005/06/19]: - Various improvements for the graph editor: + Extensive code rewrite/cleanup. + Added simple HTML tooltips to provide (some) contextual help. + Extended JavaScript automation. + Clarified creation of new Data Sources. - rrdtool 1.2.x support: + Three new image formats: SVG, EPS and PDF. + GIF is no longer supported, automatically switch to PNG. + Removed support for deprecated --overlay parameter. + Added support for --no-gridfit. + Added support for new VDEF, TICK and SHIFT graph commands. + Deprecated use of HRULE, STACK and old style GPRINT graph command. _______________________________________________ drraw-announce mailing list drraw-announce at taranis.org http://web.taranis.org/mailman/listinfo/drraw-announce From aditya at grot.org Wed Jul 12 23:34:33 2006 From: aditya at grot.org (R.P. Aditya) Date: Thu, 13 Jul 2006 03:34:33 +0000 Subject: [drraw-users] drraw 2.2a1 released --- Testers WANTED! In-Reply-To: <20060713024153.GA12053@bzz.taranis.org> References: <20060713024153.GA12053@bzz.taranis.org> Message-ID: <20060713033432.GA67063@mighty.grot.org> cool - thanks! I can't get the SVG rendering to work...I get no graph at all and the only partially relevant error logged is: Can't find font '/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf' which doesn't make sense, since the file is exactly in that location: > ls -l /usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf -r--r--r-- 1 root wheel 60444 Jan 14 22:27 /usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf I have verified that I can use RRDTool by hand to create SVG graphs, so I know that works... Adi On Wed, Jul 12, 2006 at 10:41:53PM -0400, Christophe Kalt wrote: > Version 2.2a1 of drraw is now available for download from: > > http://web.taranis.org/drraw/ > > The alpha release of drraw brings a few enhancements over the > 2.1.x releases; most importantly, it has full support for the > new RRDtool features introduced with version 1.2, while > remaining backward compatible with older RRDtool releases. > > Whether you are running RRDtool 1.2.x or earlier, your > feedback would be appreciated. > > Enjoy! > > hanges since 2.1.3 [2005/06/19]: > - Various improvements for the graph editor: > + Extensive code rewrite/cleanup. > + Added simple HTML tooltips to provide (some) contextual help. > + Extended JavaScript automation. > + Clarified creation of new Data Sources. > - rrdtool 1.2.x support: > + Three new image formats: SVG, EPS and PDF. > + GIF is no longer supported, automatically switch to PNG. > + Removed support for deprecated --overlay parameter. > + Added support for --no-gridfit. > + Added support for new VDEF, TICK and SHIFT graph commands. > + Deprecated use of HRULE, STACK and old style GPRINT graph command. > _______________________________________________ > drraw-announce mailing list > drraw-announce at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-announce > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > From vitroth+ at cmu.edu Thu Jul 13 08:20:49 2006 From: vitroth+ at cmu.edu (David Nolan) Date: Thu, 13 Jul 2006 08:20:49 -0400 Subject: [drraw-users] drraw 2.2a1 released --- Testers WANTED! In-Reply-To: <20060713024153.GA12053@bzz.taranis.org> References: <20060713024153.GA12053@bzz.taranis.org> Message-ID: <1cbe50830607130520q21118a8ax154cc2a2d4d4d4cb@mail.gmail.com> On 7/12/06, Christophe Kalt wrote: > + Deprecated use of HRULE, STACK and old style GPRINT graph command. Are you supporting the newer mechanism for generating stacked graphs? Do existing graphs using these get converted to the new format? I use stacking extensively... I've got one small feature request. I find myself constantly adding cdefs to multiplay by 8 and multiply by -1, to convert octets to bytes and invert the graphs. I'd like to see two additional checkboxes in the graph definition for these common operations. I've also got some code lying around I should send you that makes the color list customizable in the config file, and makes the default color assignment algorithm better by attempting to avoid putting similar colors adjacent to each other on new items. -David From kalt at taranis.org Thu Jul 13 09:51:51 2006 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 13 Jul 2006 09:51:51 -0400 Subject: [drraw-users] drraw 2.2a1 released --- Testers WANTED! In-Reply-To: <1cbe50830607130520q21118a8ax154cc2a2d4d4d4cb@mail.gmail.com> References: <20060713024153.GA12053@bzz.taranis.org> <1cbe50830607130520q21118a8ax154cc2a2d4d4d4cb@mail.gmail.com> Message-ID: <20060713135151.GA17265@bzz.taranis.org> On Jul 13, David Nolan wrote: | On 7/12/06, Christophe Kalt wrote: | > + Deprecated use of HRULE, STACK and old style GPRINT graph command. | | Are you supporting the newer mechanism for generating stacked graphs? | Do existing graphs using these get converted to the new format? I | use stacking extensively... I wanted to keep the annoucement e-mail short, but as you noted, this is worth some extra attention. I tried to make everything as safe as possible. So, (1) the newer stacking mechanism is supported (2) existing graphs are not automatically converted (although you can manually do so) (3) new graphs (or DS added to old graphs) must use the new mechanism | I've got one small feature request. I find myself constantly adding | cdefs to multiplay by 8 and multiply by -1, to convert octets to bytes | and invert the graphs. I'd like to see two additional checkboxes in | the graph definition for these common operations. Ack.. i already find the table too dense and have trouble making everything fit. This however could probably be solved with some JavaScript, the same way the global toggles are done for the "Additional GPRINTs". I could take these and the new ones you want out of the table which would allow even more such "tools". i never got a good sense of whether people are bothered by the use of JavaScript, but this would be my preferred way of doing this. Otherwise, it could be done at the time you add the DS to the graph, but this is more cumbersome. | I've also got some code lying around I should send you that makes the | color list customizable in the config file, and makes the default | color assignment algorithm better by attempting to avoid putting | similar colors adjacent to each other on new items. Sounds good, please do send it! :-) From kalt at taranis.org Thu Jul 13 10:00:41 2006 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 13 Jul 2006 10:00:41 -0400 Subject: [drraw-users] SVG rendering problem In-Reply-To: <20060713033432.GA67063@mighty.grot.org> References: <20060713024153.GA12053@bzz.taranis.org> <20060713033432.GA67063@mighty.grot.org> Message-ID: <20060713140041.GB17265@bzz.taranis.org> On Jul 13, R.P. Aditya wrote: | I can't get the SVG rendering to work...I get no graph at all and the only | partially relevant error logged is: | | Can't find font '/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf' Have you verified this actually prevents the graph from being generated? You should be able to tell if you have caching enabled (it is by default) by checking to see if a new file was created in $tmp_dir | I have verified that I can use RRDTool by hand to create SVG graphs, so I know | that works... By this, you mean that you manually ran the command shown by drraw in the graph editor? From powerpoint at gmail.com Thu Jul 13 11:02:15 2006 From: powerpoint at gmail.com (Espen Aa. J.) Date: Thu, 13 Jul 2006 17:02:15 +0200 Subject: [drraw-users] SVG rendering problem In-Reply-To: <20060713140041.GB17265@bzz.taranis.org> References: <20060713024153.GA12053@bzz.taranis.org> <20060713033432.GA67063@mighty.grot.org> <20060713140041.GB17265@bzz.taranis.org> Message-ID: Hi, why is there no [drraw-users] - in front of the subject on this mail? Espen On 7/13/06, Christophe Kalt wrote: > > On Jul 13, R.P. Aditya wrote: > | I can't get the SVG rendering to work...I get no graph at all and the > only > | partially relevant error logged is: > | > | Can't find font '/usr/local/share/rrdtool/fonts/DejaVuSansMono- > Roman.ttf' > > Have you verified this actually prevents the graph from being > generated? You should be able to tell if you have caching > enabled (it is by default) by checking to see if a new file > was created in $tmp_dir > > | I have verified that I can use RRDTool by hand to create SVG graphs, so > I know > | that works... > > By this, you mean that you manually ran the command shown by > drraw in the graph editor? > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > -- - Espen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20060713/9787063e/attachment.html From aditya at grot.org Thu Jul 13 11:12:22 2006 From: aditya at grot.org (R.P. Aditya) Date: Thu, 13 Jul 2006 15:12:22 +0000 Subject: [drraw-users] SVG rendering problem In-Reply-To: <20060713140041.GB17265@bzz.taranis.org> References: <20060713024153.GA12053@bzz.taranis.org> <20060713033432.GA67063@mighty.grot.org> <20060713140041.GB17265@bzz.taranis.org> Message-ID: <20060713151222.GC73750@mighty.grot.org> On Thu, Jul 13, 2006 at 10:00:41AM -0400, Christophe Kalt wrote: > On Jul 13, R.P. Aditya wrote: > | I can't get the SVG rendering to work...I get no graph at all and the only > | partially relevant error logged is: > | > | Can't find font '/usr/local/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf' > > Have you verified this actually prevents the graph from being > generated? You should be able to tell if you have caching > enabled (it is by default) by checking to see if a new file > was created in $tmp_dir ah, you're right, the SVG file is in fact produced and place in the tmp_dir I see the problem -- you can't reference a svg image in an img src= manner -- it has to be in the form of: and AFAICT CGI.pm doesn't support that (yet?) -- this goes back to an email conversation you (Christophe) and I had a few months ago...sorry! Adi From kalt at taranis.org Thu Jul 13 12:43:30 2006 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 13 Jul 2006 12:43:30 -0400 Subject: [drraw-users] SVG rendering problem In-Reply-To: <20060713151222.GC73750@mighty.grot.org> References: <20060713024153.GA12053@bzz.taranis.org> <20060713033432.GA67063@mighty.grot.org> <20060713140041.GB17265@bzz.taranis.org> <20060713151222.GC73750@mighty.grot.org> Message-ID: <20060713164330.GB19427@bzz.taranis.org> On Jul 13, R.P. Aditya wrote: | and AFAICT CGI.pm doesn't support that (yet?) -- this goes back to an email | conversation you (Christophe) and I had a few months ago...sorry! Oh right.. it's a drraw issue, i had forgotten. I'll see what i can do about it, thanks for the reminder. From jcalvert at cyrusone.com Tue Jul 18 16:58:16 2006 From: jcalvert at cyrusone.com (Jeff Calvert) Date: Tue, 18 Jul 2006 15:58:16 -0500 Subject: [drraw-users] Custom GPRINTS Message-ID: Christophe, Thanks for the update to drraw, I'm glad to see working VDEFs in the graphs. Is there any way to add custom GPRINTS to the legend? (I'm hoping to add a value for 95th percentile.) Example using rrdtool: /usr/bin/rrdtool graph primary.png \ --title="Monthly Billing Graph for $1 -- primary connection" \ --vertical-label="Mb/sec" \ --start=end-1month \ --end=now \ --width=1125 \ --x-grid=DAY:1:DAY:1:DAY:2:0:%D \ --base=1000 \ --imgformat=PNG \ --height=180 \ --interlaced \ DEF:a=$1_primary_connection.rrd:ds0:AVERAGE \ DEF:b=$1_primary_connection.rrd:ds1:AVERAGE \ CDEF:A=a,8,* \ CDEF:B=b,8,* \ VDEF:C=A,95,PERCENT \ VDEF:D=B,95,PERCENT \ LINE1:A#FF0000:"inbound AVERAGE" \ GPRINT:A:MIN:"Min\:%8.2lf%s" \ GPRINT:A:AVERAGE:"Avg\:%8.2lf%s" \ GPRINT:A:MAX:"Max\:%8.2lf%s" \ GPRINT:A:LAST:"Last\:%8.2lf%s" \ GPRINT:C:"95th\:%8.2lf%s\n" \ <--------- GPRINT of a VDEF LINE1:B#0000FF:"outbound AVERAGE" \ GPRINT:B:MIN:"Min\:%8.2lf%s" \ GPRINT:B:AVERAGE:"Avg\:%8.2lf%s" \ GPRINT:B:MAX:"Max\:%8.2lf%s" \ GPRINT:B:LAST:"Last\:%8.2lf%s" \ GPRINT:D:"95th\:%8.2lf%s\n" \ <--------- GPRINT of a VDEF LINE1:C#ff0000: \ LINE1:D#0000ff: Thanks, Jeff Calvert Network Administrator E: jcalvert at cyrusone.com W: www.cyrusone.com From kalt at taranis.org Thu Jul 20 12:45:54 2006 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 20 Jul 2006 12:45:54 -0400 Subject: [drraw-users] Custom GPRINTS In-Reply-To: References: Message-ID: <20060720164554.GA3985@bzz.taranis.org> Hi Jeff, On Jul 18, Jeff Calvert wrote: | Thanks for the update to drraw, I'm glad to see working VDEFs in | the graphs. Is there any way to add custom GPRINTS to the legend? (I'm | hoping to add a value for 95th percentile.) I'm not sure whether i am missing the point of your question because it seems obvious to me, so please bear with me. | Example using rrdtool: | | /usr/bin/rrdtool graph primary.png \ [...] | VDEF:C=A,95,PERCENT \ [...] | GPRINT:C:"95th\:%8.2lf%s\n" \ <--------- GPRINT of a VDEF So in the graph editor, you have a row in the "Data Source Configuration" table which defines the VDEF. Since you want a GPRINT of the VDEF, all you need to do is select GRPINT in the drop down list found in the Type & Color column. As Label, use "95th:%8.2lf%s". This will do it. Now, i see that you also have this: | LINE1:C#ff0000: \ This makes me think that you want to have the GPRINT in addition to the LINE. The only way with 2.2a1 to do this would be to define the same VDEF a second time. Less than optimal. Seems like an oversight on my part. I'll have to think about it, but i guess using the "Additional GPRINTs" column to fix this would do. From jcalvert at cyrusone.com Thu Jul 20 13:21:50 2006 From: jcalvert at cyrusone.com (Jeff Calvert) Date: Thu, 20 Jul 2006 12:21:50 -0500 Subject: [drraw-users] Custom GPRINTS Message-ID: Christophe, That works. It makes sense now that I've seen it. Having the same VDEF defined a second time is not that big a deal. The new version is working great. Is there an way I could remove the home link at the top of the dashboard and graphs? I'm trying to build a set of graphs and combine them into a dashboard per customer. But I can't let customers see each other's data. (It will be a proxied in a portal.) One way would be to put every customer into a separate installation, but I'm hoping to avoid that. Jeff -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Christophe Kalt Sent: Thursday, July 20, 2006 11:46 AM To: drraw-users at taranis.org Subject: Re: [drraw-users] Custom GPRINTS Hi Jeff, On Jul 18, Jeff Calvert wrote: | Thanks for the update to drraw, I'm glad to see working VDEFs in | the graphs. Is there any way to add custom GPRINTS to the legend? (I'm | hoping to add a value for 95th percentile.) I'm not sure whether i am missing the point of your question because it seems obvious to me, so please bear with me. | Example using rrdtool: | | /usr/bin/rrdtool graph primary.png \ [...] | VDEF:C=A,95,PERCENT \ [...] | GPRINT:C:"95th\:%8.2lf%s\n" \ <--------- GPRINT of a VDEF So in the graph editor, you have a row in the "Data Source Configuration" table which defines the VDEF. Since you want a GPRINT of the VDEF, all you need to do is select GRPINT in the drop down list found in the Type & Color column. As Label, use "95th:%8.2lf%s". This will do it. Now, i see that you also have this: | LINE1:C#ff0000: \ This makes me think that you want to have the GPRINT in addition to the LINE. The only way with 2.2a1 to do this would be to define the same VDEF a second time. Less than optimal. Seems like an oversight on my part. I'll have to think about it, but i guess using the "Additional GPRINTs" column to fix this would do. _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From kalt at taranis.org Thu Jul 20 21:32:17 2006 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 20 Jul 2006 21:32:17 -0400 Subject: [drraw-users] Custom GPRINTS In-Reply-To: References: Message-ID: <20060721013217.GA8158@bzz.taranis.org> On Jul 20, Jeff Calvert wrote: | Is there an way I could remove the home link at the top of the | dashboard and graphs? I'm trying to build a set of graphs and combine | them into a dashboard per customer. But I can't let customers see each | other's data. (It will be a proxied in a portal.) One way would be to | put every customer into a separate installation, but I'm hoping to avoid | that. You need to modify drraw.cgi to remove these links, it isn't configurable. However, even by doing this, any of your customers could manually edit the URL and find the main index. I'm not sure what would be the easiest/best way to meet your needs. From jcalvert at cyrusone.com Fri Jul 21 10:46:29 2006 From: jcalvert at cyrusone.com (Jeff Calvert) Date: Fri, 21 Jul 2006 09:46:29 -0500 Subject: [drraw-users] Custom GPRINTS Message-ID: Commenting out the links from drraw.cgi was the easier path. I'm not concerned about the users editing the URL because they do not have direct access to the webserver. It's proxied via a portal page with fixed URL's. Thanks for a great tool! Jeff -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Christophe Kalt Sent: Thursday, July 20, 2006 8:32 PM To: drraw-users at taranis.org Subject: Re: [drraw-users] Custom GPRINTS On Jul 20, Jeff Calvert wrote: | Is there an way I could remove the home link at the top of the | dashboard and graphs? I'm trying to build a set of graphs and combine | them into a dashboard per customer. But I can't let customers see each | other's data. (It will be a proxied in a portal.) One way would be to | put every customer into a separate installation, but I'm hoping to avoid | that. You need to modify drraw.cgi to remove these links, it isn't configurable. However, even by doing this, any of your customers could manually edit the URL and find the main index. I'm not sure what would be the easiest/best way to meet your needs. _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From rajeev at tigr.ORG Mon Jul 24 11:53:54 2006 From: rajeev at tigr.ORG (Karamchedu, Rajeev K.) Date: Mon, 24 Jul 2006 11:53:54 -0400 Subject: [drraw-users] Transparency options Message-ID: How do I set transparency options in drraw ? Currently, the available colors are in a drop-down list. If there is an optional input field to specify colors, I'd imagine it would be possible to set transparency. TIA rajeev -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3107 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20060724/d16e8ffb/smime.bin From kalt at taranis.org Tue Jul 25 18:50:43 2006 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 25 Jul 2006 18:50:43 -0400 Subject: [drraw-users] Transparency options In-Reply-To: References: Message-ID: <20060725225043.GA1204@bzz.taranis.org> On Jul 24, Karamchedu, Rajeev K. wrote: | How do I set transparency options in drraw ? | | Currently, the available colors are in a drop-down list. If there is an | optional input field to specify colors, I'd imagine it would be possible to | set transparency. Right, there is currently no way to do this for graph items, except by tweaking the color list, but that's a bit cumbersome. Adding an extra input field would work, but is it worth it? The editor is already so crowded :-( From ops at es.clara.net Tue Aug 8 15:59:51 2006 From: ops at es.clara.net (ops@es.clara.net) Date: Tue, 08 Aug 2006 21:59:51 +0200 Subject: [drraw-users] can't handle RRD file version 0003 Message-ID: <44D8ED37.2010101@es.clara.net> Hi, I've installed drraw 2.2a1 and I'm using it with RRDTool 1.2.x (installed from cacti). When I try to make a graph I receive the following errors: Error getting info for "xxxx.rrd": can't handle RRD file version 0003 I see version 2.2a1 has full support for RRDTool 1.2.x. Any help? From kalt at taranis.org Tue Aug 8 16:06:01 2006 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 8 Aug 2006 16:06:01 -0400 Subject: [drraw-users] can't handle RRD file version 0003 In-Reply-To: <44D8ED37.2010101@es.clara.net> References: <44D8ED37.2010101@es.clara.net> Message-ID: <20060808200601.GA1410@bzz.taranis.org> Hi, On Aug 08, ops at es.clara.net wrote: | I've installed drraw 2.2a1 and I'm using it with RRDTool 1.2.x | (installed from cacti). When I try to make a graph I receive the | following errors: | | Error getting info for "xxxx.rrd": can't handle RRD file version 0003 | | I see version 2.2a1 has full support for RRDTool 1.2.x. Yes. Can you send us the version information displayed at the bottom of the help page ("Help" link on the drraw index page)? Christophe From rajeev at tigr.ORG Tue Aug 8 16:07:00 2006 From: rajeev at tigr.ORG (Karamchedu, Rajeev K.) Date: Tue, 8 Aug 2006 16:07:00 -0400 Subject: [drraw-users] Transparency options Message-ID: Undestood. Another option is to remove the drop-down menu for selecting the colors and let it be an input field. We already have a list of colors on the top (all it needs is the color code as a "hover" effect). This will allow use of any color including transparency options. rajeev > > Right, there is currently no way to do this for graph items, > except by tweaking the color list, but that's a bit > cumbersome. > Adding an extra input field would work, but is it worth it? > The editor is already so crowded :-( > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3107 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20060808/230d21ef/smime.bin From jcalvert at cyrusone.com Tue Aug 8 16:07:37 2006 From: jcalvert at cyrusone.com (Jeff Calvert) Date: Tue, 8 Aug 2006 15:07:37 -0500 Subject: [drraw-users] can't handle RRD file version 0003 In-Reply-To: <44D8ED37.2010101@es.clara.net> Message-ID: Check your drraw.cgi file and make sure it points to the libraries for rrdtool 1.2.x. # The following line is needed if "RRDs.pm" was not installed in a # directory mentioned in your perl's @INC. #use lib '/usr/local/rrdtool/lib/perl'; Use lib '/path/to/libraries/'; Jeff -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of ops at es.clara.net Sent: Tuesday, August 08, 2006 3:00 PM To: drraw-users at taranis.org Subject: [drraw-users] can't handle RRD file version 0003 Hi, I've installed drraw 2.2a1 and I'm using it with RRDTool 1.2.x (installed from cacti). When I try to make a graph I receive the following errors: Error getting info for "xxxx.rrd": can't handle RRD file version 0003 I see version 2.2a1 has full support for RRDTool 1.2.x. Any help? _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From ops at es.clara.net Tue Aug 8 16:14:16 2006 From: ops at es.clara.net (ops@es.clara.net) Date: Tue, 08 Aug 2006 22:14:16 +0200 Subject: [drraw-users] can't handle RRD file version 0003 In-Reply-To: <20060808200601.GA1410@bzz.taranis.org> References: <44D8ED37.2010101@es.clara.net> <20060808200601.GA1410@bzz.taranis.org> Message-ID: <44D8F098.50505@es.clara.net> Hi Christophe, Here it goes: Version information *drraw.cgi* CVS-SNAPSHOT [1.205 post 2.2a1] <1.205> *Perl* 5.008007 *CGI.pm* 3.10 *RRDs.pm* 1.000491 Josep Christophe Kalt escribi?: > Hi, > > On Aug 08, ops at es.clara.net wrote: > | I've installed drraw 2.2a1 and I'm using it with RRDTool 1.2.x > | (installed from cacti). When I try to make a graph I receive the > | following errors: > | > | Error getting info for "xxxx.rrd": can't handle RRD file version 0003 > | > | I see version 2.2a1 has full support for RRDTool 1.2.x. > > Yes. > > Can you send us the version information displayed at the > bottom of the help page ("Help" link on the drraw index page)? > > Christophe > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20060808/da33a8fe/attachment.html From kalt at taranis.org Tue Aug 8 16:15:56 2006 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 8 Aug 2006 16:15:56 -0400 Subject: [drraw-users] can't handle RRD file version 0003 In-Reply-To: <44D8F098.50505@es.clara.net> References: <44D8ED37.2010101@es.clara.net> <20060808200601.GA1410@bzz.taranis.org> <44D8F098.50505@es.clara.net> Message-ID: <20060808201556.GB1410@bzz.taranis.org> On Aug 08, ops at es.clara.net wrote: | Version information | | *drraw.cgi* CVS-SNAPSHOT [1.205 post 2.2a1] <1.205> | *Perl* 5.008007 | *CGI.pm* 3.10 | *RRDs.pm* 1.000491 The RRDs.pm module drraw is finding/using is from RRDtool 1.0.49, hence your problem. As Jeff Calvert mentioned, you need to point drraw to the right Perl module: # The following line is needed if "RRDs.pm" was not installed in a # directory mentioned in your perl's @INC. #use lib '/usr/local/rrdtool/lib/perl'; Use lib '/path/to/libraries/'; Christophe From ops at es.clara.net Tue Aug 8 16:26:50 2006 From: ops at es.clara.net (ops@es.clara.net) Date: Tue, 08 Aug 2006 22:26:50 +0200 Subject: [drraw-users] can't handle RRD file version 0003 In-Reply-To: <20060808201556.GB1410@bzz.taranis.org> References: <44D8ED37.2010101@es.clara.net> <20060808200601.GA1410@bzz.taranis.org> <44D8F098.50505@es.clara.net> <20060808201556.GB1410@bzz.taranis.org> Message-ID: <44D8F38A.4030601@es.clara.net> Thanks a lot, I can't find this libs. I'm using debian and it seems don't have this file, but I've installed the following packages: "apt-get install librrdp-perl librrds-perl" and it seems is working. Thanks again Christophe Kalt escribi?: > On Aug 08, ops at es.clara.net wrote: > | Version information > | > | *drraw.cgi* CVS-SNAPSHOT [1.205 post 2.2a1] <1.205> > | *Perl* 5.008007 > | *CGI.pm* 3.10 > | *RRDs.pm* 1.000491 > > The RRDs.pm module drraw is finding/using is from RRDtool > 1.0.49, hence your problem. As Jeff Calvert mentioned, you > need to point drraw to the right Perl module: > > # The following line is needed if "RRDs.pm" was not installed in a > # directory mentioned in your perl's @INC. > #use lib '/usr/local/rrdtool/lib/perl'; > Use lib '/path/to/libraries/'; > > Christophe > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > > > > From DIDIERJE at fr.ibm.com Mon Sep 11 09:56:57 2006 From: DIDIERJE at fr.ibm.com (Stephane Didierjean) Date: Mon, 11 Sep 2006 15:56:57 +0200 Subject: [drraw-users] problem with drraw on AIX Message-ID: Hello all, I have a problem with drraw when I try to use it on AIX. I succed to use it on a Linux system, but not on AIX. I compiled rrdtool version 1.2.15 with some difficulty (but I also try with a pre compiled version of rrdtool 1.0.42), and configured apache to use drraw. The problem is when I try to add a graph I have the following error : No data source for "AVERAGE" RRA found in file "/home/drraw//test.rrd"! No matter what I try to add and what database I use I always have this error. I try to modify a little bit the drraw.cgi to have more information on the error and when I juste return the reason code of the error I have this message : Error getting info for "/home/drraw//test.rrd": unknown consolidation function '-s' The error seems to be on the line 2633 : my ($start, $step, $DSnames, $data) = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); But I dont understand why it works on linux and not on AIX. Thanks in advance for any help St?phane Didierjean IBM Global Service - La Gaude T?l : +33 (0) 4.92.11.60.51 / interne : 36 60 51 Mail : didierje at fr.ibm.com From kalt at taranis.org Mon Sep 11 10:13:44 2006 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 11 Sep 2006 10:13:44 -0400 Subject: [drraw-users] problem with drraw on AIX In-Reply-To: References: Message-ID: <20060911141344.GB19486@bzz.taranis.org> On Sep 11, Stephane Didierjean wrote: | The problem is when I try to add a graph I have the following error : No | data source for "AVERAGE" RRA found in file "/home/drraw//test.rrd"! | No matter what I try to add and what database I use I always have this | error. It's a configuration mismatch between drraw and your RRD files. The RRA names are up to the user creating the RRD file, and can be customized in drraw.conf to match your RRD files. "rrdtool info /path/to/file.rrd" will tell you what names are in use in your files, you can then update drraw.conf with these. Christophe From DIDIERJE at fr.ibm.com Mon Sep 11 10:38:02 2006 From: DIDIERJE at fr.ibm.com (Stephane Didierjean) Date: Mon, 11 Sep 2006 16:38:02 +0200 Subject: [drraw-users] problem with drraw on AIX In-Reply-To: <20060911141344.GB19486@bzz.taranis.org> Message-ID: >On Sep 11, Stephane Didierjean wrote: >| The problem is when I try to add a graph I have the following error : No >| data source for "AVERAGE" RRA found in file "/home/drraw//test.rrd"! >| No matter what I try to add and what database I use I always have this >| error. > >It's a configuration mismatch between drraw and your RRD >files. The RRA names are up to the user creating the RRD >file, and can be customized in drraw.conf to match your RRD >files. "rrdtool info /path/to/file.rrd" will tell you what >names are in use in your files, you can then update drraw.conf >with these. In fact the RRA name is the same that I have on my RRD file, this is what is strange. For information here is the result of the rrdtool info : # rrdtool info test.rrd filename = "test.rrd" rrd_version = "0003" step = 300 last_update = 1051485300 ds[vitesse].type = "COUNTER" ds[vitesse].minimal_heartbeat = 600 ds[vitesse].min = NaN ds[vitesse].max = NaN ds[vitesse].last_ds = "12423" ds[vitesse].value = 0.0000000000e+00 ds[vitesse].unknown_sec = 0 rra[0].cf = "AVERAGE" rra[0].rows = 24 rra[0].pdp_per_row = 1 rra[0].xff = 5.0000000000e-01 rra[0].cdp_prep[0].value = NaN rra[0].cdp_prep[0].unknown_datapoints = 0 rra[1].cf = "AVERAGE" rra[1].rows = 10 rra[1].pdp_per_row = 6 rra[1].xff = 5.0000000000e-01 rra[1].cdp_prep[0].value = 2.6666666667e-02 rra[1].cdp_prep[0].unknown_datapoints = 0 From franshaarman at gmail.com Tue Sep 12 03:00:46 2006 From: franshaarman at gmail.com (Frans Haarman) Date: Tue, 12 Sep 2006 09:00:46 +0200 Subject: [drraw-users] Question about templates Message-ID: Hi, I dont really understand the template parts. The regular expressions only give me one datasource. AFAIK the regular expr: .* should select all databases. But all I managed todo was select one signle db...... any pointers are more then welcome. Regards, Frans From wernli at in2p3.fr Tue Sep 12 05:08:44 2006 From: wernli at in2p3.fr (Fabien Wernli) Date: Tue, 12 Sep 2006 11:08:44 +0200 Subject: [drraw-users] Question about templates In-Reply-To: References: Message-ID: <20060912090844.GD4167@ccfw.in2p3.fr> On Tue, Sep 12, 2006 at 09:00:46AM +0200, Frans Haarman wrote: > I dont really understand the template parts. The regular expressions > only give me one datasource. AFAIK the regular expr: .* should select > all databases. But all I managed todo was select one signle db...... Did you check the path is in your conf file? Also one possible problem is the cache. You need to wait or erase the temp files From franshaarman at gmail.com Tue Sep 12 05:11:51 2006 From: franshaarman at gmail.com (Frans Haarman) Date: Tue, 12 Sep 2006 11:11:51 +0200 Subject: [drraw-users] Question about templates In-Reply-To: <20060912090844.GD4167@ccfw.in2p3.fr> References: <20060912090844.GD4167@ccfw.in2p3.fr> Message-ID: Yeah the paths seem alright. I have 3 directories with several .RRD files. The idea is to have a template which create a graph for each database in the directory. This would save me from creating new graphs when I have new databases, or do manual work. It seems that this is what templates are for, but I cant get it to work, yet. I will check the temp and cache. However, I have *never* gotten more then one result on the regular expressions..... On 9/12/06, Fabien Wernli wrote: > On Tue, Sep 12, 2006 at 09:00:46AM +0200, Frans Haarman wrote: > > I dont really understand the template parts. The regular expressions > > only give me one datasource. AFAIK the regular expr: .* should select > > all databases. But all I managed todo was select one signle db...... > > Did you check the path is in your conf file? > Also one possible problem is the cache. You need to wait or erase the temp > files > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > From franshaarman at gmail.com Tue Sep 12 07:14:28 2006 From: franshaarman at gmail.com (Frans Haarman) Date: Tue, 12 Sep 2006 13:14:28 +0200 Subject: [drraw-users] Question about templates In-Reply-To: <45069FDC020000F600001A8D@wdr.de> References: <20060912090844.GD4167@ccfw.in2p3.fr> <45069FDC020000F600001A8D@wdr.de> Message-ID: On 9/12/06, Sven Probst wrote: > try (.*) not .* . > This is the correct syntax.. Ok I started fresh, with the above reg-ex I get some more results. great! thanks :) From franshaarman at gmail.com Tue Sep 12 08:58:28 2006 From: franshaarman at gmail.com (Frans Haarman) Date: Tue, 12 Sep 2006 14:58:28 +0200 Subject: [drraw-users] Question about templates In-Reply-To: References: <20060912090844.GD4167@ccfw.in2p3.fr> <45069FDC020000F600001A8D@wdr.de> Message-ID: On 9/12/06, Frans Haarman wrote: > On 9/12/06, Sven Probst wrote: > > try (.*) not .* . > > This is the correct syntax.. > > Ok I started fresh, with the above reg-ex I get some more results. great! I think I am just an idiot with reg-expressions. WHERE is the Base Regular Expression applied ? The full path to the database files ? For example, tutorials suggest that: ~= m/snmp/; should be positive for all files which have "snmp". However I never get hits with the drraw.cgi. I tried: snmp(.*)\.rrd, also without result. I think I just need a cluebat cause its just very weird. any pointers would be very helpfull!! From Sven.Probst at WDR.DE Tue Sep 12 09:25:24 2006 From: Sven.Probst at WDR.DE (Sven Probst) Date: Tue, 12 Sep 2006 15:25:24 +0200 Subject: [drraw-users] Antw: Question about templates In-Reply-To: References: <20060912090844.GD4167@ccfw.in2p3.fr> <45069FDC020000F600001A8D@wdr.de> Message-ID: <4506D164020000F600001A97@wdr.de> "Frans Haarman" wrote on 12.09.2006 14:58: > For example, tutorials suggest that: ~= m/snmp/; should be positive > for all files which have "snmp". However I never get hits with the > drraw.cgi. > > I tried: snmp(.*)\.rrd, also without result. I think I just need a > cluebat cause its just very weird. The point you should know: with the ()-expression you "catch" a value from the filename (e.g. the servername) and you can access the first value with $1(second with $2) and so on... I think the regexp matches only on the basename and ^ and $ are implied by drraw (you have to check this in sourcecode..) snmp(.*) should match in your case. From kalt at taranis.org Tue Sep 12 10:41:03 2006 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 12 Sep 2006 10:41:03 -0400 Subject: [drraw-users] problem with drraw on AIX In-Reply-To: References: <20060911141344.GB19486@bzz.taranis.org> Message-ID: <20060912144103.GA23827@bzz.taranis.org> On Sep 11, Stephane Didierjean wrote: | In fact the RRA name is the same that I have on my RRD file, this is what | is strange. | For information here is the result of the rrdtool info : [...] Weird. Earlier on Sep 11, Stephane Didierjean wrote: | I try to modify a little bit the drraw.cgi to have more information on the | error and when I juste return the reason code of the error I have this | message : Error getting info for "/home/drraw//test.rrd": unknown | consolidation function '-s' | The error seems to be on the line 2633 : | my ($start, $step, $DSnames, $data) | = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); Sorry, i did not carefully read your original e-mail. It seems like something odd is going on with RRDs::fetch(), drraw does not catch the error you mention just above, something that should be fixed as it then misbehaves and gives a misleading error. What happens on AIX when you do: rrdtool fetch /home/drraw//test.rrd AVERAGE -s 0 -e 0 But i doubt you'll get the same error message as above as that message does not seem to match with the fetch() function which is a bit suspiscious. Christophe From kalt at taranis.org Wed Sep 13 08:36:45 2006 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 13 Sep 2006 08:36:45 -0400 Subject: [drraw-users] Question about templates In-Reply-To: References: <20060912090844.GD4167@ccfw.in2p3.fr> <45069FDC020000F600001A8D@wdr.de> Message-ID: <20060913123645.GC5266@bzz.taranis.org> On Sep 12, Frans Haarman wrote: | On 9/12/06, Frans Haarman wrote: | > On 9/12/06, Sven Probst wrote: | > > try (.*) not .* . | > > This is the correct syntax.. | > | > Ok I started fresh, with the above reg-ex I get some more results. great! | | I think I am just an idiot with reg-expressions. | | WHERE is the Base Regular Expression applied ? The full path to the | database files ? In the same table as the one where you have to define the regular expressions, the last few rows contain the various filenames present/used in the original graph. All the regular expressions apply to these filenames, e.g. they are not full paths in the OS sense of the term. | For example, tutorials suggest that: ~= m/snmp/; should be positive | for all files which have "snmp". However I never get hits with the | drraw.cgi. | | I tried: snmp(.*)\.rrd, also without result. I think I just need a | cluebat cause its just very weird. | | any pointers would be very helpfull!! The base regular expression must to more than match the filenames. It must also define at least one subexpression (e.g. you need a part between parentheses). The subexpression is what you can then use to form the filenames (in the later rows) as well as what makes the choices for the user wanting to choose one graph to create. In general (although it does not always work), all you need to define is the "Base Regular Expression", click "Update" and drraw will fill up the bottom of the table based on what you entered. If you're a bit more familiar with Perl regexps now, try and read drraw's help on templates again. It's short and far from great, but the example may be enough to help you. Ultimately, once you get it, it'd be great if you could send me an updated text for the help :-) Christophe From DIDIERJE at fr.ibm.com Fri Sep 15 04:38:49 2006 From: DIDIERJE at fr.ibm.com (Stephane Didierjean) Date: Fri, 15 Sep 2006 10:38:49 +0200 Subject: [drraw-users] problem with drraw on AIX In-Reply-To: <20060912144103.GA23827@bzz.taranis.org> Message-ID: > On Sep 11, Stephane Didierjean wrote: > | In fact the RRA name is the same that I have on my RRD file, this is what > | is strange. > | For information here is the result of the rrdtool info : > [...] > > Weird. > > Earlier on Sep 11, Stephane Didierjean wrote: > | I try to modify a little bit the drraw.cgi to have more information on the > | error and when I juste return the reason code of the error I have this > | message : Error getting info for "/home/drraw//test.rrd": unknown > | consolidation function '-s' > | The error seems to be on the line 2633 : > | my ($start, $step, $DSnames, $data) > | = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > > Sorry, i did not carefully read your original e-mail. It > seems like something odd is going on with RRDs::fetch(), drraw > does not catch the error you mention just above, something > that should be fixed as it then misbehaves and gives a > misleading error. > What happens on AIX when you do: > rrdtool fetch /home/drraw//test.rrd AVERAGE -s 0 -e 0 this part was working fine. > > But i doubt you'll get the same error message as above as that > message does not seem to match with the fetch() function which > is a bit suspiscious. > > Christophe Finaly the problem was with the compilation of the perl module of RRdtools, i don't know what was wrong but I found a recent binary distribution for AIX on the rrdtool web site, and now I can use drraw. Thanks anyway for the help ! St?phane Didierjean IBM Global Service - La Gaude T?l : +33 (0) 4.92.11.60.51 / interne : 36 60 51 Mail : didierje at fr.ibm.com From franshaarman at gmail.com Fri Sep 15 04:49:36 2006 From: franshaarman at gmail.com (Frans Haarman) Date: Fri, 15 Sep 2006 10:49:36 +0200 Subject: [drraw-users] Question about templates In-Reply-To: <20060913123645.GC5266@bzz.taranis.org> References: <20060912090844.GD4167@ccfw.in2p3.fr> <45069FDC020000F600001A8D@wdr.de> <20060913123645.GC5266@bzz.taranis.org> Message-ID: On 9/13/06, Christophe Kalt wrote: > If you're a bit more familiar with Perl regexps now, try and > read drraw's help on templates again. It's short and far from > great, but the example may be enough to help you. Ultimately, > once you get it, it'd be great if you could send me an updated > text for the help :-) I am getting there! The help could be updated indeed. When I grasp all this drraw perl and regex stuff I'll put something on paper :) for now, thanks for the work!