[rrd-users] I´ve a day graphic and i want a MONTH graphic...¿?¿?¿?¿

Angel Angel listasdistribucion at gmail.com
Thu Oct 20 13:46:47 MEST 2005


Hi to all,
I have a problem to paint a graphic of 1 month history or 1/2 month
(15 days arprox)

Tha graph that i have now its a graphic from the last 24 hours....and
this´s the code to create the DDBB-->
Do you know what i need to change to paint the graph that i want? (month graph)
Thanks in advanced for time.

Angel..


LINUX:/home/bbhome/rrd/scripts# more dobbddx.sh
#!/usr/bin/perl

#makes things work when run without install
use lib qw( ../perl-piped/blib/lib  ../lib/perl );

#makes programm work AFTER install
use lib qw( /usr/local/rrdtool-1.0.34/lib/perl );

use RRDp;

$STEP = 180;
$RUNS = 9600;
$RRD = "/home/bbhome/rrd/rrd/xxx.rrd";

# some magic to find the correct rrdtol executable
if ( -x "/usr/local/rrdtool-1.0.34/bin/rrdtool") {
   RRDp::start "/usr/local/rrdtool-1.0.34/bin/rrdtool";
} elsif ( -x "../bin/rrdtool") {
   RRDp::start "../bin/rrdtool";
} else {
   RRDp::start "../src/rrdtool";
}

print "* Creating RRD \n\n";

$START = time()-$RUNS*$STEP;

RRDp::cmd "create $RRD -s $STEP
        DS:xxpin:GAUGE:360:0:U
        DS:xxxpin:GAUGE:360:0:U
        RRA:AVERAGE:0.5:1:576
        RRA:AVERAGE:0.5:6:576
        RRA:AVERAGE:0.5:24:576
        RRA:AVERAGE: 0.5:288:576";

$answer = RRDp::read;
#($user,$sys,$real) =  ($RRDp::user,$RRDp::sys,$RRDp::real);

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list