support:librenms_netzwerkmonitoring
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
support:librenms_netzwerkmonitoring [2025/07/28 02:42] – admin | support:librenms_netzwerkmonitoring [2025/07/28 02:48] (aktuell) – admin | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
====== LibreNMS on Debian 12/11/10 ====== | ====== LibreNMS on Debian 12/11/10 ====== | ||
Netzwerkmonitoring per SNMP \\ | Netzwerkmonitoring per SNMP \\ | ||
- | {{https:// | + | [[https:// |
+ | ==== LibreNMS installieren.. ==== | ||
+ | #### Install Required Packages | ||
+ | @sudo apt install lsb-release ca-certificates wget acl curl fping git graphviz imagemagick mariadb-client mariadb- | ||
+ | #### Add librenms user | ||
+ | @sudo useradd librenms -d / | ||
+ | #### Download LibreNMS | ||
+ | @cd /opt | ||
+ | @git clone https:// | ||
+ | #### Set permissions | ||
+ | @chown -R librenms: | ||
+ | @chmod 771 / | ||
+ | @setfacl -d -m g::rwx / | ||
+ | @setfacl -R -m g::rwx / | ||
+ | #### Install PHP dependencies | ||
+ | @su - librenms | ||
+ | #### Führen Sie dann das Composer-Wrapper-Skript aus und beenden Sie das Programm, um zum Root-Benutzer | ||
+ | @./ | ||
+ | @exit | ||
+ | # | ||
+ | # #################### | ||
+ | # php8.3 und 8.4 install | ||
+ | @sudo apt install ca-certificates apt-transport-https software-properties-common lsb-release -y | ||
+ | @curl -sSL https:// | ||
+ | @sudo apt update | ||
+ | @sudo apt install php8.3 libapache2-mod-php8.3 | ||
+ | @sudo apt install php8.4 libapache2-mod-php8.4 | ||
+ | @sudo apt-get install php8.3-common | ||
+ | @sudo apt-get install php8.3-cli | ||
+ | @sudo apt-get install php8.3-fpm | ||
+ | @sudo apt-get install php8.3-json | ||
+ | @sudo apt-get install php8.3-pdo php8.3-mysql | ||
+ | @sudo apt-get install php8.3-zip php8.3-gd | ||
+ | @sudo apt-get install php8.3-curl | ||
+ | @sudo apt-get install php8.3-xml | ||
+ | @sudo apt-get install php8.3-pear | ||
+ | @sudo apt-get install php8.3-pear php8.3-bcmath | ||
+ | @sudo apt-get install php8.3-cli php8.3-fpm php8.3-json php8.3-pdo php8.3-mysql php8.3-zip php8.3-gd | ||
+ | # Danach die anderen beiden versionen installieren muss nur noch jeweils fpm | ||
+ | # php8.0 install | ||
+ | @sudo apt install php8.0 libapache2-mod-php8.0 | ||
+ | @sudo apt-get install php8.0-fpm | ||
+ | # php8.1 install | ||
+ | @sudo apt install php8.1 libapache2-mod-php8.1 | ||
+ | @sudo apt-get install php8.1-fpm | ||
+ | # #################### | ||
+ | # | ||
+ | #### PHP Setting | ||
+ | #### Set timezone | ||
+ | ###### date.timezone = " | ||
+ | ###### Jeweils in cli und fpm Verzeichnis / | ||
+ | #### Jeweils in Zeile 976 | ||
+ | @sudo nano / | ||
+ | @sudo nano / | ||
+ | #### speicher undschliessen | ||
+ | #### Zusätzlich | ||
+ | timedatectl set-timezone Europe/ | ||
+ | #### Configure MariaDB | ||
+ | @sudo nano / | ||
+ | #### Within the [mysqld] section add: | ||
+ | innodb_file_per_table=1 | ||
+ | lower_case_table_names=0 | ||
+ | #### Then restart MariaDB | ||
+ | @systemctl enable mariadb | ||
+ | @systemctl restart mariadb | ||
+ | #### Start MariaDB client | ||
+ | @mysql -u root | ||
+ | CREATE DATABASE librenms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
+ | CREATE USER ' | ||
+ | GRANT ALL PRIVILEGES ON librenms.* TO ' | ||
+ | exit | ||
+ | #### Configure PHP-FPM | ||
+ | @sudo cp / | ||
+ | @sudo nano / | ||
+ | #### Change [www] to [librenms]: | ||
+ | [librenms] | ||
+ | #### Change user and group to " | ||
+ | user = librenms | ||
+ | group = librenms | ||
+ | #### Change listen to a unique path that must match your webserver' | ||
+ | listen = / | ||
+ | #### Configure Web Server | ||
+ | @nano / | ||
+ | #### Add the following config, edit server_name as required: | ||
+ | #### Datei Inhalt Start ######### | ||
+ | server { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | gzip on; | ||
+ | | ||
+ | | ||
+ | try_files $uri $uri/ / | ||
+ | } | ||
+ | | ||
+ | fastcgi_pass unix:/ | ||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | include fastcgi.conf; | ||
+ | } | ||
+ | | ||
+ | deny all; | ||
+ | } | ||
+ | } | ||
+ | #### Datei Inhalt ENDE ########### | ||
+ | @rm / | ||
+ | @systemctl reload nginx | ||
+ | @systemctl restart php8.2-fpm | ||
+ | #### Aktivieren Sie die lnms-Befehlsvervollständigung | ||
+ | ###### Diese Funktion bietet Ihnen die Möglichkeit, | ||
+ | @ln -s / | ||
+ | @cp / | ||
+ | #### Configure snmpd (v2c) | ||
+ | #### If you would like to use SNMPv3 then please see here https:// | ||
+ | @cp / | ||
+ | @sudo nano / | ||
+ | #### Anpaasen und speichern | ||
+ | @curl -o / | ||
+ | @chmod +x / | ||
+ | @systemctl enable snmpd | ||
+ | @systemctl restart snmpd | ||
+ | #### Cron job | ||
+ | @cp / | ||
+ | #### Enable the scheduler | ||
+ | @cp / | ||
+ | @systemctl enable librenms-scheduler.timer | ||
+ | @systemctl start librenms-scheduler.timer | ||
+ | #### Enable logrotate | ||
+ | ###### LibreNMS keeps logs in / | ||
+ | ###### Um die alten Protokolle auszulagern, | ||
+ | @cp / | ||
+ | #### Web installer | ||
+ | #### Fügen Sie das erste Gerät hinzu | ||
+ | #### Wir empfehlen Ihnen nun, localhost als Ihr erstes Gerät innerhalb der WebUI hinzuzufügen. | ||
+ | #### Troubleshooting | ||
+ | @sudo su - librenms | ||
+ | @./ | ||
support/librenms_netzwerkmonitoring.1753663354.txt.gz · Zuletzt geändert: von admin