cacti 0.8.7i and boost 5.1

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
dwaines
Posts: 21
Joined: Wed Nov 24, 2010 4:01 pm

cacti 0.8.7i and boost 5.1

Post by dwaines »

Hi all,

I'm rebuilding a cacti system 0.8.7i with all the latest and greatest plugins then migrating my production 0.8.7.g instance to this system. I've having one problem with boost and wondering if anyone else has seen this. Everything seems to be working ok but I hate moving on with errors in the cacti log file when I click on a graph. Please see below.

BOOST: Poller[0] PROGERR: ERRNO:'2' TYPE:'Warning' MESSAGE:'fopen(/wwwjail/siteroot/htdocs/cacti/imagefiles/lgi_19441_rrai_0_tsi_7.png) [function.fopen]: failed to open stream: Permission denied' IN FILE:'/wwwjail/siteroot/htdocs/cacti/plugins/boost/setup.php' LINE NO:'847'

Please also see the permission on the imagefiles directory.

drwxr-xr-x 2 apache apache 217088 Jan 19 11:34 imagefiles

--w--wx-wT 1 apache apache 18200 Jan 19 11:34 lgi_19441_rrai_0_tsi_7.png

Any help would be appreaciated.

Thanks,
Dale
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: cacti 0.8.7i and boost 5.1

Post by cigamit »

Search in plugins/boost/setup.php for chmod( and see what mode is using. I remember at one point Larry had to change it. Current SVN shows it as 666.
dwaines
Posts: 21
Joined: Wed Nov 24, 2010 4:01 pm

Re: cacti 0.8.7i and boost 5.1

Post by dwaines »

thanks for the info the chmod command still says 666. is that what it should be?
X-dark
Cacti User
Posts: 111
Joined: Wed Jun 18, 2008 10:21 am
Location: France

Re: cacti 0.8.7i and boost 5.1

Post by X-dark »

I've got this error as well. And the permissions are the same as dwaines's. Any hint ?
Cedric Girard
X-dark
Cacti User
Posts: 111
Joined: Wed Jun 18, 2008 10:21 am
Location: France

Re: cacti 0.8.7i and boost 5.1

Post by X-dark »

OK. Found it:

Code: Select all

--- setup.php.orig      2012-03-27 15:45:53.000000000 +0200
+++ setup.php   2012-03-27 17:39:44.000000000 +0200
@@ -958,7 +958,7 @@
                                                if ($fileptr = fopen($cache_file, "w")) {
                                                        fwrite($fileptr, $data["output"], strlen($data["output"]));
                                                        fclose($fileptr);
-                                                       chmod($cache_file, 666);
+                                                       chmod($cache_file, 0666);
                                                }
                                        }
                                }else{
Cedric Girard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: cacti 0.8.7i and boost 5.1

Post by gandalf »

You now know what to do with your findings, don't you? :wink:
R.
X-dark
Cacti User
Posts: 111
Joined: Wed Jun 18, 2008 10:21 am
Location: France

Re: cacti 0.8.7i and boost 5.1

Post by X-dark »

gandalf wrote:You now know what to do with your findings, don't you? :wink:
R.
Of course ;)
Bug report is here: http://bugs.cacti.net/view.php?id=2201
Cedric Girard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests