[rrd-users] anybody developed User trend controls

Rob Conway rjconway at bigpond.com
Sat Nov 29 23:45:39 CET 2008


Anybody else using RRD:CGI::Image  on rrdtool-1.3.1

 

I managed to get it installed without errors and think I am very close.  The
example page shows the “graphing error” image
.

  

When I move the slider alert(url) is showing the following string:

 

/hist/rrd.png.cgi?--vertical-label=pH;--title=Aquarium Statistics;
DEF:phv=aqua_ph.rrd:P1:AVERAGE;LINE1:phv%2333eeff:Aquarium;--start=07/01/200
8 00:00;--end=07/05/2008 00:00;

 

however it does not generate a graph, however does show the error graphic so
I assume perl and the module is running. 

I was a little confused with the date format as I am in Australia its
day/month/year so I do not now if this is my problem.  ?

 

 When ever I try and simplify the cgi string (ie delete the start/stop times
and replace with now e-1d)  it screws up and doesn’t even return even the
“graph error” image

 

 

I have placed my rrd database file in the root of my apache2 web server
/var/www/aqua_ph.rrd  and modified the rrd.png.cgi file as below.

 

#!/usr/bin/perl

 

use strict;

use warnings;

use RRD::CGI::Image;

use CGI qw[header Vars];

 

print header( 'image/png' );

 

my $artist = RRD::CGI::Image->new(

        rrd_base  => '/var/www/',

        error_img => '/var/www/hist/graphing_error.png',

        logging   => '/var/www/hist/rrd_error.log',

);

$artist->print_graph( Vars() );

 

 

Does the above look ok ?

 Appreciate your advice

 Cheers from Australia

 

 

Just for reference the following RRD::Graph does work just fine and returns
a full web page with graph

 

----------------------------------------------------------------------------
-----------------------------------

#!/usr/bin/rrdcgi

 <HTML>

 <HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>

 <BODY>

 <H1>RRDCGI Example Page for <RRD::CV RRD_NAME></H1>

 <H2>Selection</H2>

 <FORM><INPUT NAME=RRD_NAME TYPE=RADIO VALUE=aqua_ph> Room A,

       <INPUT NAME=RRD_NAME TYPE=RADIO VALUE=roomB> Room B.

       <INPUT TYPE=SUBMIT></FORM>

 <H2>Graph</H2>

 <P>

 <RRD::GRAPH <RRD::CV::PATH RRD_NAME>.png --lazy

          --title "Temperatures for "<RRD::CV::QUOTE RRD_NAME>

          DEF:cel=<RRD::CV::PATH RRD_NAME>.rrd:P1:AVERAGE

          LINE2:cel#00a000:"D. Celsius">

 

 </P>

 </BODY>

 </HTML>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-----Original Message-----
From: jkeroes at gmail.com [mailto:jkeroes at gmail.com] On Behalf Of Joshua
Keroes
Sent: Thursday, November 27, 2008 7:26 AM
To: Rob Conway
Cc: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] anybody developed User trend controls

 

There's one included as an example with the CPAN module RRD::CGI::Image

On Wed, Nov 26, 2008 at 3:28 AM, Rob Conway <rjconway at bigpond.com> wrote:

Hi all,

I just use rrdtool to collect gauge data from a number of temperature
variables and display the trends via a web page.   www.rjconway.homeip.net

 

I was wondering if anybody has seen a site that uses a "slider bar" under
the trend to enable the user to select another start time, or simple
calendar controls that generate the trends on-the-fly that are simply done
using forms & cgi files.  I am looking to create a ½ screen popup that
enables the user to interact with the trend history function.  At the moment
you can see from my site I simply have a drop down menus for history past
the 2 days.

 

Regards

 

rob


_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

 

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.10/1814 - Release Date: 11/26/2008
8:53 PM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20081130/531ef727/attachment.html 


More information about the rrd-users mailing list