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

Cacti-logo

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.

Requirements:

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.

POSTS YOU MAY LIKE -:)

Share This Post

  • Marius

    Thank You !!!

  • Corrado

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

  • 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
    Thanks

  • 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

Shares