[rrd-users] php rrdtool error
Benny Baumann
BenBE at geshi.org
Fri Nov 9 11:01:12 CET 2012
Hi,
the PHP RRD version that's linked on the homepage is (still) outdated. I
did some updates to the PHP bindings recently which can be found at
http://blog.benny-baumann.de/?p=1279
There you'll find a much more recent version compatible with most recent
PHP as well as most recent librrd.
Please report back if you have any issues with it.
Additionally it seems you are missing some required parameters:
Basically librrd is interfaces much like the command line interface. So
just give this command a try on the command line and you'll see you're
missing the interval sizes and some other required information when
creating.
At the link mentioned above you'll also find a small wrapper I usually
use which is based on my binary interface which makes some parts of the
creation process somewhat easier.
Regards,
BenBE.
P.S.: In case you
're not that good at German, try this direct link:
http://blog.benny-baumann.de/wp-content/uploads/php-rrd-ext.0.2.tar.gz
Am 09.11.2012 06:30, schrieb suja:
> Dear Friends,
> I am a new user of rrdtool. I wish to use rrdtool in my php script.
> Details:
> Php version - 5.1.6
> rrdtool - 1.4.6
> php rrd module - rrd-1.0.5 - http://pecl.php.net/package/rrd/1.0.5
>
> The problem is, when I try to run a simple PHP script with rrd_create
>
> $rrdFile="speed.rrd";
> $ret = rrd_create($rrdFile,
> array(
> "DS:speed:COUNTER:600:U:U",
> "RRA:AVERAGE:0.5:1:24",
> "RRA:AVERAGE:0.5:6:10"
> )
> );
>
> if($ret == 0){
> $err=rrd_error();
> echo "Create error:$err\n";
> }
>
> I am getting an error "Create error:can't parse argument 'speed.rrd'"
>
> I am getting the same error with rrd-1.1.0 as well as php-rrdtool available
> at http://oss.oetiker.ch/rrdtool/pub/contrib/.
>
> Kindly suggest a solution for the problem
>
> regards,
> suja
>
>
>
>
>
> --
> View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/php-rrdtool-error-tp7580605.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
More information about the rrd-users
mailing list