[rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ?

This is a discussion on [rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ? within the RRD Users forums, part of the Networking and Network Related category; Thanks for the input guy's I converted my end time however the generation of 6 graphs still takes 30 ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-18-2006
Rob Conway
 
Posts: n/a
Default [rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ?

Thanks for the input guy's

I converted my end time however the generation of 6 graphs still takes 30
seconds on my 266 mhz processor. The script below only shows one rrdtool
graph statement however the other 5 graphs statements are the same. Is
there anything else I can do to optimise the graph generation.


#!/bin/bash
etime=$(/bin/date +%s)
step=300
etime=$((${etime}/${step}*${step} ))

## Aquarium PH GRAPH ##
rrdtool graph /website/ph1d.png --start e-1d --end $etime \
--upper-limit 8.0 --lower-limit 6.2 --units-length 2 \
--rigid --slope-mode --width 426 --height 200 \
--title "pH" --vertical-label "PH" --interlaced \
DEF:phv=/public/aquaph.rrd:ph:AVERAGE LINE1:phv#0000FF:"Ph=" \
VDEF:phlast=phv,LAST GPRINT:phlast:"%3.2lf%S" \
VDEF:phavg=phv,AVERAGE GPRINT:phavg:"avg=%3.2lf%spH " \
--watermark "Aquarium PH Graph"

Above is generated another 5 times

--
Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:38 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0