no graphs being displayed (PLEASE HELP TRIED EVERYTHING)

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

Moderators: Developers, Moderators

Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

compiled from source;
dpkg --list
php 5.2.3-1 php5.2.3_source

set my include path in php.ini and apache2/php.ini to ;

/usr/bin/

same issue, no rrd files being written in rra directory
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

Is the cli the same as the php version still?

Any output from poller.php now?
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

nope, my php -v shows ;

PHP 5.2.0 (cgi) (built: Jul 15 2007 10:26:26)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies


my phpinfo page says;

PHP Version 5.1.2
build date: May 22 2007 20:16:33

My new problem is php5-common package overtakes my php source install, totally lost
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

symlink /usr/bin/php to the location you compiled php to and try again.
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

it is. The /usr/bin/php is pointed to /usr/local/bin/php which is the newly compiled php. BUt strangely enough, the phpinfo still shows the old php5.1.2 with build date of may22
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

therein lies a problem. I couldnt get the poller to work until I had both versions matching.
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Daveyboy wrote:it is. The /usr/bin/php is pointed to /usr/local/bin/php which is the newly compiled php. BUt strangely enough, the phpinfo still shows the old php5.1.2 with build date of may22
Did you restart httpd after any changes?
Reinhard
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

OKay, here is what I had to do to fix. Cacti does not work with php5 and libapache2-mod-php5 on debian based systems. Ubuntu will not let you install php4 with their package management, automatically goes to php5. Uninstalled ubuntu and installed debian etch because it will allow for php4 install.

apt-get install apache2 php4 libapache2-mod-php4

Works now, rra files are being written to rra directory and 'php poller.php' works, graphs are rendering. So cacti has some issues with php5 on debian based systems. Debian php5 package works fine with phpmyadmin, phpbb, webmin, etc, etc.. just cacti does not work. Not trying to slag cacti just merely posting so the next ubuntu/debian user will know.
nzlosh
Posts: 5
Joined: Wed Jul 11, 2007 4:32 am
Location: Paris, France

Post by nzlosh »

Cacti does run with Ubuntu 6.06 but from my experience, the Ubuntu supplied package is broken and not worth the pain of trying to fix it.

These are the steps I took to get it working (WARNING: These are general instructions. Steps may be missing or incorrect as these were only general notes made while I went.)

1. Use apt-get to install all required packages onto the system.

Code: Select all

apt-get update
apt-get install cacti mysql-server xml-core deb-conf
apt-get remove cacti
2. Downloaded cacti-0.8.6j tarball from the cacti web site, plus all patches.

3. Untarred the cacti and patch tars into /usr/share/cacti/ and created symlink require to make Ubuntu's configuration happy.

Code: Select all

ln -s /usr/share/cacti/cacti-0.8.6j  /usr/share/cacti/site
For the latest patches and how to apply them, visit http://www.cacti.net/cactid_download_patches.php

3. Updated apache2's configuration to include a directory directive for cacti. (refer to apache and cacti documentation for instructions)

4. Follow the mysql database setup instructions in the Cacti manual: http://docs.cacti.net/node/2

5. Symlink /usr/share/cacti/site/rra to /var/lib/cacti/rra/ (this is where Ubuntu kept them. This could break security.)

Code: Select all

ln -s /var/lib/cacti/rra/ /usr/share/cacti/site/rra
6. Fix ADODB path in /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini as mentioned by Ubuntu.

Code: Select all

include_path = ".:/usr/share/php:/usr/share/php/adodb"
7. Directed logging to /var/log/cacti (done via the first log on screen of Cacti)

That more or less sums up how to get it working under Ubuntu. This doesn't help your situation but may be it will be useful to others.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests