[rrd-users] Re: Trying to update rddtool database via script

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


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2005
Richard Burton
 
Posts: n/a
Default [rrd-users] Re: Trying to update rddtool database via script

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0