Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cacti intallation on Ubuntu 9.04
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
lawrenceasus



Joined: 30 Jun 2009
Posts: 5

PostPosted: Tue Jun 30, 2009 8:06 pm    Post subject: Reply with quote

I tried to follow your instrucctions, however with the first instruction I got this error:
*** WARNING: ucf was run from a maintainer script that uses debconf, but
the script did not pass --debconf-ok to ucf. The maintainer
script should be fixed to not stop debconf before calling ucf,
and pass it this parameter. For now, ucf will revert to using
old-style, non-debconf prompting. Ugh!
and the process stops,
I got ubuntu 9.04 with nagios working, php5 and snmp working too. but no luck with cacti,

thanks for any advice,
Back to top
disH



Joined: 22 May 2008
Posts: 33

PostPosted: Thu Jul 02, 2009 10:13 pm    Post subject: Reply with quote

ok i found out that this is currently a bug which affects cacti/phpmyadmin on both debian & ubuntu

the solution is to either
1. configure apt to pull the latest 'unstable' version of cacti which is version 0.8.7d which includes the fix to this problem.
you'll need to dig in google a little more and edit your /etc/apt/sources.list
2. install cacti & phpmyadmin manually which i wouldnt advise doing unless you know what you are in for.

https://launchpad.net/ubuntu/+source/cacti cacti on ubuntu

bug link
https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/357334

Link for installing it the long way
http://www.ubuntugeek.com/networkserver-statistics-graphing-using-cacti-in-ubuntu-server.html
Back to top
lawrenceasus



Joined: 30 Jun 2009
Posts: 5

PostPosted: Sat Jul 04, 2009 9:21 am    Post subject: Reply with quote

I did it the long way in an asus with ubuntu 9.04 desktop, however i found the following problem:

when I run:

sudo php /var/www/cacti2/poller.php

PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/wddx.so - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/gd.so - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/mysql.so - /etc/php.d/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/mysqli.so - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/pdo.so - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/pdo_mysql.so - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library /etc/php.d/snmp.so- /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0

to the file, /etc/php5/apache2/php.ini, I added the file:

extension_dir='dir /usr/lib/php5/20060613+lfs'

the files are there:

dir /usr/lib/php5/20060613+lfs/
gd.so mysqli.so mysql.so pdo_mysql.so pdo.so snmp.so wddx.la wddx.so



and if I add:
extension=wddx.so
extension=mysql.so
extension=snmp.so

the log of apache gives the warning:
[Sat Jul 04 08:13:25 2009] [notice] caught SIGTERM, shutting down
PHP Warning: Module wddx already loaded in Unknown on line 0
PHP Warning: Module mysql already loaded in Unknown on line 0
PHP Warning: Module snmp already loaded in Unknown on line 0
[Sat Jul 04 08:13:26 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations

I think cacti is searching in the wrong address but I can,t find where is apache2 or php5 or cacti is defining the directory, if I found something else I will post the advances.
Back to top
lawrenceasus



Joined: 30 Jun 2009
Posts: 5

PostPosted: Sun Jul 05, 2009 7:59 am    Post subject: Reply with quote

I found the file to configurate the php for the cron and the prompt:
/etc/php5/cli/php.ini
Back to top
lawrenceasus



Joined: 30 Jun 2009
Posts: 5

PostPosted: Tue Jul 07, 2009 11:37 am    Post subject: Reply with quote

At last I got cacti working in ubuntu 9.04 desktop, I was getting problem running the cron until I found these instructions:

http://tuxtraining.com/2008/10/11/how-to-install-cacti-on-debian

They instructions are in the second part, they tell how create the user and cron for that user.

I give the link so other users can find it easy.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group