From kalt at taranis.org Mon Oct 1 21:36:03 2007 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 1 Oct 2007 21:36:03 -0400 Subject: [drraw-users] Stacking DS templates In-Reply-To: <5648b5570709071122l63bd9bbbxa368f32128bbbd53@mail.gmail.com> References: <5648b5570709071122l63bd9bbbxa368f32128bbbd53@mail.gmail.com> Message-ID: <20071002013603.GC2352@bzz.taranis.org> On Sep 07, Andi wrote: | I am using version 2.2a4 and I unable to stack an DS template to previous | data sources - first DS from the DS template is always with out STACK | keyword. | Is this a bug or feature? Neither, "lack of a feature" ;) Solution: http://web.taranis.org/pipermail/drraw-users/2007q3/000209.html | Also is there a way to reorder or sort the matches of DS template? This | would be useful when stacking. Unfortunately not. I'm not sure how one would go about implementing something like this. | PS! Why is google not indexing the drraw-users archives? Hmm, i don't seem to allow robots to crawl /mailman/ or /pipermail/ From dialp at ucar.edu Tue Oct 2 12:07:12 2007 From: dialp at ucar.edu (paul dial) Date: Tue, 02 Oct 2007 10:07:12 -0600 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion Message-ID: <47026CB0.1030006@ucar.edu> Hi, I'm having some problems with the selection criteria for a template. Here is some background info. I'm using v2.2a4. The rrds in question live in a directory structure that looks like this ///peerAS_.rrd. Each 'member' has the exact same peer AS rrds. My base regular expression looks like this: (.+)\/peerAS(.+)\.rrd Ideally, when I view the template, I would be able to select a view based on member name and the resulting graph will show all peerAS traffic for that member When I configure my selection criteria as '$1' the 'member' name, however, my list of available RRDs is truncated. When I configure the selection criteria to be: $1,$2 I am able to see the desired list of RRDs. However, when attempting to view the graphs, the list of views to select from is based on '$1,$2'. So I have a list that looks something like this: member A,_209 member A,_11164 member A,_3354 member B,_209 member B,_11164 member B,_3354 There is only one graph to view and no matter which 'member A' selection is made, the correct graph is displayed, but it is a bit confusing to users. My "File RE" looks like this: ($1)/peerAS_209.rrd and is repeated for about 5 different peerASes. Is the selection criteria supposed to affect the list of RRD's based on the "base regular expression"? What am I doing wrong? My other question relates variable expansion. For the template described above, I wanted to use $1, the member name, as part of the label, however, when I put $1 in the 'Label/Format' field the end result just displays '1'. I've attached a snap shot of my configuration in the hopes it might provide some clarity. thanks, paul -------------- next part -------------- A non-text attachment was scrubbed... Name: drraw_dsconfig.png Type: image/png Size: 13092 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071002/8aca9afa/drraw_dsconfig-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: drraw_base.png Type: image/png Size: 11912 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071002/8aca9afa/drraw_base-0001.png From james.lose at twcable.com Fri Oct 12 15:03:48 2007 From: james.lose at twcable.com (Lose, James) Date: Fri, 12 Oct 2007 15:03:48 -0400 Subject: [drraw-users] Porting Templates Between drraw Installations Message-ID: <2817AF6876483A489EB08E0D28D232550A0BAC6B@PRVPVSMAIL07.corp.twcable.com> Can anyone offer advice on how best to port drraw templates from one installation to another? Thanks, Jim Lose Time Warner Cable National Data Center 470 Spring Park Place, Suite 1000 Herndon, VA 20170 Office: (703)345-3644 Cell: (703)328-8406 Email: james.lose at twcable.com This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20071012/016c418c/attachment.html From vitroth+ at cmu.edu Fri Oct 12 15:59:04 2007 From: vitroth+ at cmu.edu (David Nolan) Date: Fri, 12 Oct 2007 15:59:04 -0400 Subject: [drraw-users] Porting Templates Between drraw Installations In-Reply-To: <2817AF6876483A489EB08E0D28D232550A0BAC6B@PRVPVSMAIL07.corp.twcable.com> References: <2817AF6876483A489EB08E0D28D232550A0BAC6B@PRVPVSMAIL07.corp.twcable.com> Message-ID: <1cbe50830710121259iacd6e86q47a56d881af807c0@mail.gmail.com> On 10/12/07, Lose, James wrote: > > > Can anyone offer advice on how best to port drraw templates from one > installation to another? > I've copied them around via scp, etc. If your local directories of RRD files are in the same places that should just work. Otherwise you may want to use sed/perl to modify various paths within the files. Though in practice, the technique I use most is to NFS export the RRD files all to a single front end, so I can graph data from multiple collection engines together in one graph. You could probably do the same trick to NFS export the drraw saved graphs directory, but that would only work if all your directories are in the same places. -David From jlambert at ften.com Mon Nov 12 15:00:53 2007 From: jlambert at ften.com (Justin Lambert) Date: Mon, 12 Nov 2007 12:00:53 -0800 Subject: [drraw-users] Newbie - CDEF and Units Message-ID: <20BBD256C2945D46822E970C0B5EFEA302D4670C@dhost002-32.dex002.intermedia.net> I am using drraw 2.1.3 and having a horrible time getting a CDEF added to my graph. I must be making it way harder than what it needs to be... CDEF=used_mem,1024,* What do I put in which blanks? I have read the directions and am not getting any help and haven't been able to find the answer to this (seemingly) simple question through google. I am also having a problem with units on my graphs. My data is in MB - how do I get it to display that on the graphs without first converting my data to bytes then using the units exponent to convert it back to MB? Thanks, jl -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20071112/7b91fcb9/attachment.html From kalt at taranis.org Tue Nov 13 21:18:19 2007 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 13 Nov 2007 21:18:19 -0500 Subject: [drraw-users] Newbie - CDEF and Units In-Reply-To: <20BBD256C2945D46822E970C0B5EFEA302D4670C@dhost002-32.dex002.intermedia.net> References: <20BBD256C2945D46822E970C0B5EFEA302D4670C@dhost002-32.dex002.intermedia.net> Message-ID: <20071114021819.GA13706@bzz.taranis.org> On Nov 12, Justin Lambert wrote: | I am using drraw 2.1.3 and having a horrible time getting a CDEF added | to my graph. I must be making it way harder than what it needs to be... | | CDEF=used_mem,1024,* | | What do I put in which blanks? I have read the directions and am not | getting any help and haven't been able to find the answer to this | (seemingly) simple question through google. "used_mem" is wrong, that's the DS name in the RRD file, but as you added it to the graph, drraw named it differently, usually a single letter (a, b, c, ...). That's what you need to use in the CDEF box. | I am also having a problem with units on my graphs. My data is in MB - | how do I get it to display that on the graphs without first converting | my data to bytes then using the units exponent to convert it back to MB? RRDtool should allow to do this, but that's never worked well for me, so i often end up converting units. From jlambert at ften.com Wed Nov 14 11:57:59 2007 From: jlambert at ften.com (Justin Lambert) Date: Wed, 14 Nov 2007 08:57:59 -0800 Subject: [drraw-users] Newbie - CDEF and Units In-Reply-To: <20071114021819.GA13706@bzz.taranis.org> References: <20BBD256C2945D46822E970C0B5EFEA302D4670C@dhost002-32.dex002.intermedia.net> <20071114021819.GA13706@bzz.taranis.org> Message-ID: <20BBD256C2945D46822E970C0B5EFEA302DF72A7@dhost002-32.dex002.intermedia.net> Wow - that was amazingly simple now that I know that. Converting everything to bytes then back to MB fixed the unit problem as well. One last (probably very easy question) is how do I add a CDEF in the bottom portion of the graphing box so I can do a 95th percentile? =numbytes,95,PERCENT Thanks, jl -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Christophe Kalt Sent: Tuesday, November 13, 2007 7:18 PM To: drraw-users at taranis.org Subject: Re: [drraw-users] Newbie - CDEF and Units On Nov 12, Justin Lambert wrote: | I am using drraw 2.1.3 and having a horrible time getting a CDEF added | to my graph. I must be making it way harder than what it needs to be... | | CDEF=used_mem,1024,* | | What do I put in which blanks? I have read the directions and am not | getting any help and haven't been able to find the answer to this | (seemingly) simple question through google. "used_mem" is wrong, that's the DS name in the RRD file, but as you added it to the graph, drraw named it differently, usually a single letter (a, b, c, ...). That's what you need to use in the CDEF box. | I am also having a problem with units on my graphs. My data is in MB - | how do I get it to display that on the graphs without first converting | my data to bytes then using the units exponent to convert it back to MB? RRDtool should allow to do this, but that's never worked well for me, so i often end up converting units. _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From lalegria at ics-canada.net Wed Nov 14 14:39:29 2007 From: lalegria at ics-canada.net (Alegria, Luis) Date: Wed, 14 Nov 2007 14:39:29 -0500 Subject: [drraw-users] STACK NOT on Drop Down Box In-Reply-To: References: Message-ID: <6A14143AA405FA438E738A8BA1178831C33668@ISLEXB.ca.icscourier.local> Hi Everyone: I've been using the latest version of drraw for a week now, very neat tool. I've noticed today that when creating or editing a graph, Under Type Color column the option STACK does not appear on the list, even tough it was define in the draw.cgi script on line 277 my @graphtypes = ( 'LINE1', 'LINE2', 'LINE3', 'LINE?', 'AREA', 'TICK', 'GPRINT', 'STACK', 'COMMENT', 'HRULE', 'VRULE', 'SHIFT', '-Nothing-' ); Is This A Bug ?. Also When defining a CDEF (a,-1,*) for any ds, it does not plot the data the graph under the x axis, they just do not show up on the graph. Thank You Luis Alegria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20071114/3fbe7887/attachment.html From dialp at ucar.edu Thu Nov 15 09:10:44 2007 From: dialp at ucar.edu (paul dial) Date: Thu, 15 Nov 2007 07:10:44 -0700 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion] Message-ID: <473C5364.9080503@ucar.edu> Hi, I had previously posted this message but did not get any response. Thought I'd try again and see if someone is able to help. thanks, paul -------- Original Message -------- Subject: [drraw-users] v2.2a4 selection criteria and variable expansion Date: Tue, 02 Oct 2007 10:07:12 -0600 From: paul dial To: drraw-users at taranis.org Hi, I'm having some problems with the selection criteria for a template. Here is some background info. I'm using v2.2a4. The rrds in question live in a directory structure that looks like this ///peerAS_.rrd. Each 'member' has the exact same peer AS rrds. My base regular expression looks like this: (.+)\/peerAS(.+)\.rrd Ideally, when I view the template, I would be able to select a view based on member name and the resulting graph will show all peerAS traffic for that member When I configure my selection criteria as '$1' the 'member' name, however, my list of available RRDs is truncated. When I configure the selection criteria to be: $1,$2 I am able to see the desired list of RRDs. However, when attempting to view the graphs, the list of views to select from is based on '$1,$2'. So I have a list that looks something like this: member A,_209 member A,_11164 member A,_3354 member B,_209 member B,_11164 member B,_3354 There is only one graph to view and no matter which 'member A' selection is made, the correct graph is displayed, but it is a bit confusing to users. My "File RE" looks like this: ($1)/peerAS_209.rrd and is repeated for about 5 different peerASes. Is the selection criteria supposed to affect the list of RRD's based on the "base regular expression"? What am I doing wrong? My other question relates variable expansion. For the template described above, I wanted to use $1, the member name, as part of the label, however, when I put $1 in the 'Label/Format' field the end result just displays '1'. I've attached a snap shot of my configuration in the hopes it might provide some clarity. thanks, paul -- ---- Paul Dial Network Engineer National Center for Atmospheric Research 303-497-1261 dialp at ucar.edu -------------- next part -------------- A non-text attachment was scrubbed... Name: drraw_dsconfig.png Type: image/png Size: 13092 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071115/a26bd4da/drraw_dsconfig-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: drraw_base.png Type: image/png Size: 11912 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071115/a26bd4da/drraw_base-0001.png -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: file:///C:/DOCUME~1/DIALP/LOCALS~1/TEMP/nsmail-1.txt Url: http://web.taranis.org/pipermail/drraw-users/attachments/20071115/a26bd4da/nsmail-1-0001.txt From kalt at taranis.org Thu Nov 15 10:03:36 2007 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 15 Nov 2007 10:03:36 -0500 Subject: [drraw-users] STACK NOT on Drop Down Box In-Reply-To: <6A14143AA405FA438E738A8BA1178831C33668@ISLEXB.ca.icscourier.local> References: <6A14143AA405FA438E738A8BA1178831C33668@ISLEXB.ca.icscourier.local> Message-ID: <20071115150335.GA25380@bzz.taranis.org> On Nov 14, Alegria, Luis wrote: | I've been using the latest version of drraw for a week now, very neat | tool. I've noticed today that when creating or editing a graph, Under | Type Color column the option STACK does not appear on the list, even | tough it was define in the draw.cgi script on line 277 STACK is obsoleted by RRDtool 1.2.x which you're probably running. There's a check box to replace the functionality. | Also When defining a CDEF (a,-1,*) for any ds, it does not plot the | data the graph under the x axis, they just do not show up on the graph. Check how you set the Y Grid parameters. Christophe From wernli at in2p3.fr Mon Nov 19 10:24:52 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Mon, 19 Nov 2007 16:24:52 +0100 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion] In-Reply-To: <473C5364.9080503@ucar.edu> References: <473C5364.9080503@ucar.edu> Message-ID: <20071119152452.GJ10433@ccswiss.in2p3.fr> On Thu, Nov 15, 2007 at 07:10:44AM -0700, paul dial wrote: > I had previously posted this message but did not get any response. > Thought I'd try again and see if someone is able to help. sorry your enquiry is somewhat long I guess everybody is putting it aside for times where more time is available ;) Have you looked at the wiki? e.g. http://www.managedandmonitored.net/dokuwiki/doku.php?id=drraw:example_of_a_ds-based_template From Lloyd.Parkes at ird.govt.nz Wed Nov 21 15:21:07 2007 From: Lloyd.Parkes at ird.govt.nz (Lloyd Parkes) Date: Thu, 22 Nov 2007 09:21:07 +1300 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion Message-ID: <47449333.3020003@ird.govt.nz> Hi there, I'm trying to do something similar, and it took a bit of brute force and ignorance, but I got there. I have a bunch of CPU usage rrds structured like this //.kstat.cpu.rrd and I want a template for the CPU usage of a whole server, not just a single CPU. My base RE is (.+)\.kstat\.cpu31 so that I only get one match for each server. I have no Selection Expression. I have two File REs and they are both ASERVER\.kstat\.cpu[0-9]+. In the template info table I have ASERVER\.kstat\.cpu[0-9]+ mapped to $1.kstat.cpu[0-9]+ I think your problem is that your base RE is matching once for every file, rather than once for every . Try changing your base RE to (.+)\/peerAS_209\.rrd and leaving your Selection Expression blank. Cheers -- Lloyd Parkes Senior Systems Programmer Open Systems Ph: +64 4 890 2437 From Lloyd.Parkes at ird.govt.nz Wed Nov 21 20:57:17 2007 From: Lloyd.Parkes at ird.govt.nz (Lloyd Parkes) Date: Thu, 22 Nov 2007 14:57:17 +1300 Subject: [drraw-users] bugs in 2.2a4 Message-ID: <4744E1FD.6070807@ird.govt.nz> Hi there, I've just started playing with drraw and I've been pushing it quite hard. I'm afraid that I broke it. Twice. With luck I'll remember to attach the patches before I click on send. This first problem is that with a DS based on a Perl re, the CDEF for the summary of the set of DSs is emitted after the CDEFs for the formula. This in turn means that the File RE example I have attached won't work. The CDEF 'f' is not defined by the time it is used. drraw emits this following rrdtool code CDEF:F0=f0,10000000,/,f,/ \ CDEF:F1=f1,10000000,/,f,/ \ ... CDEF:F30=f30,10000000,/,f,/ \ CDEF:F31=f31,10000000,/,f,/ \ CDEF:f=f0,POP,1,f1,POP,1,+,f2,POP,1,+,f3,POP,1,+,f4,POP... \ With the attached patch, CDEF:f is defined before the other CDEFs. The other problem I have is that while I can stack the F(n) on top of F(n-1), I can't stack D(*) on top of F(*). I get AREA:F0#FFFF00: \ AREA:F1#FFFF00::STACK \ ... AREA:F31#FFFF00::STACK \ AREA:D0#0000FF: \ AREA:D1#0000FF::STACK \ when I really want AREA:F0#FFFF00: \ AREA:F1#FFFF00::STACK \ ... AREA:F31#FFFF00::STACK \ AREA:D0#0000FF::STACK \ AREA:D1#0000FF::STACK \ I'm afraid that I can't be bothered adding this second feature. While I'm here, it would be nice if the the formulae in _Element, _Formula and _tCDEF could refer to the count of items in some way. This is a number that drraw calculates, so it should be easy enough to add to _tCDEF at least. Cheers -- Lloyd Parkes Senior Systems Programmer Open Systems Ph: +64 4 890 2437 -------------- next part -------------- A non-text attachment was scrubbed... Name: drraw - File RE example.png Type: image/png Size: 61597 bytes Desc: not available Url : http://web.taranis.org/pipermail/drraw-users/attachments/20071121/48d6e2d4/drraw-FileREexample-0001.png -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: drraw-2.2a4-patch1 Url: http://web.taranis.org/pipermail/drraw-users/attachments/20071121/48d6e2d4/drraw-2-0001.ksh From kalt at taranis.org Sat Nov 24 10:52:53 2007 From: kalt at taranis.org (Christophe Kalt) Date: Sat, 24 Nov 2007 10:52:53 -0500 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion In-Reply-To: <47026CB0.1030006@ucar.edu> References: <47026CB0.1030006@ucar.edu> Message-ID: <20071124155253.GA27370@bzz.taranis.org> On Oct 02, paul dial wrote: | I'm having some problems with the selection criteria for a template. You're mixing different features that aren't really related. First, work on getting a graph (not a template) working. This will require you to define a "DS template" as you've already been doing. For that, pick a hostname and try to build the graph you want to see for that particular host. From the snapshots you sent, i think you'll have no trouble doing so. Once that is done, and only then, you need to convert the graph into a template. Hope this helps, Christophe From kalt at taranis.org Sat Nov 24 10:52:53 2007 From: kalt at taranis.org (Christophe Kalt) Date: Sat, 24 Nov 2007 10:52:53 -0500 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion In-Reply-To: <47026CB0.1030006@ucar.edu> References: <47026CB0.1030006@ucar.edu> Message-ID: <20071124155253.GA27370@bzz.taranis.org> On Oct 02, paul dial wrote: | I'm having some problems with the selection criteria for a template. You're mixing different features that aren't really related. First, work on getting a graph (not a template) working. This will require you to define a "DS template" as you've already been doing. For that, pick a hostname and try to build the graph you want to see for that particular host. From the snapshots you sent, i think you'll have no trouble doing so. Once that is done, and only then, you need to convert the graph into a template. Hope this helps, Christophe From bernhard at baptist-family.com Tue Nov 27 18:01:41 2007 From: bernhard at baptist-family.com (Bernhard Baptist) Date: Wed, 28 Nov 2007 00:01:41 +0100 Subject: [drraw-users] more than one enty in "Additional rrdgraph Options" field Message-ID: Hi there I yust wondering how to add moe than one opzion in "Additional rrdgraph Options" entry filed in the graph editor window? Tried several ways to seperate entries but no one worked for me. Alternativly I would ask if there is a simple way to use rrd's feature for setting your own colors for the graph background,canvas,text,grid etc. This is possible for pure rrd, but couldnt figure out how to do it in drraw. Your help would be appreciated. thanks in advance bb -- Visit our Homepage at: http://www.baptist-family.com From robert at sermilik.dk Wed Nov 28 10:06:25 2007 From: robert at sermilik.dk (Robert Jeppesen) Date: Wed, 28 Nov 2007 16:06:25 +0100 (CET) Subject: [drraw-users] Generate drraw files from script Message-ID: <60640.130.228.96.66.1196262385.squirrel@mail.prow.dk> I have a network where other people generate devices that are stored in MySQL. My cron script that extract data automaticly create RRD files if they doesn't exist, before updating. I thought of making a script that generate the drraw file(s) and updated the index file based on data from MySQL. Can the filename for each drraw file be anything that I decide? (I know I could 'decode' drraw.cgi but...) From kalt at taranis.org Wed Nov 28 14:04:20 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 28 Nov 2007 14:04:20 -0500 Subject: [drraw-users] more than one enty in "Additional rrdgraph Options" field In-Reply-To: References: Message-ID: <20071128190419.GA21083@bzz.taranis.org> On Nov 28, Bernhard Baptist wrote: | I yust wondering how to add moe than one opzion in "Additional rrdgraph | Options" entry filed in the graph editor window? | Tried several ways to seperate entries but no one worked for me. space should just do it, no? | Alternativly I would ask if there is a simple way to use rrd's feature for | setting your own colors for the graph background,canvas,text,grid etc. | This is possible for pure rrd, but couldnt figure out how to do it in | drraw. The above would be the way, but if it doesn't work.. :) From kalt at taranis.org Wed Nov 28 14:08:01 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 28 Nov 2007 14:08:01 -0500 Subject: [drraw-users] Generate drraw files from script In-Reply-To: <60640.130.228.96.66.1196262385.squirrel@mail.prow.dk> References: <60640.130.228.96.66.1196262385.squirrel@mail.prow.dk> Message-ID: <20071128190800.GB21083@bzz.taranis.org> On Nov 28, Robert Jeppesen wrote: | I thought of making a script that generate the drraw file(s) and updated | the index file based on data from MySQL. Yup, that can definitely be done. But do you even need to? With the right templates, you should be able to pick up any new RRD file that shows up. | Can the filename for each drraw file be anything that I decide? | | (I know I could 'decode' drraw.cgi but...) No, the format isn't free although i forget the details, i'm afraid checking the code is your best bet. Really, drraw needs to be rewritten to make such tasks easier. There should clearly be modules and so on. A while back, i was hoping to get around to it, but given that i can't even find the motivation to finish up 2.2, i'd say that's fairly unlikely at this point.