1. prereq

curl -s http://d01cid.ddns.net/sharel/bin/inst-httpd | sh
curl -s http://d01cid.ddns.net/sharel/bin/inst-php72 | sh
curl -s http://d01cid.ddns.net/sharel/bin/inst-mariadb-server | sh
curl -s http://d01cid.ddns.net/sharel/bin/inst-snmpd | sh

2. installation

 yum -y install fping git ImageMagick jwhois mtr MySQL-python nmap python-memcached rrdtool php-snmp
// php71w php71w-cli php71w-common php71w-curl php71w-gd php71w-mcrypt php71w-mysql php71w-process php71w-snmp php71w-xml php71w-zip
// yum -y install https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
cd /opt/
git clone https://github.com/librenms/librenms.git librenms
chmod 775 /opt/librenms/rrd/
chown -R librenms:librenms /opt/librenms/
chmod ug+rw /opt/librenms/logs/

3. configuration

useradd librenms -d /opt/librenms -M -r
usermod -a -G librenms apache

4. mysql

mysql -u'root' -p'Passw0rd' -e "create database librenms;"
vi /etc/my.cnf
[mysqld]
innodb_file_per_table=1
sql-mode=""
lower_case_table_names=0
systemctl restart mariadb

5. httpd

vi /etc/httpd/conf.d/librenms.conf
<VirtualHost *:80>
  DocumentRoot /opt/librenms/html/
  ServerName srv121.d01.net

  AllowEncodedSlashes NoDecode
  <Directory "/opt/librenms/html/">
    Require all granted
    AllowOverride All
    Options FollowSymLinks MultiViews
  </Directory>
</VirtualHost>
systemctl reload httpd

6. cron, logrotate

cp /opt/librenms/librenms.nonroot.cron /etc/cron.d/librenms
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms

7. references