[rrd-users] Re: update: minor changes. still no work.

Hunter Peress hunterp at fastmail.fm
Thu Nov 13 01:30:11 MET 2003


On Thu, 13 Nov 2003 00:53:30 +0100, "Alex van den Bogaerdt"
<alex at ergens.op.het.net> said:


> Perhaps it helps to do a couple of updates.  Do them less than 600
> seconds apart.  Then check again.

Of course i did this well before you asked.

Here is code as a shell script.  

-give it any argument to create test.rrd 
-and give it none to update,create png and move png to ~/public_html
I also tried with many different values instead of 600


#!/bin/bash
if [ $1 ] ; then
    echo "creating"
    rrdtool create test.rrd             \
            DS:ds1:GAUGE:600:U:U  \
            DS:ds2:GAUGE:600:U:U \
            RRA:AVERAGE:0.5:1:2

    rrdtool update test.rrd N:15341273:14508064

else 
    echo "updating"
    rrdtool update test.rrd N:25341273:24508064

    rrdtool graph speed.png                              \
          --height 800 --width 600              \
            DEF:dds1=test.rrd:ds1:AVERAGE \
            DEF:dds2=test.rrd:ds2:AVERAGE \
            LINE1:dds1#1e4477:"ds1"\
            LINE1:dds2#2f4477:"ds2"
     
    cp speed.png ~/public_html/
fi

-- 
  Hunter Peress
  hunterp at fastmail.fm

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



More information about the rrd-users mailing list