LibreNMS – A Fully Featured Network Monitoring Tool for Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

11 Responses

  1. jj says:

    There is a bad gateway error due to mistake in /etc/nginx/conf.d/librenms.conf file. There should be fastcgi_pass unix:/var/run/php-fpm/php7.2-fpm.sock;

    • Aaron Kili says:


      Correct, this depends on your PHP version. If you have PHP 7.2, then use fastcgi_pass unix:/var/run/php-fpm/php7.2-fpm.sock; or if you have PHP 7.0, use fastcgi_pass unix:/var/run/php-fpm/php7.0-fpm.sock; and so on. Many thanks for sharing this.

  2. Iulian Murgulet says:

    Hi Aaron,

    Another info about librenms:

    • can be used with many printers (it show info about consumables ), and switches/routers.
    • on the librenms site you can find virtual disks (vmdk format) ready to use.
    • can send mails on some events (like link up/down).
    • can check many services (ssh, mysql, …)

    It is a very good tool, in my case with more then 20 snmp devices (10 are 24 ports switches) during almost one year I do not have any problem (and I make updates very often)

  3. Michael K. says:

    @Aaron Kili

    There is another typo for CentOS 7 because there is no service named snmp. It is named snmpd not snmp.

    It should be:-

    # systemctl start nginx php--fpm mariadb snmpd
    # systemctl enable nginx php--fpm mariadb snmpd

    Also the part where you make changes to the nginx configuration files does not refer to the default files installed on CentOS 7 after installing nginx.

    Everything is now in /etc/nginx/conf.d/ the file default.conf is there.

    nginx.conf contains only the following:-

    user  nginx;
    worker_processes  1;
    error_log  /var/log/nginx/error.log warn;
    pid        /var/run/;
    events {
        worker_connections  1024;
    http {
        include       /etc/nginx/mime.types;
        default_type  application/octet-stream;
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';
        access_log  /var/log/nginx/access.log  main;
        sendfile        on;
        #tcp_nopush     on;
        keepalive_timeout  65;
        #gzip  on;
        include /etc/nginx/conf.d/*.conf;

    Please revisit the nginx configuration area while looking at the files in a current version of CentOS 7 as so much in your how-to is different to current files in CentOS 7 that I cannot work out what to do.

    Michael K.

  4. David Pope says:

    Stuck on Step 1 on RHEL 7.4, please somebody review for me:

    [[email protected] student]# systemctl nginx start php7.0-fpm mariadb snmp
    Unknown operation ‘nginx’.

    [[email protected] student]# systemctl start nginx php7.0-fpm mariadb snmp
    Failed to start php7.0-fpm.service: Unit not found.
    Failed to start snmp.service: Unit not found.

    • Ravi Saive says:


      Have you enabled EPEL repository on the system? epel must be enabled on the system to install nginx as shown.

      # yum install epel-release
      # yum install nginx 

      Also to install PHP 7, you need to enable Remi repository on RHEL 7, please follow this guide –

    • Aaron Kili says:


      Sorry, there is a typo in the article. From the output of the second command, you do not have PHP7.0-FPM and SNMP services installed on your system. Ensure that you install all required packages like this:

      # yum install epel-release
      # rpm -Uvh
      # yum install composer cronie fping git ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nginx nmap php72w php72w-cli php72w-common php72w-curl php72w-fpm php72w-gd php72w-mysqlnd php72w-process php72w-snmp php72w-xml php72w-zip python-memcached rrdtool

      Then start the services like this, the correct commands are here:

      # systemctl start nginx php--fpm mariadb snmp 
      # systemctl enable nginx php--fpm mariadb snmp
  5. Tim says:

    Love LibreNMS. It’s one of my favorite tools.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.