How to install librenms on rocky linux vps

This article provides a guide for how to install LibreNMS on Rocky Linux VPS Servers.

What is LibreNMS?

LibreNMS is a free, open-source network monitoring system that provides automatic discovery, performance monitoring, alerting, and graphing for a wide variety of devices, including routers, switches, firewalls, servers, and more.

It is designed to be a feature-rich alternative to commercial network management tools like SolarWinds, PRTG, or Nagios—with the benefit of community support and open-source licensing.

🔍 Key Features of LibreNMS

Feature Description
Auto Network Discovery Automatically finds and maps network devices using protocols like SNMP, CDP, LLDP, OSPF, BGP, and more.
Performance Graphing Graphs CPU, memory, bandwidth, disk, and other metrics using RRDtool and newer graph engines.
Device Support Works with a huge number of vendors: Cisco, Juniper, MikroTik, HP, Ubiquiti, Fortinet, and more.
Alerting & Notifications Customizable alert rules with support for email, Slack, Telegram, Discord, Pushover, OpsGenie, etc.
Mobile App Official mobile app available for iOS and Android.
APIs & Integrations RESTful API, Oxidized (config backup), Nagios plugins, syslog integration, and billing plugins.
Distributed Polling Supports polling across multiple servers for scalability.
Web-based UI Responsive and modern web interface for real-time monitoring and administration.

🛠️ Technology Stack

  • Written in PHP with Laravel
  • Uses MySQL/MariaDB, RRDtool, SNMP, Syslog, Nginx/Apache
  • Supports Docker, VMs, or bare-metal installation

📦 Typical Use Cases

  • Monitoring enterprise network infrastructure
  • Tracking bandwidth usage and service health
  • Receiving alerts when device metrics cross thresholds
  • Backing up router and switch configurations (via Oxidized)
  • Auditing hardware/software inventory
  • ISP, datacenter, or MSP network operations dashboards

📚 Licensing and Community

  • License: GPLv3
  • Community-driven: Maintained by a vibrant community of network professionals and developers

Pre-requisites

In order to install LibreNMS on Rocky Linux VPS server, the following conditions must be met:

Launch rocky linux vps from $1. 99/mo
Launch rocky linux vps from $1. 99/mo!

How to Install LibreNMS on Rocky Linux VPS

To install LibreNMS on Rocky Linux VPS server, follow the steps provided below:

  1. SSH the VPS as root.
  2. First, you need to add the EPEL repository (Extra Packages for Enterprise Linux) and the PHP Remi repository to your system. You can do this by running the following commands:
    sudo dnf install epel-release sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
  3. After adding the repositories, verify that they are available on your system by running the following command:
    sudo dnf repolist
  4. Next, install the LEMP stack (Nginx, MariaDB, and PHP-FPM) and SNMP packages by running the following command:
    sudo dnf install nginx mariadb-server php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip net-snmp net-snmp-utils
  5. Once the installation is complete, start the Nginx and MariaDB services and enable them to start automatically at boot time by running the following commands:
    sudo systemctl start nginx sudo systemctl enable nginx sudo systemctl start mariadb sudo systemctl enable mariadb
  6. Next, configure the MariaDB server by running the following command:
    sudo mysql_secure_installation
  7. Download the LibreNMS source code by running the following command:
    sudo git clone https://github.com/librenms/librenms.git /opt/librenms
  8. Install the PHP dependencies for LibreNMS by running the following command:
    sudo /opt/librenms/scripts/composer_wrapper.php install --no-dev
  9. Configure PHP-FPM by running the following command:
    sudo cp /opt/librenms/php-fpm.conf /etc/php-fpm.d/librenms.conf sudo systemctl restart php-fpm
  10. Configure the MariaDB server by running the following command:
    sudo mysql -u root -p < /opt/librenms/doc/sql-schema/mysql.sql
  11. Configure Nginx server blocks by running the following command:
    sudo cp /opt/librenms/librenms.nonroot.nginx.conf /etc/nginx/conf.d/librenms.conf sudo systemctl restart nginx
  12. Finally, configure SELinux by running the following command:
    sudo setsebool -P httpd_can_sendmail=1 sudo setsebool -P httpd_execmem=1 sudo setsebool -P httpd_unified=1 sudo setsebool -P httpd_can_network_connect=1 sudo setsebool -P httpd_read_user_content=1 sudo setsebool -P httpd_can_connect_ldap=1 sudo setsebool -P httpd_can_network_relay=1 sudo setsebool -P httpd_can_connect_db=1 sudo setsebool -P httpd_use_nfs=1 sudo setsebool -P httpd_enable_homedirs=1

After completing these steps, you should be able to access the LibreNMS web interface by navigating to your server’s IP address in your web browser. If you encounter any issues, please refer to the official documentation for more information.

Conclusion

You now know how to install LibreNMS on Rocky Linux VPS server.

If you’re in the market for Cloud VPS servers, consider trying us out! New users can save 50% with code “NEWHERE“.

Launch rocky linux vps from $1. 99/mo
Launch rocky linux vps from $1. 99/mo!

Have a question about VPS services? Contact our support team or use the live chat on our website 24/7!

Avatar of editorial staff

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX.
lg