[rrd-users] php rrdtool error

suja sujaram at igcar.gov.in
Fri Nov 9 06:30:22 CET 2012


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.



More information about the rrd-users mailing list