Cacti on Ubuntu 9.04 Desktop with Nagios already installed.

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

Post Reply
rhebs
Posts: 2
Joined: Tue Jul 07, 2009 12:12 pm

Cacti on Ubuntu 9.04 Desktop with Nagios already installed.

Post by rhebs »

New to Ubuntu, new to nagios and new to Cacti. I have Ubuntu 9.04 i386 installed on a workstation. I've installed Nagios using the Ubuntu quickstart guide and everything is working great.

I want to install Cacti on the same machine. Is there a recommended install process for this? I'm not sure if I should follow the standard guides to install Cacti on Ubuntu. For example, most of the install guides say to install MySQL and set a password. I'm sure that I already have MySQL installed. Will installing Cacti break Nagios?

Thanks for any help or advice.
lawrenceasus
Posts: 5
Joined: Tue Jun 30, 2009 7:57 pm

Post by lawrenceasus »

I did the installation of nagios by hand and later installed cacti by hand.

You can try to follow these instrucctions, they for debian but they worked for me with ubuntu desktop 9.04.


http://tuxtraining.com/2008/10/11/how-t ... -on-debian
rhebs
Posts: 2
Joined: Tue Jul 07, 2009 12:12 pm

Post by rhebs »

Thanks for the reply.

The Nagios quick start guide advises:

Make sure you've installed the following packages on your Ubuntu installation before continuing.

Apache 2
Pe2HP
GCC compiler and development libraries
GD development libraries
You can use apt-get to install these packages by running the following commands:


sudo apt-get install apache2
sudo apt-get install libapache2-mod-php5
sudo apt-get install build-essential
With Ubuntu 6.10, install the gd2 library with this command:
sudo apt-get install libgd2-dev
With Ubuntu 7.10, the gd2 library name has changed, so you'll need to use the following:
sudo apt-get install libgd2-xpm-dev

The how-to-install-cacti-on debian advises:

apt-get install apache2
apt-get install mysql-server
apt-get install php5
apt-get install php5-common
apt-get install php5-cgi
apt-get install php5-cli
apt-get install php5-mysql
apt-get install snmp
apt-get install rrdtool

So, I know that I don't need to install apache2 and snmp (I've already installed snmp). I'm confused about
the rest. I have an /etc/mysql directory, is that the same as mysql-server?

I don't know if I need:

apt-get install mysql-server
apt-get install php5
apt-get install php5-common
apt-get install php5-cgi
apt-get install php5-cli
apt-get install php5-mysql

I'm thinking I just need:

apt-get install rrdtool
apt-get install cacti

and configure Cacti. Is this correct? I don't want to screw up my Nagios installation.

Thanks for any help
aldibi
Posts: 11
Joined: Tue May 12, 2009 12:49 am
Location: Mill Valley
Contact:

Install cacti on Ubuntu

Post by aldibi »

When using the instruction "apt-get install cacti-cactid" to install Cacti in an Ubuntu 9.04 (or earlier) environment you will find that the distribution actually downloads Cacti version 0.8.7b, it places the application and data files in Ubuntu specific directories, and requires Unbuntu/Debian specific patches for config.php, debian.php, global.php, and global-settings.php (not a complete list)

We have updated our tutorial on how to work through this, in particular upgrading from the 0.8.7b distribution Ubuntu provides, now to 0.8.7e, and applying the Debian/Ubuntu specific patches for 0.8.7e

01_config.php.patch
05_no-adodb.patch
06_config_settings.php_cactid_path.patch
cli-include-path.patch

http://patch-tracking.debian.net/package/cacti/0.8.7e-1

The full tutorial is here: http://www.open4energy.com/tutorials/virtualbox/cacti

PS - I would post it here, but it is really too many pages!

PPS - We are not a support business, we use Cacti for data center energy management - we use Ubuntu and Virtual machines to get a standard quick build, and have worked through these issues for our needs - We hope that our experience might help others using cacti with Ubuntu or Debian, particularly those new to Cacti
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest