[rrd-users] Can not parse any arugments with Perl RRDs

mugi at pinesalad.net mugi at pinesalad.net
Thu Apr 6 02:53:23 MEST 2006


Hello all,

I have a bit of an odd situation with Perl RRDs not accepting any
arguments.

Following the rrdbuild.txt doc I've been able to compile rrdtool-1.2.12
on AIX 5.3.
In trying to run the example scripts (bigtops.pl as an example), I'm
getting the following error:

bigtops.pl: unable to create `randome.rrd': can't parse argument
'--start'

The bigtops.pl create line is:
RRDs::create ($rrd, "--start",$start-1, "--step",300,
              "DS:a:GAUGE:600:U:U",
              "DS:b:GAUGE:600:U:U",
              "RRA:AVERAGE:0.5:1:300");

$start is being populated correctly and $start-1 works fine.

For testing, I tried to remove "--start",$start-1, but then a "can't
parse argument --step" happens.
Removing "00step",300, then causes "can't parse argument 'randome.rrd'

In looking at the output from building rrdtool, I don't see any errors
when it comes to building the perl modules.
So I'm a bit confused on what issue is causing this. 

There was a suggestion to build RRDs as static, but that doesn't help.

I tried to run "make test" in the bindings/perl-shared directory and got
the following results:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base....t/base.t: unable to create `demo1.rrd': can't parse argument
'-b'
t/base....dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-7
        Failed 6/7 tests, 14.29% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/base.t     255 65280     7   11 157.14%  2-7
Failed 1/1 test scripts, 0.00% okay. 6/7 subtests failed, 14.29% okay.
gmake: *** [test_dynamic] Error 2


Running rrdtool from a prompt, the following does work:

rrdtool create junk.rrd --start 1144278591 --step 300 DS:a:GAUGE:600:U:U
DS:b:GAUGE:600:U:U RRA:AVERAGE:0.5:1:300

Ther perl version is 5.8.2

Does anybody have any ideas on this?

Thanks,
-Alan

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list