Cacti graps.php problem on Fedora 16

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

RafalG
Posts: 2
Joined: Fri Dec 16, 2011 8:18 pm

Cacti graps.php problem on Fedora 16

Post by RafalG »

Hello
I have problem with lastest stable cacti 0.8.7i on Fedora 16.
Cacti seems working, graphs are updating, but im unable to open Graph Management webpage. Its blank in browser, apache error log show me:
PHP Fatal error: Cannot redeclare graph() in /var/www/html/cacti/graphs.php on line 1337
Theres nothing customized/compiled on my fedora 16 installation.
What can be reason of this error, how I can debug problem ?
Thanks
RafalG
Posts: 2
Joined: Fri Dec 16, 2011 8:18 pm

Re: Cacti graps.php problem on Fedora 16

Post by RafalG »

I have found out there is problem with graphviz-php-2.28.0-10.fc16.x86_64 installed. Something possibly collide.
vel
Posts: 19
Joined: Fri Dec 23, 2011 1:01 am

Re: Cacti graps.php problem on Fedora 16

Post by vel »

I am also finding the same issue after installing PIA in cacti server pls somebody help.
If click on graph management/data source link in console page i am getting blank screen in browser saying error on server
I am expecting some suggestion here pls help me.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graps.php problem on Fedora 16

Post by gandalf »

Anything to be found in httpd's error.log?
R.
vel
Posts: 19
Joined: Fri Dec 23, 2011 1:01 am

Re: Cacti graps.php problem on Fedora 16

Post by vel »

gandalf wrote:Anything to be found in httpd's error.log?
R.



Hi Gandalf,

Pls find the error log i am finding in httpd's.
Pls help me to solve this issue When i click on data soure/Graph management link under console page i am getting this blank page in browser saying server error.



Error Message


[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_NATIVE already defined in /usr/share/cacti/include/global_constants.php on line 190, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_RESKIN already defined in /usr/share/cacti/include/global_constants.php on line 191, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_IFRAME_NONAV already defined in /usr/share/cacti/include/global_constants.php on line 192, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_RESKIN already defined in /usr/share/cacti/include/global_constants.php on line 196, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_IFRAME_NONAV already defined in /usr/share/cacti/include/global_constants.php on line 197, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
[Fri Jan 20 10:00:30 2012] [error] [client 10.64.3.94] PHP Notice: Constant OPER_MODE_NOTABS already defined in /usr/share/cacti/include/global_constants.php on line 198, referer: http://10.252.3.242/cacti/graph_view.ph ... =23&page=2
@
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graps.php problem on Fedora 16

Post by gandalf »

Were did you get that code from? There's either an issue with including a file twice (e.g. by a broken plugin) or an issue with that file itself
R.
vel
Posts: 19
Joined: Fri Dec 23, 2011 1:01 am

Re: Cacti graps.php problem on Fedora 16

Post by vel »

gandalf wrote:Were did you get that code from? There's either an issue with including a file twice (e.g. by a broken plugin) or an issue with that file itself
R.

Thanks for your response

I got this file from cacti site. Pls let know how to solve this issue.

Thanks
Vel R
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graps.php problem on Fedora 16

Post by gandalf »

Please post list of installed plugins.
R.
vel
Posts: 19
Joined: Fri Dec 23, 2011 1:01 am

Re: Cacti graps.php problem on Fedora 16

Post by vel »

I have installed Plugins like Nectar,Reportit,Realtime. All of this three plugins are working fine.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graps.php problem on Fedora 16

Post by gandalf »

Please deactivate those plugins one by one and retest. Do NOT uninstall, deactivation should be enough
R.
vel
Posts: 19
Joined: Fri Dec 23, 2011 1:01 am

Re: Cacti graps.php problem on Fedora 16

Post by vel »

Thank you for your help.


Hi gandalf,
I disabled my cacti plugins one by one and After disabling the each plugin i clicked on graph managemnt/Data Source link in console page still i am getting the blank page in the browser.

Pls help me to fix this issue.


Thanks,
Vel R
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graps.php problem on Fedora 16

Post by gandalf »

So my assumption blaming the plugins was wrong.
You told me, that Cacti was fetched from cacti site itself. So I should have the same code. But I can't reproduce that issue. I'm convinced, that this is due to including the global.php file twice. So I'm in fact lost.
R.
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

Re: Cacti graps.php problem on Fedora 16

Post by artiflo »

I have the same issue.

I install a fresh http://www.cacti.net/downloads/cacti-0. ... 3.1.tar.gz and nothing else.
After install process, all work exept that I can't show "Graph Management" menu.
I have this error on http log :
[error] [client 179.59.67.243] PHP Fatal error: Cannot redeclare graph() in /var/www/cacti/graphs.php on line 1353

General Information
Date Mon, 13 Feb 2012 15:49:22 +0100
Cacti Version 0.8.7i
Cacti OS unix
SNMP Version NET-SNMP version: 5.5
RRDTool Version RRDTool 1.3.x
Hosts 1
Graphs 4
Data Sources Script/Command: 5
Total: 5

PHP Information
PHP Version 5.3.3
PHP OS Linux
PHP uname Linux xxx 2.6.32-220.4.1.el6.x86_64 #1 SMP Tue Jan 24 02:13:44 GMT 2012 x86_64
PHP SNMP Installed
max_execution_time 300
memory_limit 1024M

Centos 6.2
cactus66
Posts: 3
Joined: Tue Mar 15, 2016 3:10 am

Re: Cacti graps.php problem on Fedora 16

Post by cactus66 »

Hello Gandalf:

After many years, I have the same problem.

I installed cactis using this tutorial: https://gist.github.com/anamorph/dadeb22340ca4deec5f2.

I migrated scripts and rra from an old server to a new one (with the clen isntallation).

Now, when I access to "Graph Managment" I see a blank page. In the apache log I see:

Code: Select all

apache log: PHP Fatal error:  Cannot redeclare graph() in /usr/share/cacti/graphs.php on line 1337

and:

PHP Fatal error:  Cannot redeclare graph() in /usr/share/cacti/graphs.php on line 1337, referer: http://myserver/cacti/graph_templates.php

I did a grep to search other graph() inside the directory, but there is only that. I don't have plugins installed.

I have the right permissions, etc. I even gave chmod 777 to everything to see if that was it.

-------------
It appear that the PHP version may cause the issue (http://comments.gmane.org/gmane.network.cacti.user/6300), but they say that new versions of cacti should be fine. I have PHP 5.3.3, and lates cacti version

Hoping you can help us!

Your,s
Cactus
Last edited by cactus66 on Thu Mar 17, 2016 3:06 am, edited 1 time in total.
cactus66
Posts: 3
Joined: Tue Mar 15, 2016 3:10 am

Re: Cacti graps.php problem on Fedora 16

Post by cactus66 »

Any news with this???!?! We really need this service!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests