[rrd-users] Question for RRDs::update

Hsiao, Chang-Ping CHsiao at corp.untd.com
Fri Apr 5 02:53:58 MEST 2002


All:

	The following is what I observed for RRDs::update.  The number being
fed to RRDs is different  than the one shown by rrdtool fetch.  Is there
anything that could make this happen?

	(The time shown in the RRDs::update was actually later while I was
trying to find out if my input was wrong.)
	(The subroutine is used to create the rrds.)

Chang-Ping Hsiao

RRDs::update /export/home/srvmon/perl_code/gross_free_signup/rrds/test.rrd,
"1017963791:155986:37391:10385:199435:2259:2317:0:525";


SunOS [15:50:32] srvmon at irony <~/perl_code/gross_free_signup> rrdtool fetch
rrds/test.rrd MAX -s now-3d
                     JUNO          NZRO          UNTD         TOTAL
HTTPNZRO       FTPNZRO      HTTPJUNO       FTPJUNO

1017705600: 1.1178150000e+05 3.3937333333e+04 6.6431666667e+03
1.4888666667e+05 8.3041666667e+03 6.9520000000e+03 0.0000000000e+00
0.0000000000e+00
1017792000: 1.4649920410e+05 3.7452455764e+04 8.2552796759e+03
1.8785444863e+05 1.2108318056e+03 6.5392642824e+03 0.0000000000e+00
0.0000000000e+00
1017878400: 1.5695769366e+05 3.8769371620e+04 1.0219995417e+04
2.0132588586e+05 6.4316159028e+03 2.9070163889e+03 0.0000000000e+00
8.7487847222e+01

sub rrd_create {
        my ($rrd, $epoch) = @_;

        print "Creating $rrd...\n";

        my $start = $epoch - 2 * 86400;
        my $step = 86400;

        my $ds1 = "DS:JUNO:GAUGE:172800:0:U";
        my $ds2 = "DS:NZRO:GAUGE:172800:0:U";
        my $ds3 = "DS:UNTD:GAUGE:172800:0:U";
        my $ds4 = "DS:TOTAL:GAUGE:172800:0:U";
        my $ds5 = "DS:HTTPNZRO:GAUGE:172800:0:U";
        my $ds6 = "DS:FTPNZRO:GAUGE:172800:0:U";
        my $ds7 = "DS:HTTPJUNO:GAUGE:172800:0:U";
        my $ds8 = "DS:FTPJUNO:GAUGE:172800:0:U";

        my $rra1 = "RRA:MIN:0.5:1:3660";
        my $rra2 = "RRA:MAX:0.5:1:3660";

        my @ds  = ($ds1, $ds2, $ds3, $ds4, $ds5, $ds6, $ds7, $ds8);
        my @rra = ($rra1, $rra2);

        my @create = ('-b', $start, '-s', $step, @ds, $rra1, $rra2);

        RRDs::create $rrd, @create;
        print RRDs::error, "\n" if RRDs::error;
}



__________________________________________ 
NetZero is now part of United Online
Sign Up for NetZero Platinum Today
Only $9.95 per month! http://www.netzero.net

--
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