+ Post New Thread
Results 1 to 6 of 6
*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 ...
  1. #1
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,529
    Thank Post
    108
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41

    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...

  2. #2

    Join Date
    Jan 2008
    Posts
    158
    Thank Post
    12
    Thanked 29 Times in 27 Posts
    Rep Power
    26
    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 02:29 PM. Reason: didn't read php5 was installed

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226
    you'll need to restart apache for php to notice the new module too.

  4. #4
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,529
    Thank Post
    108
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41
    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.

  5. #5
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,529
    Thank Post
    108
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41
    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.

  6. #6

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,866
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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 09:50 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. strange nic lights working/not working
    By browolf in forum Wireless Networks
    Replies: 13
    Last Post: 15th December 2008, 01:50 PM
  2. Problem with Cacti logs
    By DanW in forum *nix
    Replies: 0
    Last Post: 5th August 2008, 10:46 AM
  3. Cacti IP Accounting
    By kmount in forum *nix
    Replies: 10
    Last Post: 6th July 2008, 02:10 PM
  4. Bulk edit graph tree - Cacti
    By Joedetic in forum Wireless Networks
    Replies: 2
    Last Post: 10th June 2008, 06:14 PM
  5. Suggestions for EduGeek Cacti Guide
    By Geoff in forum Wireless Networks
    Replies: 18
    Last Post: 22nd May 2008, 04:24 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •