From jmarkn at gmail.com Wed Apr 4 01:15:38 2007 From: jmarkn at gmail.com (Mark Noworolski) Date: Tue, 3 Apr 2007 22:15:38 -0700 Subject: [drraw-users] Graphing maximum of a regex of rrds Message-ID: <5ef002480704032215q4fa0405bp346e9ddc352c138b@mail.gmail.com> I have a whole bunch things I have rrds for, one rrd for each thing. Each rrd contains an entry called 'latency'. I'm trying to use the DS regular expression thing to plot the AVERAGE, MAXIMUM and MINIMUM latency. I'm not having much success, although it looks like this _should_ be possible, particularly for the MAX and MIN functions (in which case, I enter 'MAX' or 'MIN' in the formula field. I'm not sure how to do AVG though, or, for that matter, how I might be able to get percentiles. mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070404/43ab59ab/attachment-0001.html From kalt at taranis.org Wed Apr 4 20:01:10 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 4 Apr 2007 20:01:10 -0400 Subject: [drraw-users] Graphing maximum of a regex of rrds In-Reply-To: <5ef002480704032215q4fa0405bp346e9ddc352c138b@mail.gmail.com> References: <5ef002480704032215q4fa0405bp346e9ddc352c138b@mail.gmail.com> Message-ID: <20070405000110.GA16769@bzz.taranis.org> On Apr 03, Mark Noworolski wrote: | I have a whole bunch things I have rrds for, one rrd for each thing. | Each rrd contains an entry called 'latency'. | | I'm trying to use the DS regular expression thing to plot the AVERAGE, | MAXIMUM and MINIMUM latency. What RRAs are defined in your RRD files? | I'm not having much success, although it looks like this _should_ be | possible, particularly for the MAX and MIN functions (in which case, I enter | 'MAX' or 'MIN' in the formula field. The formula field is used to aggregate all the matching RRDs, i don't think this is what you're after, but i'm not quite sure what you're trying to do. How many graph elements are you looking to get? One per RRD, one for all RRDs? Christophe From Sam.Weatherby at nana.com Tue Apr 10 20:22:08 2007 From: Sam.Weatherby at nana.com (Sam Weatherby) Date: Tue, 10 Apr 2007 16:22:08 -0800 Subject: [drraw-users] Invalid Graph Name: Message-ID: I am using Nagios and perfparse to get host performance data and Oreon to do some graphing via RRD. I decided to use drraw for some custom reports using the RRD's created by Oreon. I can make the graph and configure it just fine, but when I try to save the graph I get a Invalid Graph Name: error. Is this a known issue? Are there any workarounds? Thanks, -srw Sam Weatherby NANA Development Corporation Network Administrator 907-265-4191 - phone 907-343-5691 - fax sam.weatherby at nana.com From kalt at taranis.org Tue Apr 10 20:25:34 2007 From: kalt at taranis.org (Christophe Kalt) Date: Tue, 10 Apr 2007 20:25:34 -0400 Subject: [drraw-users] Invalid Graph Name: In-Reply-To: References: Message-ID: <20070411002534.GA13915@bzz.taranis.org> On Apr 10, Sam Weatherby wrote: | I can make the graph and configure it just fine, but when I try to save | the graph I get a Invalid Graph Name: error. What graph name do you specify? Christophe From CHRISTOPH.BAUMANN at T-SYSTEMS.CH Mon Apr 16 06:02:23 2007 From: CHRISTOPH.BAUMANN at T-SYSTEMS.CH (Baumann, Christoph) Date: Mon, 16 Apr 2007 12:02:23 +0200 Subject: [drraw-users] Performance of the cgi-script on Apache Message-ID: Hi together I use drraw and I am very happy with it. But when 2 users access the cgi-script together, the first user will get all Graph's one by one, the seconde one has to wait. Is this because I use templates, or is it because my webserver cannot handle more cgi-scripts than one at a time? Christoph Server-status gives something like this: (working on Solaris 10 with 4 cpu's and 8GB RAM. So no bottleneck on the OS) Apache Server Status for hostname Server Version: Apache/2.0.58 (Unix) DAV/2 Server Built: Oct 17 2006 06:11:21 ________________________________ Current Time: Monday, 16-Apr-2007 11:46:58 MEST Restart Time: Thursday, 12-Apr-2007 16:15:38 MEST Parent Server Generation: 0 Server uptime: 3 days 19 hours 31 minutes 20 seconds Total accesses: 1244 - Total Traffic: 19.7 MB CPU Usage: u2.22 s5.39 cu867.84 cs0 - .266% CPU load .00378 requests/sec - 62 B/second - 16.2 kB/request 2 requests currently being processed, 10 idle workers ___W____W___.................................................... ................................................................ ................................................................ ................................................................ Scoreboard Key: "_" Waiting for Connection, "S" Starting up, "R" Reading Request, "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup, "C" Closing connection, "L" Logging, "G" Gracefully finishing, "I" Idle cleanup of worker, "." Open slot with no current process Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request 0-0 394 0/195/195 _ 167.68 39 1171 0.0 3.77 3.77 53.250.190.18 hostname GET /cgi-bin/perf/show.cgi?Mode=show;Template=t1142955021.29667 1-0 395 0/129/129 _ 89.99 1007 0 0.0 2.12 2.12 53.250.25.131 hostname GET /rrdtool/rrdtool-logo-dark.png HTTP/1.1 2-0 396 0/229/229 _ 171.82 110 0 0.0 2.70 2.70 53.250.160.50 hostname GET /rrdtool/drraw.png HTTP/1.1 3-0 397 27/150/150 W 115.34 0 0 481.9 2.89 2.89 53.250.190.18 hostname GET /cgi-bin/perf/show.cgi?Mode=show;Template=t1136666764.26878 4-0 398 0/216/216 _ 167.48 83 797 0.0 3.63 3.63 53.250.190.18 hostname GET /cgi-bin/solaris/show.cgi?Mode=show;Template=t1157487605.25 5-0 2660 0/105/105 _ 81.77 110 812 0.0 1.82 1.82 53.250.160.50 hostname GET /cgi-bin/editaix/show.cgi?Mode=show;Template=t1156884074.13 6-0 3520 0/149/149 _ 108.38 99 1020 0.0 1.29 1.29 53.250.25.131 hostname GET /cgi-bin/perf/show.cgi?Mode=show;Template=t1142955021.29667 7-0 2014 0/11/11 _ 9.63 101 0 0.0 0.31 0.31 53.250.25.131 hostname GET /rrdtool/drraw.png HTTP/1.1 8-0 2509 56/60/60 W 49.62 0 0 991.5 1.20 1.20 53.250.190.18 hostname GET /server-status HTTP/1.1 ________________________________ Srv Child Server number - generation PID OS process ID Acc Number of accesses this connection / this child / this slot M Mode of operation CPU CPU usage, number of seconds SS Seconds since beginning of most recent request Req Milliseconds required to process most recent request Conn Kilobytes transferred this connection Child Megabytes transferred this child Slot Total megabytes transferred this slot ________________________________ Apache/2.0.58 (Unix) DAV/2 Server at hostname Port 80 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070416/fa6b2ce9/attachment-0001.html From Sam.Weatherby at nana.com Mon Apr 16 12:57:32 2007 From: Sam.Weatherby at nana.com (Sam Weatherby) Date: Mon, 16 Apr 2007 08:57:32 -0800 Subject: [drraw-users] Invalid Graph Name In-Reply-To: References: Message-ID: I didn't specify a name, I was editing the comments. Kind of embarrasing... Once I actually entered a name it worked! -srw Date: Tue, 10 Apr 2007 20:25:34 -0400 From: Christophe Kalt Subject: Re: [drraw-users] Invalid Graph Name: To: drraw-users at taranis.org Message-ID: <20070411002534.GA13915 at bzz.taranis.org> Content-Type: text/plain; charset=us-ascii On Apr 10, Sam Weatherby wrote: | I can make the graph and configure it just fine, but when I try to | save the graph I get a Invalid Graph Name: error. What graph name do you specify? Christophe From kalt at taranis.org Mon Apr 16 20:30:45 2007 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 16 Apr 2007 20:30:45 -0400 Subject: [drraw-users] Invalid Graph Name In-Reply-To: References: Message-ID: <20070417003045.GA11940@bzz.taranis.org> On Apr 16, Sam Weatherby wrote: | I didn't specify a name, I was editing the comments. | Kind of embarrasing... Once I actually entered a name it worked! To be fair, a better error message would have made this obvious. :-) From wernli at in2p3.fr Tue Apr 17 04:37:25 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Tue, 17 Apr 2007 10:37:25 +0200 Subject: [drraw-users] Performance of the cgi-script on Apache In-Reply-To: References: Message-ID: <20070417083725.GD3036@ccfw.in2p3.fr> Hi, On Mon, Apr 16, 2007 at 12:02:23PM +0200, Baumann, Christoph wrote: > I use drraw and I am very happy with it. But when 2 users access the > cgi-script together, the first user will get all Graph's one by one, the > seconde one has to wait. > > Is this because I use templates, or is it because my webserver cannot > handle more cgi-scripts than one at a time? not sure about how to read your attached logs, but I can e.g. draw two dashboards at the same time without any problems, so it shouldn't be a drraw issue From CHRISTOPH.BAUMANN at T-SYSTEMS.CH Tue Apr 17 05:20:50 2007 From: CHRISTOPH.BAUMANN at T-SYSTEMS.CH (Baumann, Christoph) Date: Tue, 17 Apr 2007 11:20:50 +0200 Subject: [drraw-users] Performance of the cgi-script on Apache In-Reply-To: <20070417083725.GD3036@ccfw.in2p3.fr> Message-ID: Hi Fabien This I can't beleave. Ist this true ? As I have a apache2 with prefork mpm Perhaps I can optimice in a way that the Dashboards are handled simultaneous. Who can give me some hints? Christoph # ps -ef | grep http root 392 1 0 Apr 12 ? 0:35 /usr/apache2/bin/httpd -k start webservd 13321 392 0 10:55:59 ? 0:00 /usr/apache2/bin/httpd -k start webservd 8747 392 0 10:25:42 ? 0:00 /usr/apache2/bin/httpd -k start webservd 13322 392 0 10:55:59 ? 0:00 /usr/apache2/bin/httpd -k start webservd 8748 392 0 10:25:42 ? 0:00 /usr/apache2/bin/httpd -k start webservd 13225 392 0 10:55:58 ? 0:00 /usr/apache2/bin/httpd -k start webservd 17311 392 0 10:40:53 ? 0:00 /usr/apache2/bin/httpd -k start # ./apachectl -l Compiled in modules: core.c prefork.c http_core.c mod_so.c /etc/apache2/httpd.conf # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 From am at moka5.com Tue Apr 17 05:39:02 2007 From: am at moka5.com (Andy Mayhew) Date: Tue, 17 Apr 2007 02:39:02 -0700 Subject: [drraw-users] Performance of the cgi-script on Apache In-Reply-To: References: Message-ID: <462495B6.90108@moka5.com> Christoph, In your original post, you showed an Apache status with four different requests being made from the 53.250.190.18 client, including the /server-status and two /cgi-bin/perf/show.cgi requests. A question that I have, is what is happening on the client side? Many browsers limit the number of HTTP connections that they will make simultaneously to the same host to 2. So, if you were testing with the same browser, on the same client, attempting to open the same (or similar request) in multiple browser windows to the same host, your response would look slow because the browser was limiting queuing the queries. So the bottleneck is not the server, but rather the client. You should be able to test this out by either making the multiple simultaneous requests from different browsers on the same client or just use multiple client hosts. --Andy Mayhew Baumann, Christoph wrote: > Hi Fabien > > This I can't beleave. Ist this true ? As I have a apache2 with prefork > mpm > Perhaps I can optimice in a way that the Dashboards are handled > simultaneous. > > Who can give me some hints? > > Christoph > > > > # ps -ef | grep http > > root 392 1 0 Apr 12 ? 0:35 > /usr/apache2/bin/httpd -k start > webservd 13321 392 0 10:55:59 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 8747 392 0 10:25:42 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 13322 392 0 10:55:59 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 8748 392 0 10:25:42 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 13225 392 0 10:55:58 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 17311 392 0 10:40:53 ? 0:00 > /usr/apache2/bin/httpd -k start > > > > # ./apachectl -l > Compiled in modules: > core.c > prefork.c > http_core.c > mod_so.c > > > /etc/apache2/httpd.conf > > # prefork MPM > # StartServers: number of server processes to start > # MinSpareServers: minimum number of server processes which are kept > spare > # MaxSpareServers: maximum number of server processes which are kept > spare > # MaxClients: maximum number of server processes allowed to start > # MaxRequestsPerChild: maximum number of requests a server process > serves > > StartServers 5 > MinSpareServers 5 > MaxSpareServers 10 > MaxClients 150 > MaxRequestsPerChild 0 > > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users From CHRISTOPH.BAUMANN at T-SYSTEMS.CH Wed Apr 18 10:34:49 2007 From: CHRISTOPH.BAUMANN at T-SYSTEMS.CH (Baumann, Christoph) Date: Wed, 18 Apr 2007 16:34:49 +0200 Subject: [drraw-users] Performance of the cgi-script on Apache In-Reply-To: <462495B6.90108@moka5.com> Message-ID: Your Right; it was the browser ;-) thank you -----Urspr?ngliche Nachricht----- Von: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] Im Auftrag von Andy Mayhew Gesendet: Dienstag, 17. April 2007 11:39 An: Baumann, Christoph Cc: drraw-users at taranis.org Betreff: Re: [drraw-users] Performance of the cgi-script on Apache Christoph, In your original post, you showed an Apache status with four different requests being made from the 53.250.190.18 client, including the /server-status and two /cgi-bin/perf/show.cgi requests. A question that I have, is what is happening on the client side? Many browsers limit the number of HTTP connections that they will make simultaneously to the same host to 2. So, if you were testing with the same browser, on the same client, attempting to open the same (or similar request) in multiple browser windows to the same host, your response would look slow because the browser was limiting queuing the queries. So the bottleneck is not the server, but rather the client. You should be able to test this out by either making the multiple simultaneous requests from different browsers on the same client or just use multiple client hosts. --Andy Mayhew Baumann, Christoph wrote: > Hi Fabien > > This I can't beleave. Ist this true ? As I have a apache2 with prefork > mpm > Perhaps I can optimice in a way that the Dashboards are handled > simultaneous. > > Who can give me some hints? > > Christoph > > > > # ps -ef | grep http > > root 392 1 0 Apr 12 ? 0:35 > /usr/apache2/bin/httpd -k start > webservd 13321 392 0 10:55:59 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 8747 392 0 10:25:42 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 13322 392 0 10:55:59 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 8748 392 0 10:25:42 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 13225 392 0 10:55:58 ? 0:00 > /usr/apache2/bin/httpd -k start > webservd 17311 392 0 10:40:53 ? 0:00 > /usr/apache2/bin/httpd -k start > > > > # ./apachectl -l > Compiled in modules: > core.c > prefork.c > http_core.c > mod_so.c > > > /etc/apache2/httpd.conf > > # prefork MPM > # StartServers: number of server processes to start > # MinSpareServers: minimum number of server processes which are kept > spare > # MaxSpareServers: maximum number of server processes which are kept > spare > # MaxClients: maximum number of server processes allowed to start > # MaxRequestsPerChild: maximum number of requests a server process > serves > > StartServers 5 > MinSpareServers 5 > MaxSpareServers 10 > MaxClients 150 > MaxRequestsPerChild 0 > > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From wernli at in2p3.fr Wed Apr 18 12:20:38 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Wed, 18 Apr 2007 18:20:38 +0200 Subject: [drraw-users] templates DS regexp Message-ID: <20070418162038.GA18078@ccfw.in2p3.fr> Hi again my dear list, OK just a simple question which is not very easily expressed: is it possible to make a Template containing a DS itself based on a regexp? From kalt at taranis.org Thu Apr 19 10:11:40 2007 From: kalt at taranis.org (Christophe Kalt) Date: Thu, 19 Apr 2007 10:11:40 -0400 Subject: [drraw-users] templates DS regexp In-Reply-To: <20070418162038.GA18078@ccfw.in2p3.fr> References: <20070418162038.GA18078@ccfw.in2p3.fr> Message-ID: <20070419141140.GA14685@bzz.taranis.org> Hi, On Apr 18, Fabien Wernli wrote: | OK just a simple question which is not very easily expressed: | is it possible to make a Template containing a DS itself based on a regexp? Yes, i have such templates, there is nothing special about this. As an example, here's a DS: hostname/Unix/cpu-(\d+) When you convert the graph into a template, here's what you can do: Base Regexp: ^(._)/Unix/cpu-(\d+)\.rrd hostname/Unix/cpu-(\d+): $1/Unix/cpu-(\d+).rrd Christophe From wernli at in2p3.fr Thu Apr 19 10:20:16 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Thu, 19 Apr 2007 16:20:16 +0200 Subject: [drraw-users] templates DS regexp In-Reply-To: <20070419141140.GA14685@bzz.taranis.org> References: <20070418162038.GA18078@ccfw.in2p3.fr> <20070419141140.GA14685@bzz.taranis.org> Message-ID: <20070419142016.GI5535@ccfw.in2p3.fr> On Thu, Apr 19, 2007 at 10:11:40AM -0400, Christophe Kalt wrote: > Yes, i have such templates, there is nothing special about > this. > > As an example, here's a DS: > > hostname/Unix/cpu-(\d+) > > When you convert the graph into a template, here's what you > can do: > > Base Regexp: ^(._)/Unix/cpu-(\d+)\.rrd > hostname/Unix/cpu-(\d+): $1/Unix/cpu-(\d+).rrd hmmm.... screenshot please :) From jmarkn at gmail.com Thu Apr 19 10:49:28 2007 From: jmarkn at gmail.com (Mark Noworolski) Date: Thu, 19 Apr 2007 07:49:28 -0700 Subject: [drraw-users] Stddevs and averages of multiple rrd source files Message-ID: <5ef002480704190749j72a01ec3w912da2d99ee47b48@mail.gmail.com> I have multiple rrds, say: file1.rrd, file2.rrd, file3.rrd, etc. (basically all the files in a certain directory). Each file is identical, in terms of data sources (let's say each one contains temperature readings). I want to create a single plot that presents the average temperature, and 95th percent temperature (ideally the standard deviation, if I could get it) of the overall collection of files. In other words for each x value, the y values would be: average (of the collection of same timepoint values in file1, file2, etc..), then the 95th percent (of the collection of same timepoint values in file1, file2, etc.) I've tried several permutations in drraw and can't quite suss it out - except that I'm pretty sure it's possible. Any pointers? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070419/1f026a10/attachment-0001.html From wernli at in2p3.fr Thu Apr 19 11:08:37 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Thu, 19 Apr 2007 17:08:37 +0200 Subject: [drraw-users] Stddevs and averages of multiple rrd source files In-Reply-To: <5ef002480704190749j72a01ec3w912da2d99ee47b48@mail.gmail.com> References: <5ef002480704190749j72a01ec3w912da2d99ee47b48@mail.gmail.com> Message-ID: <20070419150837.GQ5535@ccfw.in2p3.fr> On Thu, Apr 19, 2007 at 07:49:28AM -0700, Mark Noworolski wrote: > I have multiple rrds, say: file1.rrd, file2.rrd, file3.rrd, etc. (basically > all the files in a certain directory). Each file is identical, in terms of > data sources (let's say each one contains temperature readings). I believe you can only apply simple operations, like the sum, see 'drraw.cgi?Browse=Help#dsconfig', in item 'Data Source>Data Source Template' From wollman at csail.mit.edu Mon Apr 23 14:54:28 2007 From: wollman at csail.mit.edu (Garrett Wollman) Date: Mon, 23 Apr 2007 14:54:28 -0400 Subject: [drraw-users] Two bugs in 2.2a3 Message-ID: <17965.228.157436.420880@khavrinen.csail.mit.edu> A colleague was trying to get a graph that showed just the last eight hours on a particular switch port. He started with a filtered dashboard, drilled down to the port in question, selected just the "Past 28 hours" view, and changed the starting time to "end - 8 hours", then clicked "view". He found (and I confirmed) that this loses the currently-selected data source, and presents him with the source-selection box for that template. It also loses the filter specification, so he gets shown all of the possible data sources (a few thousand in our network) rather than just the ones on the switch he is interested in. When looking at the generated HTML, I also noticed that the (at least in XHTML). However, it's almost always better to use an external style sheet; this will allow the browser to cache the style sheet, providing for quicker loads and reloads. -GAWollman From kalt at taranis.org Mon Apr 23 20:37:37 2007 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 23 Apr 2007 20:37:37 -0400 Subject: [drraw-users] Two bugs in 2.2a3 In-Reply-To: <17965.228.157436.420880@khavrinen.csail.mit.edu> References: <17965.228.157436.420880@khavrinen.csail.mit.edu> Message-ID: <20070424003737.GA26584@bzz.taranis.org> Hi, On Apr 23, Garrett Wollman wrote: | A colleague was trying to get a graph that showed just the last eight | hours on a particular switch port. He started with a filtered | dashboard, drilled down to the port in question, selected just the | "Past 28 hours" view, and changed the starting time to "end - 8 | hours", then clicked "view". He found (and I confirmed) that this | loses the currently-selected data source, and presents him with the | source-selection box for that template. It also loses the filter | specification, so he gets shown all of the possible data sources (a | few thousand in our network) rather than just the ones on the switch | he is interested in. Yes, i'm overdue for a new release. http://web.taranis.org/pipermail/drraw-users/2007q1/000135.html has the fix. | When looking at the generated HTML, I also noticed that the | | (at least in XHTML). However, it's almost always better to use an | external style sheet; this will allow the browser to cache the style | sheet, providing for quicker loads and reloads. i have to admit i am out of touch for this. drraw isn't supposed to generate XHTML, i forget why, but it caused me problems a while back. (Probably something wrong with the CGI module.) use CGI qw(:standard :html3 *table *ul -no_xhtml -nosticky); As far as the above comment, i'll need to read up on this and fix it then. With regards to separating the style sheet, it poses its own set of "problems", either: - a second instance of drraw which is relatively costly given the fact it's in Perl or - served directly by the web server, making drraw less self-contained Neither's very appealing to me, and the style sheet is small enough that i don't think it's a big deal either. From Tanya.Ruttenberg at ssa.gov Wed May 16 13:33:36 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Wed, 16 May 2007 13:33:36 -0400 Subject: [drraw-users] Drraw-2.23a -- cannot find RRA? Message-ID: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> Hi, I just attempted a long-overdue upgrade of drraw. I am on Solaris8 with perl 5.8.7 and RRDtool 1.2.12. When I go to create a new graph, I click on "Add DB to data sources" I get an error such as this: No data source for "AVERAGE" RRA found in file "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! The RRA is definitely there as indicated by rrdtool info . I get the same error no matter which RRD file I choose and no matter which RRA I choose. Here is the error from error.log: [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi line 2607. [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi line 2607. I have fiddled with %datadirs. Here is the latest definition of it: %datadirs = ('/data/cricket-data' => '[Label1] ', '/local/data/cricket-data' => '[Label2] ', ); I've also tried this: %datadirs = ('/local/data/cricket-data' => '[cricket] ',); Same outcome every time. ??? Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB tanya.ruttenberg at ssa.gov 410-965-9605 SMC Home Page: http://smc.ba.ssa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070516/18553770/attachment.html From Tanya.Ruttenberg at ssa.gov Wed May 16 13:35:12 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Wed, 16 May 2007 13:35:12 -0400 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> Message-ID: <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> I can't believe I just did that. Check out the *real* version number in the subject line. ________________________________ From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Ruttenberg, Tanya Sent: Wednesday, May 16, 2007 1:34 PM To: drraw-users at taranis.org Subject: [drraw-users] Drraw-2.23a -- cannot find RRA? Hi, I just attempted a long-overdue upgrade of drraw. I am on Solaris8 with perl 5.8.7 and RRDtool 1.2.12. When I go to create a new graph, I click on "Add DB to data sources" I get an error such as this: No data source for "AVERAGE" RRA found in file "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! The RRA is definitely there as indicated by rrdtool info . I get the same error no matter which RRD file I choose and no matter which RRA I choose. Here is the error from error.log: [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi line 2607. [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi line 2607. I have fiddled with %datadirs. Here is the latest definition of it: %datadirs = ('/data/cricket-data' => '[Label1] ', '/local/data/cricket-data' => '[Label2] ', ); I've also tried this: %datadirs = ('/local/data/cricket-data' => '[cricket] ',); Same outcome every time. ??? Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB tanya.ruttenberg at ssa.gov 410-965-9605 SMC Home Page: http://smc.ba.ssa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070516/699fbf0d/attachment.html From am at moka5.com Wed May 16 13:45:55 2007 From: am at moka5.com (Andy Mayhew) Date: Wed, 16 May 2007 10:45:55 -0700 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> Message-ID: <464B4353.2040706@moka5.com> I've been making this change to the drraw.cgi around line 2608: $ diff drraw.cgi-orig drraw.cgi-mine 2608c2608,2609 < = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); --- > = RRDs::fetch($file, $cf); > # = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); The problem appears to be that rrd is actually returning a error of an invalid data/time range for the file. --Andy Ruttenberg, Tanya wrote: > I can't believe I just did that. Check out the *real* version number in > the subject line. > > ------------------------------------------------------------------------ > *From:* drraw-users-bounces at taranis.org > [mailto:drraw-users-bounces at taranis.org] *On Behalf Of *Ruttenberg, > Tanya > *Sent:* Wednesday, May 16, 2007 1:34 PM > *To:* drraw-users at taranis.org > *Subject:* [drraw-users] Drraw-2.23a -- cannot find RRA? > > Hi, > > I just attempted a long-overdue upgrade of drraw. I am on Solaris8 > with perl 5.8.7 and RRDtool 1.2.12. > > When I go to create a new graph, I click on "Add DB to data sources" > I get an error such as this: > > No data source for "AVERAGE" RRA found in file > "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! > > The RRA is definitely there as indicated by rrdtool info > . I get the same error no matter which RRD file I choose > and no matter which RRA I choose. > > Here is the error from error.log: > > [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in > concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi > line 2607. > > [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in > concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi > line 2607. > > I have fiddled with %datadirs. Here is the latest definition of it: > > %datadirs = ('/data/cricket-data' => '[Label1] ', > '/local/data/cricket-data' => '[Label2] ', > ); > > I've also tried this: > > %datadirs = ('/local/data/cricket-data' => '[cricket] ',); > > Same outcome every time. > ??? > > Tanya Ruttenberg - RSIS Contractor > OTSO/DNE/NMPEB > tanya.ruttenberg at ssa.gov > 410-965-9605 > SMC Home Page: ___http://smc.ba.ssa.gov_ > > > ------------------------------------------------------------------------ > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users From Tanya.Ruttenberg at ssa.gov Wed May 16 13:58:11 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Wed, 16 May 2007 13:58:11 -0400 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <464B4353.2040706@moka5.com> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> <464B4353.2040706@moka5.com> Message-ID: <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> I don't have that code. Here's what I have starting at line 2601 2601 sub DBChooser 2602 { 2603 my ( %rrd, %evt ); 2604 my $file; 2605 foreach $file ( sort(@rrdfiles) ) { 2606 if ( $file =~ /^(.+)\/\/(.+)\.rrd$/ ) { 2607 $rrd{$file} = $datadirs{$1} . " " . $2; 2608 } else { 2609 die "Bad (rrd) filename in DBChooser: $file\n"; 2610 } 2611 } -----Original Message----- From: Andy Mayhew [mailto:am at moka5.com] Sent: Wednesday, May 16, 2007 1:46 PM To: Ruttenberg, Tanya Cc: drraw-users at taranis.org Subject: Re: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? I've been making this change to the drraw.cgi around line 2608: $ diff drraw.cgi-orig drraw.cgi-mine 2608c2608,2609 < = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); --- > = RRDs::fetch($file, $cf); > # = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); The problem appears to be that rrd is actually returning a error of an invalid data/time range for the file. --Andy Ruttenberg, Tanya wrote: > I can't believe I just did that. Check out the *real* version number > in the subject line. > > ------------------------------------------------------------------------ > *From:* drraw-users-bounces at taranis.org > [mailto:drraw-users-bounces at taranis.org] *On Behalf Of *Ruttenberg, > Tanya > *Sent:* Wednesday, May 16, 2007 1:34 PM > *To:* drraw-users at taranis.org > *Subject:* [drraw-users] Drraw-2.23a -- cannot find RRA? > > Hi, > > I just attempted a long-overdue upgrade of drraw. I am on Solaris8 > with perl 5.8.7 and RRDtool 1.2.12. > > When I go to create a new graph, I click on "Add DB to data sources" > I get an error such as this: > > No data source for "AVERAGE" RRA found in file > "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! > > The RRA is definitely there as indicated by rrdtool info > . I get the same error no matter which RRD file I choose > and no matter which RRA I choose. > > Here is the error from error.log: > > [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in > concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi > line 2607. > > [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value in > concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi > line 2607. > > I have fiddled with %datadirs. Here is the latest definition of it: > > %datadirs = ('/data/cricket-data' => '[Label1] ', > '/local/data/cricket-data' => '[Label2] ', > ); > > I've also tried this: > > %datadirs = ('/local/data/cricket-data' => '[cricket] ',); > > Same outcome every time. > ??? > > Tanya Ruttenberg - RSIS Contractor > OTSO/DNE/NMPEB > tanya.ruttenberg at ssa.gov > 410-965-9605 > SMC Home Page: ___http://smc.ba.ssa.gov_ > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users From am at moka5.com Wed May 16 14:09:24 2007 From: am at moka5.com (Andy Mayhew) Date: Wed, 16 May 2007 11:09:24 -0700 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> <464B4353.2040706@moka5.com> <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> Message-ID: <464B48D4.8020306@moka5.com> Sorry, I was working off of a slightly older 2.2 source set. Should be around line 2698, changing = RRDs::fetch($file, $cf, '-s', $last, '-e', $last); to = RRDs::fetch($file, $cf); --Andy Ruttenberg, Tanya wrote: > I don't have that code. Here's what I have starting at line 2601 > > 2601 sub DBChooser > 2602 { > 2603 my ( %rrd, %evt ); > 2604 my $file; > 2605 foreach $file ( sort(@rrdfiles) ) { > 2606 if ( $file =~ /^(.+)\/\/(.+)\.rrd$/ ) { > 2607 $rrd{$file} = $datadirs{$1} . " " . $2; > 2608 } else { > 2609 die "Bad (rrd) filename in DBChooser: $file\n"; > 2610 } > 2611 } > > -----Original Message----- > From: Andy Mayhew [mailto:am at moka5.com] > Sent: Wednesday, May 16, 2007 1:46 PM > To: Ruttenberg, Tanya > Cc: drraw-users at taranis.org > Subject: Re: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find > RRA? > > I've been making this change to the drraw.cgi around line 2608: > $ diff drraw.cgi-orig drraw.cgi-mine > 2608c2608,2609 > < = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > --- > > = RRDs::fetch($file, $cf); > > # = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > > The problem appears to be that rrd is actually returning a error of an > invalid data/time range for the file. > > --Andy > > Ruttenberg, Tanya wrote: >> I can't believe I just did that. Check out the *real* version number >> in the subject line. >> >> > ------------------------------------------------------------------------ >> *From:* drraw-users-bounces at taranis.org >> [mailto:drraw-users-bounces at taranis.org] *On Behalf Of > *Ruttenberg, >> Tanya >> *Sent:* Wednesday, May 16, 2007 1:34 PM >> *To:* drraw-users at taranis.org >> *Subject:* [drraw-users] Drraw-2.23a -- cannot find RRA? >> >> Hi, >> >> I just attempted a long-overdue upgrade of drraw. I am on > Solaris8 >> with perl 5.8.7 and RRDtool 1.2.12. >> >> When I go to create a new graph, I click on "Add DB to data > sources" >> I get an error such as this: >> >> No data source for "AVERAGE" RRA found in file >> "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! >> >> The RRA is definitely there as indicated by rrdtool info >> . I get the same error no matter which RRD file I > choose >> and no matter which RRA I choose. >> >> Here is the error from error.log: >> >> [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value > in >> concatenation (.) or string at > /usr/local/apache2/cgi-bin/drraw.cgi >> line 2607. >> >> [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value > in >> concatenation (.) or string at > /usr/local/apache2/cgi-bin/drraw.cgi >> line 2607. >> >> I have fiddled with %datadirs. Here is the latest definition of > it: >> %datadirs = ('/data/cricket-data' => '[Label1] ', >> '/local/data/cricket-data' => '[Label2] ', >> ); >> >> I've also tried this: >> >> %datadirs = ('/local/data/cricket-data' => '[cricket] ',); >> >> Same outcome every time. >> ??? >> >> Tanya Ruttenberg - RSIS Contractor >> OTSO/DNE/NMPEB >> tanya.ruttenberg at ssa.gov >> 410-965-9605 >> SMC Home Page: ___http://smc.ba.ssa.gov_ >> >> >> ---------------------------------------------------------------------- >> -- >> >> _______________________________________________ >> drraw-users mailing list >> drraw-users at taranis.org >> http://web.taranis.org/mailman/listinfo/drraw-users From Tanya.Ruttenberg at ssa.gov Wed May 16 14:11:54 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Wed, 16 May 2007 14:11:54 -0400 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <464B48D4.8020306@moka5.com> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> <464B4353.2040706@moka5.com> <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> <464B48D4.8020306@moka5.com> Message-ID: <5706AD7376228E458E486975B216BC0704C69A4E@HQ-MBX-02.ba.ad.ssa.gov> That fixed it. Thanks, Andy! -----Original Message----- From: Andy Mayhew [mailto:am at moka5.com] Sent: Wednesday, May 16, 2007 2:09 PM To: Ruttenberg, Tanya Cc: drraw-users at taranis.org Subject: Re: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? Sorry, I was working off of a slightly older 2.2 source set. Should be around line 2698, changing = RRDs::fetch($file, $cf, '-s', $last, '-e', $last); to = RRDs::fetch($file, $cf); --Andy Ruttenberg, Tanya wrote: > I don't have that code. Here's what I have starting at line 2601 > > 2601 sub DBChooser > 2602 { > 2603 my ( %rrd, %evt ); > 2604 my $file; > 2605 foreach $file ( sort(@rrdfiles) ) { > 2606 if ( $file =~ /^(.+)\/\/(.+)\.rrd$/ ) { > 2607 $rrd{$file} = $datadirs{$1} . " " . $2; > 2608 } else { > 2609 die "Bad (rrd) filename in DBChooser: $file\n"; > 2610 } > 2611 } > > -----Original Message----- > From: Andy Mayhew [mailto:am at moka5.com] > Sent: Wednesday, May 16, 2007 1:46 PM > To: Ruttenberg, Tanya > Cc: drraw-users at taranis.org > Subject: Re: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find > RRA? > > I've been making this change to the drraw.cgi around line 2608: > $ diff drraw.cgi-orig drraw.cgi-mine > 2608c2608,2609 > < = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > --- > > = RRDs::fetch($file, $cf); > > # = RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > > The problem appears to be that rrd is actually returning a error of an > invalid data/time range for the file. > > --Andy > > Ruttenberg, Tanya wrote: >> I can't believe I just did that. Check out the *real* version number >> in the subject line. >> >> > ---------------------------------------------------------------------- > -- >> *From:* drraw-users-bounces at taranis.org >> [mailto:drraw-users-bounces at taranis.org] *On Behalf Of > *Ruttenberg, >> Tanya >> *Sent:* Wednesday, May 16, 2007 1:34 PM >> *To:* drraw-users at taranis.org >> *Subject:* [drraw-users] Drraw-2.23a -- cannot find RRA? >> >> Hi, >> >> I just attempted a long-overdue upgrade of drraw. I am on > Solaris8 >> with perl 5.8.7 and RRDtool 1.2.12. >> >> When I go to create a new graph, I click on "Add DB to data > sources" >> I get an error such as this: >> >> No data source for "AVERAGE" RRA found in file >> "/data/cricket-data//1min/ssa-cam-ncc-l0b905_port10_if.rrd"! >> >> The RRA is definitely there as indicated by rrdtool info >> . I get the same error no matter which RRD file I > choose >> and no matter which RRA I choose. >> >> Here is the error from error.log: >> >> [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value > in >> concatenation (.) or string at > /usr/local/apache2/cgi-bin/drraw.cgi >> line 2607. >> >> [Wed May 16 11:50:13 2007] drraw.cgi: Use of uninitialized value > in >> concatenation (.) or string at > /usr/local/apache2/cgi-bin/drraw.cgi >> line 2607. >> >> I have fiddled with %datadirs. Here is the latest definition of > it: >> %datadirs = ('/data/cricket-data' => '[Label1] ', >> '/local/data/cricket-data' => '[Label2] ', >> ); >> >> I've also tried this: >> >> %datadirs = ('/local/data/cricket-data' => '[cricket] ',); >> >> Same outcome every time. >> ??? >> >> Tanya Ruttenberg - RSIS Contractor >> OTSO/DNE/NMPEB >> tanya.ruttenberg at ssa.gov >> 410-965-9605 >> SMC Home Page: ___http://smc.ba.ssa.gov_ >> >> >> --------------------------------------------------------------------- >> - >> -- >> >> _______________________________________________ >> drraw-users mailing list >> drraw-users at taranis.org >> http://web.taranis.org/mailman/listinfo/drraw-users From jkrauska at gmail.com Wed May 16 12:07:55 2007 From: jkrauska at gmail.com (Joel Krauska) Date: Wed, 16 May 2007 09:07:55 -0700 Subject: [drraw-users] Shift? Message-ID: <464B2C5B.2030804@gmail.com> Apparently rrdtool 1.2 supports time shifting: http://www.vandenbogaerdt.nl/rrdtool/shift.php This is a cool feature for doing things like: How does this monday's data compare with last weeks? or Show me a week of daily curves overlapped to look for daily similarities. I can't find any options to use SHIFT in drraw. Am I just not looking hard enough? Thanks, Joel From kalt at taranis.org Wed May 16 19:11:34 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 16 May 2007 19:11:34 -0400 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <464B48D4.8020306@moka5.com> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> <464B4353.2040706@moka5.com> <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> <464B48D4.8020306@moka5.com> Message-ID: <20070516231133.GC2298@bzz.taranis.org> On May 16, Andy Mayhew wrote: | Sorry, I was working off of a slightly older 2.2 source set. | Should be around line 2698, changing | = RRDs::fetch($file, $cf, '-s', $last, '-e', $last); | to | = RRDs::fetch($file, $cf); Sigh, that's a bit furstrating. Which version of rrdtool are you using, Andy? The code used to be RRDs::fetch($file, $cf, '-s', 0, '-e', 0); as your first diff showed, but i recently changed it to RRDs::fetch($file, $cf, '-s', $last, '-e', $last); after someone with rrdtool 1.2.19 reported an error with the older code. But now, Tanya's telling us that 1.2.17 does not like the new code.. sigh. I'll test tomorrow whether two arguments alone works with 1.0.x. From am at moka5.com Wed May 16 19:20:13 2007 From: am at moka5.com (Andy Mayhew) Date: Wed, 16 May 2007 16:20:13 -0700 Subject: [drraw-users] drraw-2.2a3 was: Drraw-2.23a -- cannot find RRA? In-Reply-To: <20070516231133.GC2298@bzz.taranis.org> References: <5706AD7376228E458E486975B216BC0704C69A4A@HQ-MBX-02.ba.ad.ssa.gov> <5706AD7376228E458E486975B216BC0704C69A4B@HQ-MBX-02.ba.ad.ssa.gov> <464B4353.2040706@moka5.com> <5706AD7376228E458E486975B216BC0704C69A4D@HQ-MBX-02.ba.ad.ssa.gov> <464B48D4.8020306@moka5.com> <20070516231133.GC2298@bzz.taranis.org> Message-ID: <464B91AD.6070203@moka5.com> I'm using rrdtool 1.2.19 and drraw 2.1.3. I'll try updating my copy to 2.2.a3 and see if I still need to make the change to the RRDs::fetch. --Andy Mayhew Christophe Kalt wrote: > On May 16, Andy Mayhew wrote: > | Sorry, I was working off of a slightly older 2.2 source set. > | Should be around line 2698, changing > | = RRDs::fetch($file, $cf, '-s', $last, '-e', $last); > | to > | = RRDs::fetch($file, $cf); > > Sigh, that's a bit furstrating. Which version of rrdtool are > you using, Andy? > > The code used to be > RRDs::fetch($file, $cf, '-s', 0, '-e', 0); > as your first diff showed, but i recently changed it to > RRDs::fetch($file, $cf, '-s', $last, '-e', $last); > after someone with rrdtool 1.2.19 reported an error with the > older code. But now, Tanya's telling us that 1.2.17 does not > like the new code.. sigh. > > I'll test tomorrow whether two arguments alone works with > 1.0.x. > _______________________________________________ > drraw-users mailing list > drraw-users at taranis.org > http://web.taranis.org/mailman/listinfo/drraw-users From Tanya.Ruttenberg at ssa.gov Thu May 17 09:02:56 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Thu, 17 May 2007 09:02:56 -0400 Subject: [drraw-users] Drraw 2.2a3 Dashboard refresh problems Message-ID: <5706AD7376228E458E486975B216BC0704C69A54@HQ-MBX-02.ba.ad.ssa.gov> My dashboards are blinking! Solaris8 perl 5.8.7 RRDtool 1.2.12 The upper righthand corner of the dashboard states: "Refreshing in 24051816857m 33s" It is refreshing at least 1x/sec. Errors in the errorlog: [Thu May 17 08:59:55 2007] drraw.cgi: Use of uninitialized value in string eq at /usr/local/apache2/cgi-bin/drraw.cgi line 2472. [Thu May 17 08:59:57 2007] drraw.cgi: Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/cgi-bin/drraw.cgi line 2859. This occurs with both legacy dashboards and newly created ones. I'm think I'm going to wait on 2.2a3 before rolling it out to production. :-) (I know. It's an alpha.) Tanya Ruttenberg - RSIS Contractor OTSO/DNE/NMPEB tanya.ruttenberg at ssa.gov 410-965-9605 SMC Home Page: http://smc.ba.ssa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070517/a8d93181/attachment.html From kalt at taranis.org Mon May 21 20:49:44 2007 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 21 May 2007 20:49:44 -0400 Subject: [drraw-users] Stddevs and averages of multiple rrd source files In-Reply-To: <20070419150837.GQ5535@ccfw.in2p3.fr> References: <5ef002480704190749j72a01ec3w912da2d99ee47b48@mail.gmail.com> <20070419150837.GQ5535@ccfw.in2p3.fr> Message-ID: <20070522004944.GA16084@bzz.taranis.org> On Apr 19, Fabien Wernli wrote: | On Thu, Apr 19, 2007 at 07:49:28AM -0700, Mark Noworolski wrote: | > I have multiple rrds, say: file1.rrd, file2.rrd, file3.rrd, etc. (basically | > all the files in a certain directory). Each file is identical, in terms of | > data sources (let's say each one contains temperature readings). | | I believe you can only apply simple operations, like the sum, see | 'drraw.cgi?Browse=Help#dsconfig', in item 'Data Source>Data Source Template' Right, although it shouldn't be very hard to extend. Before i get into this, i'd like to have get a somewhat exhaustive list of what people are likely to want but isn't possible with the current system. Note that we're bound to be limited by what rrdtool offers. Thoughts? From kalt at taranis.org Mon May 21 21:10:55 2007 From: kalt at taranis.org (Christophe Kalt) Date: Mon, 21 May 2007 21:10:55 -0400 Subject: [drraw-users] Shift? In-Reply-To: <464B2C5B.2030804@gmail.com> References: <464B2C5B.2030804@gmail.com> Message-ID: <20070522011055.GB16084@bzz.taranis.org> On May 16, Joel Krauska wrote: | Apparently rrdtool 1.2 supports time shifting: | http://www.vandenbogaerdt.nl/rrdtool/shift.php | | This is a cool feature for doing things like: | | How does this monday's data compare with last weeks? | or | Show me a week of daily curves overlapped to look for daily similarities. | | | I can't find any options to use SHIFT in drraw. | | Am I just not looking hard enough? 2.2a3 supports SHIFT, although, it seems broken. i'll look into it and will hopefully have 2.2a4 out this week with a fix for this. From wernli at in2p3.fr Tue May 22 03:03:43 2007 From: wernli at in2p3.fr (Fabien Wernli) Date: Tue, 22 May 2007 09:03:43 +0200 Subject: [drraw-users] Stddevs and averages of multiple rrd source files In-Reply-To: <20070522004944.GA16084@bzz.taranis.org> References: <5ef002480704190749j72a01ec3w912da2d99ee47b48@mail.gmail.com> <20070419150837.GQ5535@ccfw.in2p3.fr> <20070522004944.GA16084@bzz.taranis.org> Message-ID: <20070522070343.GA5403@ccfw.in2p3.fr> On Mon, May 21, 2007 at 08:49:44PM -0400, Christophe Kalt wrote: > Right, although it shouldn't be very hard to extend. > Before i get into this, i'd like to have get a somewhat > exhaustive list of what people are likely to want but isn't > possible with the current system. Well, what we can do is make operations on the same DS of different RRDs. What we can't do is make operations on different DSs of differenr RRDs. something else I've been thinking about is the ability to stack different regexp DS's, which isn't possible at the time From ingo.lists at vum.at Fri May 25 06:08:42 2007 From: ingo.lists at vum.at (Ingo Lantschner) Date: Fri, 25 May 2007 12:08:42 +0200 Subject: [drraw-users] Howto stack a CDEF on a DEF Message-ID: <426FECBE-F336-4D24-964C-4B47E101C46D@vum.at> Hello, first of all, thanks for this tool - I am getting more and more a friend of it, as I am discovering its various features. One thing I can not find is how to stack a CDEF on a DEF: Instead of: DEF:a=/usr/local/nagios/nagiosgraph/rrd//localhost_Root% 20Partition_0.rrd:used:AVERAGE \ ... DEF:d=/usr/local/nagios/nagiosgraph/rrd//localhost_Root% 20Partition_0.rrd:max:AVERAGE \ CDEF:E=d,a,- \ AREA:E#008000:"free MB": \ AREA:a#800000:"used MB":STACK \ ... I would like to draw: DEF:a=/usr/local/nagios/nagiosgraph/rrd//localhost_Root% 20Partition_0.rrd:used:AVERAGE \ ... DEF:d=/usr/local/nagios/nagiosgraph/rrd//localhost_Root% 20Partition_0.rrd:max:AVERAGE \ CDEF:E=d,a,- \ AREA:a#800000:"used MB": \ AREA:E#008000:"free MB":STACK \ ... Unfortunately there is no possibility to check "Stacking" for a CDEF - at least not in version 2.2a3. Any idea? TIA Ingo. -- Ingo Lantschner Vienna/Austria Mob (+43-664) 143 84 18 From kalt at taranis.org Fri May 25 07:40:23 2007 From: kalt at taranis.org (Christophe Kalt) Date: Fri, 25 May 2007 07:40:23 -0400 Subject: [drraw-users] Howto stack a CDEF on a DEF In-Reply-To: <426FECBE-F336-4D24-964C-4B47E101C46D@vum.at> References: <426FECBE-F336-4D24-964C-4B47E101C46D@vum.at> Message-ID: <20070525114023.GA20888@bzz.taranis.org> On May 25, Ingo Lantschner wrote: | Unfortunately there is no possibility to check "Stacking" for a CDEF | - at least not in version 2.2a3. Any idea? It's a bug with 2.2a3, if you check the archives, you'll i've been promising 2.2a4 for a while now. In the meantime, the attached diff should do :-) Christophe -------------- next part -------------- Index: drraw.cgi =================================================================== RCS file: /home/cvs/drraw/drraw.cgi,v retrieving revision 1.218 retrieving revision 1.219 diff -u -r1.218 -r1.219 --- drraw.cgi 8 Mar 2007 01:59:29 -0000 1.218 +++ drraw.cgi 11 Mar 2007 21:13:33 -0000 1.219 @@ -3136,7 +3136,8 @@ -values=>[@gt], -default=>param("${ds}_Type"), -onchange=>"TypeCB(this.value, \"${ds}\")"), - ( $RRDs::VERSION >= 1.2 && $type eq 'ds' ) ? + ( $RRDs::VERSION >= 1.2 + && ( $type eq 'ds' || $type eq 'def' ) ) ? checkbox(-id=>"${ds}_STACK", -name=>"${ds}_STACK", -title=>'Whether to stack this element on top of the previous one', -label=>'', -value=>'Y') : '', From ingo.lists at vum.at Tue May 29 07:26:05 2007 From: ingo.lists at vum.at (Ingo Lantschner) Date: Tue, 29 May 2007 13:26:05 +0200 Subject: [drraw-users] CCS Definitions Message-ID: <56E74ED9-0D6F-4C40-9FE8-45C2734D99BA@vum.at> Hi, is there a simple way, to define the font-family of dashboards and templates? The definitions in drraw.cgi ("# Style Sheet $CSS = < References: <464B2C5B.2030804@gmail.com> Message-ID: <20070530020359.GA28413@bzz.taranis.org> On May 16, Joel Krauska wrote: | I can't find any options to use SHIFT in drraw. Okay, if you apply the attached diff to 2.2a3, you will get a working SHIFT. But i don't think i'm quite happy with the way this is done so i'm likely to change it. In the meantime, this will give you something to play with. Christophe -------------- next part -------------- Index: drraw.cgi =================================================================== RCS file: /home/cvs/drraw/drraw.cgi,v retrieving revision 1.224 diff -u -r1.224 drraw.cgi --- drraw.cgi 19 May 2007 22:14:36 -0000 1.224 +++ drraw.cgi 30 May 2007 02:00:55 -0000 @@ -2888,7 +2888,7 @@ if ( param("${ds}_CDEF") eq '' ); } param(-name=>"${ds}_Color", -value=>'White') - if ( param("${ds}_Type") =~ /(PRINT|COMMENT|-Nothing-)/ ); + if ( param("${ds}_Type") =~ /(SHIFT|PRINT|COMMENT|-Nothing-)/ ); param(-name=>"${ds}_Width", -value=>'') unless ( defined(param("${ds}_Width")) ); param(-name=>"${ds}_tWidth", -value=>'') From kalt at taranis.org Wed May 30 20:53:02 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 30 May 2007 20:53:02 -0400 Subject: [drraw-users] Drraw 2.2a3 Dashboard refresh problems In-Reply-To: <5706AD7376228E458E486975B216BC0704C69A54@HQ-MBX-02.ba.ad.ssa.gov> References: <5706AD7376228E458E486975B216BC0704C69A54@HQ-MBX-02.ba.ad.ssa.gov> Message-ID: <20070531005302.GB7030@bzz.taranis.org> On May 17, Ruttenberg, Tanya wrote: | My dashboards are blinking! Fun! oh, is that a bug? :) Could you please give a quick try to 2.2a4? i doubt it'll fix the problem, but.. From kalt at taranis.org Wed May 30 20:50:50 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 30 May 2007 20:50:50 -0400 Subject: [drraw-users] drraw 2.2a4 released --- Testers WANTED! Message-ID: <20070531005050.GA7030@bzz.taranis.org> Version 2.2a4 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! Changes since 2.2a3 [2007/03/17]: - Fixed support for SHIFT graph command. - Updated RRDs::fetch usage again (courtesy of Andy Mayhew). - Saving dashboards could generate bad index entries (reported by Fabien Wernli). - Added "Invisible" color (suggested by John Rouillard). - Dashboard style display for templates broke custom time display of templates (reported by Mark Noworolski). - Two typos caused forms to use POST instead of GET (courtesy of Fabien Wernli). - The graph editor no longer allowed stacking CDEFs or VDEFs (reported by John Rouillard). Changes since 2.2a2 [2007/01/14]: - Improved default color assignment (courtesy of David Nolan). - Allow configuring a custom set of colors (courtesy of David Nolan). - Updated RRDs::fetch usage for newer RRDtool versions (courtesy of John Milton) Changes since 2.2a1 [2006/07/20]: - Added a dashboard style display for templates (with multiple selections). - New "Format" parameter can be used in graph URL to override saved setting. - PDF and SVG formats are now properly embedded in HTML. - Added warning and check to avoid obscure error caused by misconfiguration. - Minor JavaScript enhancements to the graph editor. - Added notice about CGI.pm incompatibility. Changes 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. From Tanya.Ruttenberg at ssa.gov Thu May 31 09:12:17 2007 From: Tanya.Ruttenberg at ssa.gov (Ruttenberg, Tanya) Date: Thu, 31 May 2007 09:12:17 -0400 Subject: [drraw-users] Drraw 2.2a3 Dashboard refresh problems In-Reply-To: <20070531005302.GB7030@bzz.taranis.org> References: <5706AD7376228E458E486975B216BC0704C69A54@HQ-MBX-02.ba.ad.ssa.gov> <20070531005302.GB7030@bzz.taranis.org> Message-ID: <5706AD7376228E458E486975B216BC070771D9E0@HQ-MBX-02.ba.ad.ssa.gov> I don't know what you did, dude, but 2.2a4 is not exhibiting the "blinking" behavior. Cool. -----Original Message----- From: drraw-users-bounces at taranis.org [mailto:drraw-users-bounces at taranis.org] On Behalf Of Christophe Kalt Sent: Wednesday, May 30, 2007 8:53 PM To: drraw-users at taranis.org Subject: Re: [drraw-users] Drraw 2.2a3 Dashboard refresh problems On May 17, Ruttenberg, Tanya wrote: | My dashboards are blinking! Fun! oh, is that a bug? :) Could you please give a quick try to 2.2a4? i doubt it'll fix the problem, but.. _______________________________________________ drraw-users mailing list drraw-users at taranis.org http://web.taranis.org/mailman/listinfo/drraw-users From sokamya at yahoo.co.uk Wed Jun 13 11:08:44 2007 From: sokamya at yahoo.co.uk (Ahmed Hassan) Date: Wed, 13 Jun 2007 15:08:44 +0000 (GMT) Subject: [drraw-users] Step by step install on windows Message-ID: <549249.56779.qm@web25411.mail.ukl.yahoo.com> Hi All Please bear with me. I am new to this application and was wondering whether there is a "HOWTO" extract/install drraw on a windows operating system. I 've checked the wiki but it doesn't say how to extract the file. I've tried winzip and PowerArchive but to no avail. Please help. Best Wishes Ahmed ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070613/bdc5d429/attachment.html From kalt at taranis.org Wed Jun 13 11:12:07 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 13 Jun 2007 11:12:07 -0400 Subject: [drraw-users] Step by step install on windows In-Reply-To: <549249.56779.qm@web25411.mail.ukl.yahoo.com> References: <549249.56779.qm@web25411.mail.ukl.yahoo.com> Message-ID: <20070613151207.GA7756@bzz.taranis.org> On Jun 13, Ahmed Hassan wrote: | Please bear with me. I am new to this application and was wondering | whether there is a "HOWTO" extract/install drraw on a windows operating | system. | | I 've checked the wiki but it doesn't say how to extract the file. I've | tried winzip and PowerArchive but to no avail. Ah, yes, i really need to provide a .zip. A newer WinZip should definitely be able to handle this, it's a gzipped tar file. Changing the extension to .tar.gz may help. If not, i'll try to get a .zip up this week. i actually have some spare time available in the coming couple weeks so i'm likely to work on drraw a bit. From sokamya at yahoo.co.uk Wed Jun 20 13:28:42 2007 From: sokamya at yahoo.co.uk (Ahmed Hassan) Date: Wed, 20 Jun 2007 17:28:42 +0000 (GMT) Subject: [drraw-users] DRRAW Config - No graphs Message-ID: <510835.28926.qm@web25404.mail.ukl.yahoo.com> Hi All Seems to have drawn a blank with my configuration of drraw on my Win XP box running IIS. Could someone please point out what am doing wrong. My configs are as follows: 1. drraw.cgi and drraw.conf are located at - c:\Inetpub\wwwroot\cgi-bin 2. modified %datadirs to point to: %datadirs = 'c:\data\rrd\rrdtool\database\checkresult\*.rrd' => My RRD files are generated are stored at - c:\data\rrd\rrdtool\database\checkresult Is the *.evt referring to the windows event viewer logs? 3. modified %saved_dir and $tmp to: c:\data\drraw\saved and c:\data\drraw\temp 4. Perl v5.8.8 is located at c:\Perl 5. RRDtool Perl Module located at c:\Perl\site\lib\RRD\Simple.pm What is the purpose of the $saved_dir & $tmp-dir? Best Wishes Ahmed ___________________________________________________________ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://web.taranis.org/pipermail/drraw-users/attachments/20070620/eacdf1a1/attachment.html From kalt at taranis.org Wed Jun 20 23:09:08 2007 From: kalt at taranis.org (Christophe Kalt) Date: Wed, 20 Jun 2007 23:09:08 -0400 Subject: [drraw-users] DRRAW Config - No graphs In-Reply-To: <510835.28926.qm@web25404.mail.ukl.yahoo.com> References: <510835.28926.qm@web25404.mail.ukl.yahoo.com> Message-ID: <20070621030908.GA23174@bzz.taranis.org> On Jun 20, Ahmed Hassan wrote: | Seems to have drawn a blank with my configuration of drraw on my Win XP box running IIS. | Could someone please point out what am doing wrong. What problem are you encountering exactly? it isn't clear from your email. | My configs are as follows: | | 1. drraw.cgi and drraw.conf are located at - c:\Inetpub\wwwroot\cgi-bin | | 2. modified %datadirs to point to: %datadirs = 'c:\data\rrd\rrdtool\database\checkresult\*.rrd' => | My RRD files are generated are stored at - c:\data\rrd\rrdtool\database\checkresult %datadirs = ( 'c:\data\rrd\rrdtool\database\checkresult' => 'label'); These must be directories, not patterns. Also, for Windows PATH, you may need 'c:/data/rrd/rrdtool/database/checkresult', i forget which work and which doesn't quite work | Is the *.evt referring to the windows event viewer logs? No, see the README.EVENTS file in the distribution (or the online help?). | What is the purpose of the $saved_dir & $tmp-dir? $saved_dirs is where your definitions are saved, $tmp_dir is used for various temporary files. When starting, these should be empty and will get populated/maintained automatically.