<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Anybody else using RRD:CGI::Image on rrdtool-1.3.1</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I managed to get it installed without
errors and think I am very close. The example page shows the
“graphing error” image….</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>When I move the slider alert(url) is
showing the following string:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>/hist/rrd.png.cgi?--vertical-label=pH;--title=Aquarium
Statistics; DEF:phv=aqua_ph.rrd:P1:AVERAGE;LINE1:phv%2333eeff:Aquarium;--start=07/01/2008
</span></font></b><b><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy;font-weight:bold'>00:00</span></font></b><b><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy;font-weight:bold'>;--end=</span></font></b><b><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy;font-weight:bold'>07/05/2008</span></font></b><b><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy;font-weight:bold'> </span></font></b><b><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy;
font-weight:bold'>00:00</span></font></b><b><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy;
font-weight:bold'>;</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'> </span></font></b></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>however it does not generate a graph,
however does show the error graphic so I assume perl and the module is
running. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I was a little confused with the date
format as I am in </span></font><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Australia</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> its day/month/year so I do not now if this is my problem. ?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> 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</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>#!/usr/bin/perl</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'> </span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>use
strict;</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>use
warnings;</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>use RRD::CGI::Image;</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>use CGI qw[header
Vars];</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'> </span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>print
header( 'image/png' );</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'> </span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>my
$artist = RRD::CGI::Image->new(</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>
rrd_base => '/var/www/',</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>
error_img => '/var/www/hist/graphing_error.png',</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>
logging => '/var/www/hist/rrd_error.log',</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>);</span></font></b></p>
<p class=MsoNormal><b><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold'>$artist->print_graph(
Vars() );</span></font></b></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Does the above look ok ?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Appreciate your advice</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> Cheers from </span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Australia</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'>Just for reference the following RRD::Graph does work just
fine and returns a full web page with graph</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> </span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'>---------------------------------------------------------------------------------------------------------------</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'>#!/usr/bin/rrdcgi</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <HTML></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <HEAD><TITLE>RRDCGI
Demo</TITLE></HEAD></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <BODY></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <H1>RRDCGI Example Page for <RRD::CV
RRD_NAME></H1></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <H2>Selection</H2></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <FORM><INPUT NAME=RRD_NAME TYPE=RADIO VALUE=aqua_ph>
Room A,</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <INPUT NAME=RRD_NAME
TYPE=RADIO VALUE=roomB> Room B.</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <INPUT
TYPE=SUBMIT></FORM></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <H2>Graph</H2></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <P></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> <RRD::GRAPH <RRD::CV::PATH RRD_NAME>.png
--lazy</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'>
--title "Temperatures for "<RRD::CV::QUOTE RRD_NAME></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> DEF:cel=<RRD::CV::PATH
RRD_NAME>.rrd:P1:AVERAGE</span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> LINE2:cel#00a000:"D.
Celsius"></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> </span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> </P></span></font></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue;
font-weight:bold'> </BODY></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue;font-weight:bold'> </HTML></span></font></b></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> jkeroes@gmail.com
[mailto:jkeroes@gmail.com] <b><span style='font-weight:bold'>On Behalf Of </span></b>Joshua
Keroes<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Thursday,
November 27, 2008</span></font><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>7:26 AM</span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> Rob Conway<br>
<b><span style='font-weight:bold'>Cc:</span></b> rrd-users@lists.oetiker.ch<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rrd-users] anybody
developed User trend controls</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>There's
one included as an example with the CPAN module RRD::CGI::Image</span></font></p>
<div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On </span></font>Wed, Nov 26, 2008 at 3:28 AM, Rob Conway <<a href="mailto:rjconway@bigpond.com">rjconway@bigpond.com</a>>
wrote:</p>
<div link=blue vlink=purple>
<div>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Hi all,</span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>I just use rrdtool to collect gauge data from a
number of temperature variables and display the trends via a web
page. <a href="http://www.rjconway.homeip.net" target="_blank">www.rjconway.homeip.net</a></span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>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.</span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Regards</span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'> </span></font></p>
<p style='margin-left:.5in'><font size=2 color="#888888" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#888888'>rob</span></font></p>
</div>
</div>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a></span></font></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>No virus found in this incoming message.<br>
Checked by AVG - http://www.avg.com<br>
Version: 8.0.175 / Virus Database: 270.9.10/1814 - Release Date: </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>11/26/2008</span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>8:53 PM</span></font></p>
</div>
</body>
</html>