How​ ​to​ ​Install​ ​Cacti​ ​Monitoring​ ​on​ ​Ubuntu​ ​16.04

r00t November 24, 2017

Install​ ​Cacti​ ​Monitoring​ ​on​ ​Ubuntu​ ​16.04

In this tutorial we will show you how to install Cacti​ ​Monitoring on Ubuntu 16.04. We will also install and configure its prerequisites. Cacti is a complete network graphing solution designed with RRDTool’s data storage and graphing functionality. It may chart network bandwidths using SNMP, shell or Perl scripts. RRDtool is a software created by the Swiss Tobi Oeticker who was already the inventor of the renowned MRTG. RRDtool is developed utilizing the “C” programming language and it stores the collected data on “. Rrd” files. The number of records in a “. Rrd” document never increases, meaning that old documents are frequently removed. This implies that one obtains precise figures for recent logged information, whereas data based on very old information will be mean value approximations. By default, you can have daily, weekly, monthly and annual charts.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install​ ​Cacti​ ​Monitoring​ ​on​ ​Ubuntu​ ​16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing LAMP on Ubuntu 16.04.

You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on.

Step 3. ​Install​ ​Cacti​ ​Monitoring​.

First, Install​ ​SNMP​ ​and​ ​SNMP​ ​and​ ​RRDtools:

apt-get install snmp snmpd rrdtool -y

Now​ ​use​ ​the​ ​following​ ​command​ ​to​ ​install​ ​Cacti:

apt-get install cacti cacti-spine -y

During the installation process you will be prompted to configure Cacti with few options to select from available options. Choose the web server that you wish to use. I would recommend Apache.

Now make sure that all required services are active and running:

systemctl restart apache2.service
systemctl restart mysql.service
systemctl restart snmpd.service

Step 4. Cacti Web Installation Setup.

Cacti will be accessible on port 80 by default, this can be changed within your web server configuration. As installation is now successful, you may proceed to navigate to http://server-ip/cacti or http://server-hostname/cacti and complete the required the steps to finish the installation.

Congratulation’s! You have successfully install and configured Cacti​ on your Ubuntu 16.04 server. Thanks for using this tutorial installing Cacti​ ​Monitoring on Ubuntu 16.04 LTS (Xenial Xerus) system.

Leave a Comment

Comments are closed.