[rrd-users] Re: RRDs::create not creating

Tobias Oetiker oetiker at ee.ethz.ch
Fri Jun 21 00:18:46 MEST 2002


Yesterday Chris Majewski wrote:

>
> Folks
> I'm unable to create an rrd with RRDs::create under rrdtool 1.0.35.
> I'm doing this:
>
>     my @createParams = ($compareRRD,
>                         '--start',
>                         $fromTime,
>                         '--end',
>                         $untilTime,
>                         "DS:@$names[0]:GAUGE:400:U:U",
>                         "RRA:AVERAGE:0.5:1:300");
>     RRDs::create(@createParams);
>     if ($error ne '') { # something bombed
>          warn("RRDs error: ", RRDs::error);
>     }
>
> I don't get any RRDs error, and yet the file is not created.
> If I create the file beforehand with sysopen(), I end up with an empty
> file. What's up?

the error test must be

my $error = RRDs::error;
warn "ERROR: $error\n" if $error;

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

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, OETIKER+PARTNER AG, Gallusstrasse 25
 / // _ \/ _ \/ / CH-4600 Olten, phoneto:+41(0)62 213 9909
/_/ \.__/_.__/_/ tobi at oetiker.ch http://google.com/search?q=tobi

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