Install Cacti on Ubuntu Server

Last Updated on Friday, 20 June o 09:19 Written by admin Monday, 9 April o 03:24

Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.

N.B. I have assumed at this point that your sources.list file has been edited to read the repositories and an apt-get update and upgrade has been done.If not please google or leave me a comment and i will help you on this.

Step One
We need to install necessary Files to prevent any dependency problems.

apt-get install build-essential rrdtool mrtg rrdcollect rrdtool-tcl snmp iputils-ping php5-snmp php4-snmp libsnmpkit-dev snmpd libsnmp9 libsnmp-base libsnmp-session-perl gawk libiksemel-dev libiksemel-utils libiksemel3 libcurl3-dev php-net-smtp libnet-snmp-perl libsnmp-mib-compiler-perl

apt-get install php5 php-pear debconf logrotate autoconf libtool flex bison gdb libgd-tools mrtg-contrib librrds-perl tclreadline libft-perl libmudflap0-dev libsocket6-perl libio-socket-inet6-perl debconf-utils libltdl3-dev gcc g++ libsnmp9-dev libtool

Step Two
Once the above files are installed it is time to install mySQL where the Database for Cacti will reside and php support for mySQL.

apt-get install mysql-server php5-mysql php5-sybase php5-odbc

Step Three
Now we need to install a WEB server that Cacti will run on.We will use Apache2.
We will also install some mail tools and PHPMYADMIN to help us maintain the database.(If you prefer to use WEBMIN then you can omit phpmyadmin from the line below.)

apt-get install apache2 libmailtools-perl libhtml-format-perl libcompress-zlib-perl apache-dev libio-socket-ssl-perl phpmyadmin

Once all this is done i like to reboot Ubuntu just to prevent any unclean installs to give problems.At this point we can also see if all services are starting up properly.

Step Four
Install Cacti

apt-get install cacti

Ok, that should be it.
If you get an error about the Cacti database not existing, then use WEBMIN or PHPMYADMIN and create a database called “cacti” without a password and give full permissions to the user you are logged in with.
I will add more detailed info when i get a chance to re-install cacti on a virtual machine and i might even host it so you can download it and use it immediately in a production environment.

[mygal=cacti]

Share


2 Comments

  1. Spectre   |  Sunday, 12 July 2009 at 22:04

    so… installing a cacti… its gotta smart a bit eh?

  2. Logrotate autoconf | Weiteren   |  Thursday, 18 August 2011 at 20:36

    [...] Install Cacti on Ubuntu Server – Crashinit6.comApr 9, 2007 … apt-get install php5 php-pear debconf logrotate autoconf libtool flex bison gdb libgd-tools mrtg-contrib librrds-perl tclreadline libft-perl … Uncategorized Comments are closed. [...]

Leave a Reply





Because I value your thoughtful opinions, I encourage you to add a comment to this discussion. Don't be offended if I edit your comments for clarity or to keep out questionable matters, however, and I may even delete off-topic comments.