Linuxmonitoring tool

How to Install and Configure Cacti on Ubuntu 18 LTS

In this tutorial, we see how to Install and Configure Cacti on Ubuntu 18 LTS. Cacti is one of the core network monitoring tool used for monitoring servers.

Cacti is one of the opensource free web-based network monitoring tools. Cacti as inbuild features which provides graphs easy to analyze and plan for further Infra scale as per the alerts.

Steps to install Cacti on Ubuntu 18.04

Let’s see what all Prerequisites for cacti on ubuntu

Take the access of Ubuntu server via ssh with root user or switch to root user.

Now, update the ubuntu repository using apt cmd.

Now, Install Apache, PHP and MySQL package on Ubuntu machine.

Now, Create Cacti Database on Ubuntu server

Access Database follow commands:

syntax: create databse <databse-name>;

Recommended settings for the database to get better performance:

Set Timezone in php.ini file.

Download Cacti for ubuntu 18.04

Now, Extract the downloaded Cacti archive

Import the cacti.sql file as a default Cacti database data.

update the Cacti config file

Edit the crontab file.

Add below entry in crontab, For every five min cacti can poll

For remote web installation update Apache config file.

Enable virtual host

Now, restart Apache and mysql service:

Create Log file and give the permission to Apache user to write data to cacti directory.

Steps to Setup Cacti

Goto Browser and access cacti as follows:

http://your.ip.address/cacti

 

how to Install and Configure Cacti on Ubuntu 18 LTS

Cacti Pre-Installation Checks

how to Install and Configure Cacti on Ubuntu 18 LTS

 

how to Install and Configure Cacti on Ubuntu 18 LTS

Click on Next

Now select the new primary server for new installation and click next.

how to Install and Configure Cacti on Ubuntu 18 LTS

Display if any package is missing

how to Install and Configure Cacti on Ubuntu 18 LTS

Checks if any permission issue on a directory

how to Install and Configure Cacti on Ubuntu 18 LTS

Now, Select the Cacti monitoring template and click on finish

how to Install and Configure Cacti on Ubuntu 18 LTS

Once you have setup the Cacti Installation, Goto Dashboard.

Default username: admin
Default password: admin

Note: Change the password once you login.

how to Install and Configure Cacti on Ubuntu 18 LTS

Once you login you will see Cacti Dashboard

how to Install and Configure Cacti on Ubuntu 18 LTS

To see graphs of local machine Goto Graphs > Default tree > local Linux machine.

In this tutorial, you learned How to Install and Configure Cacti on Ubuntu 18 LTS.

Related Articles

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close

Adblock Detected

Please consider supporting us by disabling your ad blocker