Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: RRDTool::OO not able to create a COMPUTE data source?

by sanju7 (Acolyte)
on Oct 04, 2010 at 02:15 UTC ( [id://863221]=note: print w/replies, xml ) Need Help??


in reply to RRDTool::OO not able to create a COMPUTE data source?

Hi Bronto:

I am not sure if i get it right if you are specifying something else than creating a data source (DS) using "RRDTool::OO". If not then my bad but If that is creating a COMPUTE DS then its pretty straight forward . COMPUTE data source is nothing but data source type ABSOLUTE. This is the same way i create a GAUGE data source using RRDTool::OO

#! /usr/bin/perl -w #simple test ABSOLUTE DS use strict; use RRDTool::OO; # creating new rrd object file my $rrd = RRDTool::OO->new( file => "testrrd.rrd" ); # Create a round-robin database $rrd->create( step => 1, # one-second intervals data_source => { name => "mynewDS", type => "ABSOLUTE" }, archive => { rows => 5 });

This would create a new rrd data file testrrd.rrd with DS the specified DS type.

Replies are listed 'Best First'.
Re^2: RRDTool::OO not able to create a COMPUTE data source?
by bronto (Priest) on Oct 05, 2010 at 09:04 UTC
    Hi

    What do you exactly mean when you say that a COMPUTE and an ABSOLUTE are the same thing? From the rrdcreate man page I'd say they aren't:

    I am new to both rrdtool and RRDTool::OO, so if I am missing something obvious please bear with me and tell me ;)

    Ciao!
    --bronto


    In theory, there is no difference between theory and practice. In practice, there is.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://863221]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found