Cacti intallation on Ubuntu 9.04

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

lawrenceasus
Posts: 5
Joined: Tue Jun 30, 2009 7:57 pm

Post by lawrenceasus »

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,
disH
Posts: 33
Joined: Thu May 22, 2008 2:09 am

Post by disH »

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/+sour ... bug/357334

Link for installing it the long way
http://www.ubuntugeek.com/networkserver ... erver.html
[url=http://forums.cacti.net/viewtopic.php?t=4356]Template: Cisco CatOS[/url]
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
lawrenceasus
Posts: 5
Joined: Tue Jun 30, 2009 7:57 pm

Post by lawrenceasus »

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.
lawrenceasus
Posts: 5
Joined: Tue Jun 30, 2009 7:57 pm

Post by lawrenceasus »

I found the file to configurate the php for the cron and the prompt:
/etc/php5/cli/php.ini
lawrenceasus
Posts: 5
Joined: Tue Jun 30, 2009 7:57 pm

Post by lawrenceasus »

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-t ... -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.
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

Re: Installing a fresh cacti+plugin on Unbuntu .. :D

Post by JohnYYC »

I got an error when following this guide I started a new thread to solve the issue. http://forums.cacti.net/viewtopic.php?p=188676
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest