How to Install Cacti on Fedora Server Latest

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.

Prerequisites

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

Step 1 - Install Cacti

In this step, we will install Cacti using the dnf package manager.

  1. Run the following command to install Cacti and its dependencies:

    sudo dnf install cacti -y
    
  2. 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]:
    
  3. When the installation is complete, restart the Apache web server to load new modules:

    sudo systemctl restart httpd
    

Step 2 - Configure MariaDB/MySQL for Cacti

Cacti requires a database to store its data. In this guide, we will use the MariaDB/MySQL database server to configure Cacti.

  1. Log in to the MariaDB/MySQL database server as root:

    sudo mysql -u root
    
  2. At the MariaDB/MySQL mysql> prompt, create a new database for Cacti:

    create database cactidb;
    
  3. 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.

  4. Save the changes and exit the MariaDB/MySQL client:

    FLUSH PRIVILEGES;
    EXIT;
    

Step 3 - Configure Cacti

In this step, we will configure Cacti using the web interface.

  1. Open your web browser and navigate to http://<your_server_ip>/cacti/. You should see the Cacti login page.

  2. Login to Cacti with the default username and password:

    • Username: admin
    • Password: admin
  3. Once you have logged in, the Cacti installation wizard will start automatically. Follow the prompts to configure the database settings and other necessary settings.

    • Database Host: localhost
    • Database Name: cactidb
    • Database Username: cactiuser
    • Database Password: your_password_here

    Cacti Wizard

    Note: In the last step of the wizard, you will be prompted to install plugins (Templates), and you can skip them at this stage.

  4. After completing the wizard, click on Finish to complete the installation.

  5. 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.

  6. 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.

Conclusion

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!