This is a discussion on [rrd-users] Re: Trying to update rddtool database via script within the RRD Users forums, part of the Networking and Network Related category; Hi there Would this work :- RRDs::create "$rdpath", "--step", "300", "DS:bpsin:GAUGE:...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi there
Would this work :- RRDs::create "$rdpath", "--step", "300", "DS:bpsin:GAUGE:600:0:1073741824", "RRA:AVERAGE:0.5:1:1200", "RRA:MIN:0.5:12:2400", "RRA:MAX:0.5:12:2400", "RRA:AVERAGE:0.5:12:2400", } RRDs::update "$rdpath", "N:$value", This is what am trying to use at the moment and when I dump the data its full of NaN Thanks Richard > -----Original Message----- > From: William Owen [mailto:william.owen@profilesmail.com] > Sent: 04 March 2005 21:41 > To: Richard Burton > Subject: RE: [rrd-users] Trying to update rddtool database via script > > If you are doing it with Perl, you will want to do something > like this: > > Use strict; > Use RRDs; > > RRDs::update ("somefile.rrd", "--template", "someds:someotherds", > "timestamp:value") > > If (defined(RRDs::error)) { > Warn RRDs::error; > } > > -----Original Message----- > From: Richard Burton [mailto:richard@atomwide.com] > Sent: Friday, March 04, 2005 3:15 PM > To: rrd-users@list.ee.ethz.ch > Subject: [rrd-users] Trying to update rddtool database via script > > Hi there > > I wonder if anyone can help. > > I am trying to create GAUGE database and update it via a > script. I intend to then convert this to perl. My problem is > that I cannot get any data to be added to the database. Below > is m test script, can anyone tell me why I end up with a > database full of NaN's > > rrdtool create lgflnet-telehouse.rrd --step=300 > DS:DS0:GAUGE:600:0:1073741824 RRA:AVERAGE:0.5:1:1200 > RRA:MIN:0.5:12:2400 RRA:MAX:0.5:12:2400 RRA:AVERAGE:0.5:12:2400 > > rrdtool update lgflnet-telehouse.rrd N:123456 > > > > Kind Regards > > Richard Burton > > > -- > Unsubscribe > mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe > Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help > Archive http://www.ee.ethz.ch/~slist/rrd-users > WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi > > -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi |