Two comments/suggestions:

> 
> 4)       Every third script (ideally 30 min) update the 
> weekly graphs, every
> 12th script [2 hrs] update the monthly graphs, and once a day 
> [every 72nd
> script] update the yearly graphs
> 


Why do all this work/math and not use the --lazy option built into
RRDtool?

    [-z|--lazy]

    Only generate the graph if the current graph is out of date or not
existent.



> $cmd= $rrd.' graph images/'.$updated[0].'tempLAST24.png 
> --interlaced -n
> DEFAULT:0:C:/WINDOWS/Fonts/ARIAL.TTF -a PNG -X 0 -v Degrees
> DEF:theLine=rrd\\'.$updated[0].'.rrd:temp:AVERAGE
> LINE1:theLine#FF0000:"Temperature - Last 24 Hours" --start 
> '.(time() - 86400).'
> --end N -A'; 
> 
> `$cmd`;
> 

Why use backticks to shell out of your Perl code instead of using the
RRDs.pm perl module? 

use RRDs;
RRDs::graph(
        'images/'.$updated[0].'tempLAST24.png',
        '--interlaced',
        '--font=DEFAULT:0:C:/WINDOWS/Fonts/ARIAL.TTF',
        :
        :
        :
);


The suggestions may not save you much, but over ~12k iterations you may
find it'll save you enough not to have to write anything fancier.

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to