
Cacti is an open-source network monitoring tool that uses the Simple Network Management Protocol (SNMP) to monitor network traffic and bandwidth utilization of network devices such as routers and switches. It serves as the front-end application for Round Robin Databases (RRDtool), stores and displays time-series data in graph formats. In this article, you will learn how to install Cacti Monitoring tool on Ubuntu 20.04 server.
Edit the first php.ini file.
Change the following lines and make sure to uncomment the date.timezone value. To search for a specific line, use Control+W, enter the search phrase, then press Enter Save and close the file.
Edit the second php.ini file.
Change the following lines. Save and close the file.
Restart the Apache service to apply the changes.
Edit the MariaDB default configuration file.
Modify the following lines. Save and close the file.
Make sure to comment out the following code to avoid configuration issues:
Restart the MariaDB service to apply the changes.
Log in to the MariaDB shell.
Create a database named cactidb.
Grant all permissions of the created database to cactiuser.
Flush the privileges.
Exit from the MariaDB shell.
Import timezone data to the MySQL database.
Log in to MariaDB shell.
Grant required privileges on MySQL timezone.
Flush the privileges.
Exit from the MariaDB shell.
Download the latest version of Cacti from its official website. You can download it with the following command:
Extract the downloaded file.
Move the extracted directory to the Apache root directory.
Import the database to the cactidb.
Edit the Cacti configuration file config.php.
Change the following lines, save and close the file.
Create the log file.
Set the ownership and permission of the cacti directory.
Create a new Cacti cron job file.
Add the following line, save and close the file.
Create an Apache virtual host configuration file for Cacti.
Add the following lines, save and close the file.
Enable the Cacti configuration file.
Restart the Apache service to apply the configuration.
Verify the status of the Apache service.
Open your web browser and access the Cacti web interface using the URL http://ServerIP/cacti. For example:
You have successfully installed Cacti on your server. To log in, use admin as your username and admin as your password. You will access the password reset screen to change your admin password. You can now configure Cacti.
For more information on Cacti, please see the official documentation.
0 Comments
Be the first to comment and share your perspective with the community.