RRD file version 0005 issue (can't graph from PHP)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RRD file version 0005 issue (can't graph from PHP)

humke
This post was updated on .
Hi there,

I am working on a local/private website using PHP7 and the rrd 2.0.1 extension for PHP. I have several rrd files and apparently one of them is rrd file version 0005 (don't ask me why or how I got this one to be 0005, because I don't know). When I want my webpage to graph something from this rrd it does not work and I get the following error:

rrd_graph() ERROR: can't handle RRD file version 0005

The PHP code that I created works fine with version 0003 rrd files, but gives the error when the graph function is used on file version 0005 rrd file. Any pointers on this? Can I convert from 0005 to 0003 if necessary?

php -v output:

PHP 7.0.18-1~bpo8 1 (cli) (built: Apr 12 2017 03:29:32) ( NTS )Copyright (c) 1997-2017
The PHP GroupZend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.18-1~bpo8 1, Copyright (c) 1999-2017, by Zend Technologies

part of phpinfo() output:

rrd tool module enabled
rrd tool module version2.0.1
rrdtool library version1.4.8
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RRD file version 0005 issue (can't graph from PHP)

humke
I meant converting from 0005 to 0003 obviously ;)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RRD file version 0005 issue (can't graph from PHP)

oetiker
Administrator
the easiest way ahead is to compile your php with rrdtool 1.6 extensions, then it will be able to deal with 0005 files.

cheers
tobi

----- On May 5, 2017, at 1:45 PM, humke [hidden email] wrote:

> I meant converting from 0005 to 0003 obviously ;)
>
>
>
> --
> View this message in context:
> http://rrd-mailinglists.937164.n2.nabble.com/RRD-file-version-0005-issue-can-t-graph-from-PHP-tp7583539p7583540.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
>
> _______________________________________________
> rrd-users mailing list
> [hidden email]
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch [hidden email] +41 62 775 9902

_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Loading...