
Cacti is an open-source network monitoring tool that monitors network traffic using the Simple Network Management Protocol (SNMP). It can monitor traffic on multiple network devices such as routers, switches, and servers and stores the data to create performance management graphs in a database. This article explains how to install Cacti on a FreeBSD 13.0 cloud server.
Before you begin, make sure you:
Install the RRDTool and SNMP.
Install your preferred text editor.
Install required PHP extensions.
Edit the php.ini-production configuration file.
Locate the [Date] section.
Uncomment the date.timezone directive, and enter your timezone. For example Europe/London.
Locate the memory_limit directive, and change it from 128M to a value above 400MB.
Locate max_execution_time, and change it from 30 to 60 or more.
Save and close the file.
Make a copy of the edited php.ini-production file and rename it to php.ini
Start PHP-FPM.
Restart Apache.
Import system timezones to the MySQL database.
Login to MySQL.
Create a new Cacti database.
Create the Cacti database user secured with a strong password.
Grant the user full privileges to the Cacti database.
Grant the user read access to the MySQL TimeZone database.
Refresh MySQL privileges.
Exit the MySQL console.
Edit the main MySQL configuration file.
Locate the following configurations at the bottom of the file.
Change the directive values as below:
Save and close the file.
Restart the MySQL database server.
Create the Cacti document root directory.
Download the latest Cacti release file.
Extract files.
Move extracted files to the Cacti directory.
Import the Cacti database.
Edit the Cacti configuration file.
Find the following section.
Change the values to reflect your database server, user, and password.
Save and close the file.
Grant Apache read and write permissions on the directory.
Create a new Apache Virtual Host configuration file.
Edit the file.
Add the following configurations to the file.
Save and close the file.
Test the Apache Configuration.
Restart Apache.
Edit the main Apache configuration file.
Locate the following module directives.
Uncomment them by removing #.
Save and close the file.
Test the Apache configuration file.
Install the Apache Certbot agent.
Request a Let’s Encrypt SSL certificate.
Enter your email address and agree to Let's Encrypt terms.
Restart Apache to load changes.
Open your web browser and load the Cacti web interface by visiting your configured subdomain or Server IP to complete the setup process.
To Login, use the following default username and password values.
adminadminYou have installed Cacti on FreeBSD 13.0. For more information, refer to the following articles.
0 Comments
Be the first to comment and share your perspective with the community.