From gsomlo at gmail.com Wed Jan 16 20:46:09 2008 From: gsomlo at gmail.com (Gabriel Somlo) Date: Wed, 16 Jan 2008 20:46:09 -0500 Subject: [drraw-users] PERCENTILE in a CDEF ? Message-ID: <2387247e0801161746n60d42cf6oda44501f1f32ba2@mail.gmail.com> I'm trying to graph the 95th percentile of a data source, let's call it 'a'. When I try to add a CDEF definition in drraw, I get the following error message: invalid rpn expression in: a,95,PERCENTILE,8,* Any ideas about what I'm doing wrong would be much appreciated :) Thanks, Gabriel From kalt at taranis.org Sun Jan 20 15:08:43 2008 From: kalt at taranis.org (Christophe Kalt) Date: Sun, 20 Jan 2008 15:08:43 -0500 Subject: [drraw-users] PERCENTILE in a CDEF ? In-Reply-To: <2387247e0801161746n60d42cf6oda44501f1f32ba2@mail.gmail.com> References: <2387247e0801161746n60d42cf6oda44501f1f32ba2@mail.gmail.com> Message-ID: <20080120200843.GA13542@bzz.taranis.org> On Jan 16, Gabriel Somlo wrote: | I'm trying to graph the 95th percentile of a data source, let's call it 'a'. | | When I try to add a CDEF definition in drraw, I get the following error | message: | | invalid rpn expression in: a,95,PERCENTILE,8,* | | Any ideas about what I'm doing wrong would be much appreciated :) This error is produced by RRDtool, not drraw. Not sure what's wrong, i haven't played with these newer features of RRDtool. Have you made sure that drraw is actually using a recent verison of RRDtool? From gsomlo at gmail.com Sun Jan 20 21:28:39 2008 From: gsomlo at gmail.com (Gabriel Somlo) Date: Sun, 20 Jan 2008 21:28:39 -0500 Subject: [drraw-users] PERCENTILE in a CDEF ? In-Reply-To: <20080120200843.GA13542@bzz.taranis.org> References: <2387247e0801161746n60d42cf6oda44501f1f32ba2@mail.gmail.com> <20080120200843.GA13542@bzz.taranis.org> Message-ID: <2387247e0801201828h7b624c0bg2da24db17aa3e1c0@mail.gmail.com> Christophe, Thanks for the reply. Actually, both our rrdtool and drraw versions are rather ancient. I expect an upgrade will make this issue go away :) Thanks, Gabriel On Jan 20, 2008 3:08 PM, Christophe Kalt wrote: > This error is produced by RRDtool, not drraw. Not sure what's > wrong, i haven't played with these newer features of RRDtool. > Have you made sure that drraw is actually using a recent > verison of RRDtool? > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users > From gsomlo at gmail.com Thu Jan 31 21:35:01 2008 From: gsomlo at gmail.com (Gabriel Somlo) Date: Thu, 31 Jan 2008 21:35:01 -0500 Subject: [drraw-users] PERCENTILE in a CDEF ? In-Reply-To: <20080120200843.GA13542@bzz.taranis.org> References: <2387247e0801161746n60d42cf6oda44501f1f32ba2@mail.gmail.com> <20080120200843.GA13542@bzz.taranis.org> Message-ID: <2387247e0801311835g25c070a2v10d0ee223f64ad11@mail.gmail.com> I'm now playing with rrdtool 1.3beta3 and drraw 2.2a4. I can do a percentile by adding a VDEF that says 'a,95,PERCENT' which gives me a horizontal line, and that's great. Now, I'm trying to scale this by 8, but when I do 'a,95,PERCENT,8,*' or 'a,8,*,95,PERCENT' I get an error: Unknown function string '95,PERCENT,8,*' in VDEF 'I' I tried "cheating" by having another CDEF (or VDEF) refer to 'i' (i.e., the sequence letter associated with the aforementioned VDEF) but to no avail: Not a valid vname: - in line VDEF:K=-,i,8,* Tried the 'a,POP,i,8,*' trick also, but still no dice: Unknown function string 'POP,i,8,*' in VDEF 'K' Any way to "scale" a PERCENTILE VDEF that I missed ? (oh, it's not just that I want to scale by 8, but also in some cases multiply by -1, to get things to show up on the negative side of the y axis...) Thanks a ton, Gabriel From dialp at ucar.edu Tue Feb 26 08:49:54 2008 From: dialp at ucar.edu (paul dial) Date: Tue, 26 Feb 2008 06:49:54 -0700 Subject: [drraw-users] v2.2a4 selection criteria and variable expansion In-Reply-To: <47449333.3020003@ird.govt.nz> References: <47449333.3020003@ird.govt.nz> Message-ID: <47C41902.2050806@ucar.edu> Between Christophe's and your post I was able to figure out the error of my ways. I changed my base RE to something similar to yours which solved one problem. I was also trying to use the subexpression from my base RE in the File RE instead of creating mappings in the template info table. Sorry it took so long to reply, but the server died right after I posted and I'm just now getting back to it. Thanks for the help! paul Lloyd Parkes wrote, On 11/21/2007 1:21 PM: > 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 From kzembowe at jhuccp.org Tue Mar 4 12:22:34 2008 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Tue, 4 Mar 2008 12:22:34 -0500 Subject: [drraw-users] Strange problem: A spider ate my graphs Message-ID: As near as I can figure out, a spider (linkchecker) that I set up to find dead links on my intranet site caused my drraw graphs to disappear. I'm basing this conclusion on the drraw ChangeLog for my site, pasted in below, which shows changes just after 4:00 for two days after I set up the spider. The RRDs themselves seem to be alright. But, no graphs or dashboards show up on my drraw.cgi page, where I used to have four. I'm hoping there's a switch to flip to restore this. Or, can anyone tell me the directories I have to restore from my tape backups to restore my graphs? Thanks for all your suggestions and advice. -Kevin Kevin Zembower Internet Services Group manager Center for Communication Programs Bloomberg School of Public Health Johns Hopkins University 111 Market Place, Suite 310 Baltimore, Maryland 21202 410-659-6139 ================================================ ChangeLog Date Item Title Updated By Old Title Mon Mar 3 04:01:38 2008 g1142608523.23675 guest [10.253.192.205] Mon Mar 3 04:01:37 2008 g1142608523.23675 guest [10.253.192.205] www:eth0 Mon Mar 3 04:01:36 2008 g1142608872.23722 guest [10.253.192.205] Mon Mar 3 04:01:36 2008 g1142608872.23722 guest [10.253.192.205] www.popline.org hits Mon Mar 3 04:01:35 2008 g1142609083.23738 guest [10.253.192.205] Mon Mar 3 04:01:35 2008 g1178309469.17129 guest [10.253.192.205] Mon Mar 3 04:01:35 2008 g1142609083.23738 guest [10.253.192.205] www.jhuccp.org hits Mon Mar 3 04:01:34 2008 g1178309469.17129 guest [10.253.192.205] WWW host temperatures (?F) Fri Feb 29 04:03:53 2008 d1146248492.22370 guest [10.253.192.205] Fri Feb 29 04:03:52 2008 d1146248492.22370 guest [10.253.192.205] Real-time server requests From kalt at taranis.org Tue Mar 4 12:53:25 2008 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 4 Mar 2008 12:53:25 -0500 Subject: [drraw-users] Strange problem: A spider ate my graphs In-Reply-To: References: Message-ID: <20080304175325.GA14275@bzz.taranis.org> Unless you setup RCS, your only hope is to recover the files from $saved_dir (see your drraw.conf) from Backup. The drraw index has links to delete graphs and so on, a spider going through these links would nicely do the job. An easy way to protect against this is to require authentication. From kzembowe at jhuccp.org Tue Mar 4 15:09:31 2008 From: kzembowe at jhuccp.org (Zembower, Kevin) Date: Tue, 4 Mar 2008 15:09:31 -0500 Subject: [drraw-users] Strange problem: A spider ate my graphs In-Reply-To: <20080304175325.GA14275@bzz.taranis.org> References: <20080304175325.GA14275@bzz.taranis.org> Message-ID: That worked great. Thank you so much for your help. Hopefully, I've got the spider excluded from this directory now. Thanks, again. -Kevin -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Christophe Kalt Sent: Tuesday, March 04, 2008 12:53 PM To: drraw-users at taranis.org Subject: Re: [drraw-users] Strange problem: A spider ate my graphs Unless you setup RCS, your only hope is to recover the files from $saved_dir (see your drraw.conf) from Backup. The drraw index has links to delete graphs and so on, a spider going through these links would nicely do the job. An easy way to protect against this is to require authentication. _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users