GNU/Linux >> Tutoriels Linux >  >> Panels >> Panels

Installer et configurer LibreNMS sur Ubuntu 16.04

LibreNMS est un système open source de supervision réseau avec découverte automatique, alertes personnalisables, API et applications mobiles.

1. Mise à jour du système

ssh root@IP_Address
apt-get update && apt-get upgrade

2. Installer Apache

apt-get -y install apache2
systemctl start apache2
systemctl enable apache2

Créez un hôte virtuel :

nano /etc/apache2/sites-available/librenms.conf
<VirtualHost *:80>
DocumentRoot /opt/librenms/html/
ServerName yourdomain.com
AllowEncodedSlashes NoDecode
<Directory "/opt/librenms/html/">
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
</VirtualHost>
a2ensite librenms.conf
a2enmod rewrite
systemctl restart apache2

3. Installer MariaDB

apt-get install -y mariadb-client mariadb-server
systemctl start mysql
systemctl enable mysql

Créez la base et l’utilisateur :

CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost';
FLUSH PRIVILEGES;

4. Installer PHP et dépendances

apt-get install php7.0-cli php7.0-curl php7.0-gd php7.0-json php7.0-mcrypt php7.0-mysql php7.0-snmp php7.0-xml php7.0-zip libapache2-mod-php7.0
apt-get install composer fping git graphviz imagemagick mtr-tiny nmap python-memcache python-mysqldb rrdtool snmp snmpd whois

5. Installer LibreNMS

useradd librenms -d /opt/librenms -M -r
usermod -a -G librenms www-data
cd /opt/
git clone https://github.com/librenms/librenms.git librenms
chown -R librenms:librenms /opt/librenms
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf

Modifiez la chaîne de communauté SNMP, puis terminez l’installation via https://yourdomain.com/install.php.

Panels
  1. Installer et configurer Redis sur Ubuntu 18.04

  2. Installer et Configurer Redmine sur Ubuntu 18.04

  3. Comment installer et configurer CyberPanel sur Ubuntu 18.04

  4. Installer et configurer Fail2ban sur Ubuntu 20.04

  5. Installer et configurer LibreNMS sur Ubuntu 20.04

Installer et configurer Git sur Ubuntu 20.04

Installer et configurer OpenVAS 9 sur Ubuntu

Installer et configurer Redis sur Ubuntu 20.04

Installer et configurer Neo4j sur Ubuntu 20.04

Installer et configurer Ubuntu SDK sur Ubuntu 16.04 et 14.04

Installer et configurer PostgreSQL sur Ubuntu