*nix Thread, getting cacti working in Technical; there seems to be something wrong with the base cacti install....
using this machine here ( http://www.edugeek.net/forums/nix/29...webserver.html ) that everything ...
27th January 2009, 03:21 PM #1
getting cacti working
there seems to be something wrong with the base cacti install....
using this machine here (http://www.edugeek.net/forums/nix/29...webserver.html) that everything *seems* to be functioning correctly on. phpmyadmin works so that ought to mean apache, php & mysql are working....
cacti works but graphs are broken images and there's no data, I've traced this back to a problem with the poller. when running it manually from the shell it comes back with
Fatal error: Call to undefined function: mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 377
I seeem to have fixed it simply by manually installing php5-cli
for some unknown reason cacti didnt install this itself as a dependency...
IDG Tech News
27th January 2009, 03:28 PM #2
seems like you don't have the php5mysql function installed.
Try apt-get install php5_mysql
And then try running the poller again.
Last edited by chris_uk; 27th January 2009 at 03:29 PM.
Reason: didn't read php5 was installed
27th January 2009, 03:32 PM #3
you'll need to restart apache for php to notice the new module too.
27th January 2009, 03:57 PM #4
no that's already installed. one would assume that would be required for phpmyadmin to work?
As I said I fixed the problem with php5-cli. didnt even have to restart anything. it just started working by itself. I was more asking why cacti wouldnt install php5-cli itself?
although I did start writing the post asking for help but the internet went down and I managed to sort it out myself.
29th January 2009, 10:34 AM #5
since before when I thought it was working, it wasnt as much as I thought. i've had to add the poller run string to crontab and because I ran poller.php in the shell as root, the rra files that got created all had the wrong owners which ended up as read-only when cacti tried to write to them.deleted them and let it re-create them. then it was working properly. yay. I thought I might,if I have time, write a guide on the wiki to installing it on a virtual machine, in the same way I have.
29th January 2009, 10:47 AM #6
If you think there's a missing dependency on php5-cli, check the bug reports at Bugs in package cacti (version 0.8.7b-2.1) in unstable -- Debian Bug report logs and report it if it hasn't been done already. Assuming you have your mail transport set up properly, you can use reportbug.
Edit: Scratch that (although I'm leaving it here because reportbug is a Useful Thing to know about). The cacti package in etch, lenny and sid has a dependency on php4-cli OR php5-cli, meaning if you have php4-cli installed already, apt won't try and upgrade it to php5-cli because as far as it's concerned the dependency is satisfied. Might be interesting to remove php5-cli and install php4-cli, and if it won't play file a bug asking to have the dependency amended.
Last edited by powdarrmonkey; 29th January 2009 at 10:50 AM.
By browolf in forum Wireless Networks
Last Post: 15th December 2008, 02:50 PM
Last Post: 5th August 2008, 11:46 AM
Last Post: 6th July 2008, 03:10 PM
By Joedetic in forum Wireless Networks
Last Post: 10th June 2008, 07:14 PM
By Geoff in forum Wireless Networks
Last Post: 22nd May 2008, 05:24 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)