Cacti is an open source monitoring tool used to graph time-series data, including CPU load, network utilization and interface statistics.
In this tutorial, we will walk you through the process of installing Cacti on a Fedora Server Latest.
Before you begin, ensure that:
sudo dnf install -y httpd
sudo systemctl start httpd
sudo dnf install -y php php-mysqlnd php-process php-snmp php-xmlrpc
sudo dnf install -y mariadb-server mariadb
sudo systemctl start mariadb
In this step, we will install Cacti using the dnf
package manager.
Run the following command to install Cacti and its dependencies:
sudo dnf install cacti -y
During the installation, the package manager will prompt you to install the required packages. Press y
to proceed.
...
Install 13 Packages
Total download size: 6.3 M
Installed size: 26 M
Is this ok [y/N]:
When the installation is complete, restart the Apache web server to load new modules:
sudo systemctl restart httpd
Cacti requires a database to store its data. In this guide, we will use the MariaDB/MySQL database server to configure Cacti.
Log in to the MariaDB/MySQL database server as root
:
sudo mysql -u root
At the MariaDB/MySQL mysql>
prompt, create a new database for Cacti:
create database cactidb;
Next, create a new user and grant privileges for Cacti to access the database:
GRANT ALL ON cactidb.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'your_password_here';
Note: Be sure to choose a secure password for the cactiuser
.
Save the changes and exit the MariaDB/MySQL client:
FLUSH PRIVILEGES;
EXIT;
In this step, we will configure Cacti using the web interface.
Open your web browser and navigate to http://<your_server_ip>/cacti/
. You should see the Cacti login page.
Login to Cacti with the default username and password:
Once you have logged in, the Cacti installation wizard will start automatically. Follow the prompts to configure the database settings and other necessary settings.
Note: In the last step of the wizard, you will be prompted to install plugins (Templates), and you can skip them at this stage.
After completing the wizard, click on Finish
to complete the installation.
Once you have finished the installation, click on the Graph
tab on the top menu bar. You should see some pre-configured graphs for the localhost.
To monitor other hosts using Cacti, you will need to install SNMP and configure the devices to enable SNMP. You can find more information about configuring SNMP in Cacti here.
In this tutorial, we have shown you how to install Cacti on a Fedora Server Latest. You can now use Cacti to monitor your server and network infrastructure.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!