Linux, Windows, Virtualization, OpenSource & Blogging

Setup Cacti network monitoring tool on Ubuntu 14.04 / Linux Mint 17



Cacti is an open source web based network monitoring tool designed as the front end application for the RRDtool (Round-Robin database tool), it allows a user to poll the services at a interval of time and resulting in the graph format. Cacti is generally used to get a graph data for the cpu and network bandwidth utilization, it monitors the network traffic by polling a router or switch via snmp.

Here is the small tutorial about installing Cacti on Ubuntu 14.04 / Linux Mint 17.


Install the following packages for Cacti setup.

sudo apt-get install apache2 php5 php5-mysql php5-snmp mysql-client mysql-server snmpd rrdtool

You will be asked to setup root password for MySQL, which will be required to setup cacti.

Install Cacti:

Install the cacti package using the following command, follow the onscreen instruction to setup the cacti.

sudo apt-get install cacti

Just give OK in the next screen to configure php.ini.

Cacti Install - PHP.Ini
Cacti Install – PHP.Ini

Select web server for which cacti should be automatically configured.

Cacti Install - Select Web Server
Cacti Install – Select Web Server

Click Yes to configure the database for cacti, otherwise click no.

Cacti Install - Automatic Database configuration
Cacti Install – Automatic Database configuration

Enter the root password of MySQL.

Cacti Install - MySQL root password
Cacti Install – MySQL root password

Enter the password for cacti user for cacti database.

Cacti Install - Passowrd for cacti user
Cacti Install – Passowrd for cacti user

Re enter the password.

Cacti Install -ReEnter cacti password
Cacti Install -ReEnter cacti password

Setup Cacti:

Visit the following url to start the installation of cacti. http://your-ip-address/cacti. Click on Next to continue.

Setup Cacti - Guide
Setup Cacti – Guide

Scroll down for the options, please select New Install for the new installation and then click Next.

Setup Cacti - Type of installation
Setup Cacti – Type of installation

It will show you, if there is any package is missing which is mandatory for the cacti.

Setup Cacti -  Dependencies
Setup Cacti – Dependencies

Enter User Name and Password (Default admin / admin)

Setup Cacti - Login Page
Setup Cacti – Login Page

You must change the default password.

Setup Cacti - Change Password
Setup Cacti – Change Password

The following shows the dashboard of the cacti.

Setup Cacti - Dashboard
Setup Cacti – Dashboard

Now you can start configuring the Cacti to monitor your devices. More documentation can be found here. We welcome your comments, please post your valuable comments below.

You might also like
  • Marius

    Thank You !!!

  • Corrado

    As today, it worked like a charm.
    Many thanks!

  • Malik

    thanks for the tutorial but i always get snmp error in ubuntu 14.4 …. what ever i do i cant get rid of that error…. Please help

  • great artikel

  • Really appreciate the guide. Works on 14.10

  • virus

    Thanks for sharing the document . Worked straightway .

  • Japie

    really good tutorial, i proofed it’s idiot proof

  • Bizax

    Thank you, clean & clear !!!

  • ahmad

    Hi All,

    i am getting snmp error please help.

    thank in advance.

  • Cisco Route

    awesome walkthrough. worked perfectly on ubuntu 14.04 distro.

  • akash

    how to setup the database for cacti manually

  • danunjaya

    I have installed Cacti using above commands but there is some errors came due to that i have reinstalled it
    After re-installed application not reflecting in browser
    Removed with: sudo apt-get remove cacti
    installed with : sudo apt-get install cacti

    • danunjaya

      Installed Ubuntu 17.4

      • Raj

        Whats the actual error. Make sure the apache2 service is running.

  • danunjaya

    Graph not reflecting properly
    I have freshly installed in Ubuntu server

    please suggest me

Setup Cacti network monitoring tool on Ubuntu 14.04 / Linux Mint 17