Any word on what versions should be used for the current scalr release? On Mar 15, 6:15 am, "Srinivasan Subramanian" <[email protected]> wrote: > rrd tool module version 1.0.5 > rrdtool library version 1.4.5 > > From: Nick Toursky > Sent: Thursday, March 15, 2012 2:31 PM > To: [email protected] > Subject: Re: class RRDGraph redeclared. > > Srini, > > What versions of rrdtool and php_rrdtool do you have installed? > > On Tue, Mar 13, 2012 at 05:20, Srini <[email protected]> wrote: > > Couple of more issues. For anyone ending up like me with the latest > versions of PHP RRD tool, there are incompatibilities. First was the > RRDGraph class I described below. Others are: > > 1. Signatures of rrd_create and rrd_update have probably changed. > 2. The app/src/LibWebta/library/Data/RRD/class.RRD.php needs to be updated. > 3. rrd_create() requires only 2 parameters, comment out the third (count) > 4. rrd_update() requries the second argument to be of type array and not > string. Create a new array() object, push the string constructed in the > Udpate() function into the array and call the rrd_update() with the array as > the second parameter > > With these changes the RRDTool starts collecting all the required > statistics :) > > Regards > Srini > > On Monday, March 12, 2012 3:42:51 PM UTC+5:30, Srini wrote: > Hi > > I installed the RRDtools and the pecl php-rrdtool yesterday to start > collecting statistics. > > After setting up rrdtool / php extension and loading it all my cron jobs > started failing. When I tracked the php errors, I found a number of these > messages in the php error log: PHP Fatal error: Cannot redeclare class > RRDGraph in > /var/www/html/app/src/LibWebta/library/Data/RRD/class.RRDGraph.php on line 464 > > The problem seems to be that PHP rrdtool extension has an RRDGraph class > (http://www.php.net/manual/en/class.rrdgraph.php) and the LibWebta class in > scalr is also having a class called RRDGraph. I ended up grep'ing for all > instances of RRDGraph in scalr source and changing it to a different name. > It is now running fine. > > Can the Scalr development team please check this and let us know? > Ideally the RRDGraph class in libwebta needs to be renamed so there is no > clash with the php extension. > > Regards > Srini > > -- > You received this message because you are subscribed to the Google Groups > "scalr-discuss" group. > > To view this discussion on the web > visithttps://groups.google.com/d/msg/scalr-discuss/-/6KPBD5A1rMIJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > mailto:scalr-discuss%[email protected]. > For more options, visit this group > athttp://groups.google.com/group/scalr-discuss?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "scalr-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/scalr-discuss?hl=en.
-- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.
