Install LibreNMS on CentOS 7 Minimal

Intro

It has been a very long time since my last post. This one was inspired by the lack of fully documented installs online, outlining each and every step, with a visual, for those who learn using images.

I have also included the ever-populer oxidized in this guide, as this for me personally, was really tricky to get operational.

I initially built this for my employer, and have now built it at home to monitor my homelab.

Something to note, is that it is incredibly easy to mess things up, and without a decent amount of knowledge around Linux systems, can make it very difficult to roll back, so I recommend using some form of snapshotting technology, this should help you quickly revert if you need to.

I have built this in a vSphere 7.0 environment on a ESXi 7.0 host.

The Prerequisites

Install Required Packages

sudo yum install -y epel-release yum-utils

sudo yum localinstall -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm

sudo yum-config-manager --enable remi-php73

Add the MariaDB10 Repository

sudo vi /etc/yum.repos.d/MariaDB10.repo

Add the following information and save the file:

# MariaDB 10.5 CentOS repository list - created 2021-04-26 19:41 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Once this is done, begin the install of all the required applications

sudo yum instalsudo yum install -y composer cronie fping git ImageMagick jwhois mariadb-server mariadb-client mtr sudo yum install -y composer cronie fping git ImageMagick jwhois mariadb-server mariadb-client mtr MySQL-python net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd phpmbstring php-process php-snmp php-xml php-zip php-memcached php-mysqlnd python-memcached rrdtool python3 python3-pip zip unzip php-zip gcc python3-devel

Leave a Reply

Your email address will not be published.

*
*