LibreNMS – automatisches Netzwerk-Monitoring mit SNMP 2025

Alle Switches und Router automatisch überwachen

S
SeeColors IT
11. Juni 20264 Min. Lesezeit160 Aufrufe

LibreNMS mit Docker installieren

# Docker Compose für LibreNMS
git clone https://github.com/librenms/docker.git librenms-docker
cd librenms-docker

# .env anpassen
cp .env.example .env
sed -i 's/LIBRENMS_BASE_URL=.*/LIBRENMS_BASE_URL=http://192.168.1.100/' .env

docker compose up -d

# Admin-User erstellen
docker compose exec librenms lnms user:add admin --password sicheres-pw --role admin

# Web-UI: http://192.168.1.100

SNMP auf Geräten aktivieren

# Linux-Server
apt install -y snmpd

cat > /etc/snmp/snmpd.conf << 'EOF'
rocommunity public 192.168.1.0/24
syslocation Serverraum Heidelberg
syscontact [email protected]
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
access notConfigGroup "" any noauth exact systemonly none none
EOF

systemctl restart snmpd

# Test
snmpwalk -v2c -c public localhost sysDescr
! Cisco IOS SNMP
Switch(config)# snmp-server community public RO
Switch(config)# snmp-server location Serverraum
Switch(config)# snmp-server contact [email protected]
Switch(config)# snmp-server host 192.168.1.100 traps version 2c public

Gerät zu LibreNMS hinzufügen

# Auto-Discovery (scannt ganzes Subnet)
# LibreNMS → Devices → Add Devices → Scan Network
# Eingabe: 192.168.1.0/24
# SNMP Community: public
# → Alle SNMP-Geräte werden automatisch gefunden!

# Manuell
docker compose exec librenms lnms device:add 192.168.1.1     --community public     --version v2c

Alerts konfigurieren

LibreNMS → Alerts → Alert Rules:

1. Interface Down
   Rule: %devices.type = "network" && %ports.ifOperStatus = "down"
   Severity: Critical

2. Hohe CPU-Last (> 90%)
   Rule: %processors.processor_usage > 90
   Severity: Warning

3. Gerät nicht erreichbar
   Rule: %devices.status = 0
   Severity: Critical

Alert Transport (E-Mail):
Settings → Alert Transports → Add Email

LibreNMS Dashboards

Vorgefertigte Dashboards:
- Netzwerk-Übersicht
- Geräte-Gesundheit
- Port-Statistiken
- BGP-Sessions

Eigene Dashboards:
LibreNMS → Dashboards → Add Dashboard
Widgets: Traffic, Availability, Alerts

SNMP v3 (sicherer als Community-String)

# /etc/snmp/snmpd.conf mit SNMP v3
createUser librenms SHA "SicheresAuthPasswort" AES "SicheresPrivPasswort"
rouser librenms priv

# LibreNMS Gerät mit SNMPv3
docker compose exec librenms lnms device:add 192.168.1.1     --version v3     --authlevel authPriv     --authname librenms     --authpass SicheresAuthPasswort     --cryptopass SicheresPrivPasswort

FAQ

Was ist der Unterschied zwischen LibreNMS und Zabbix für Netzwerk-Monitoring?
LibreNMS: speziell für Netzwerkgeräte (Switches, Router), Auto-Discovery, einfachere Einrichtung. Zabbix: universell (Server + Netzwerk), mächtiger aber komplexer.

Fazit

LibreNMS ist die beste Open-Source-Lösung für automatisches Netzwerk-Monitoring: 100+ Geräte per Auto-Discovery in Minuten überwachen.

Netzwerk-Monitoring für KMU in Heidelberg, Mannheim und der Rhein-Neckar-Region. Anfragen.

Artikel teilen

War dieser Artikel hilfreich?

Dein Feedback hilft uns, bessere Inhalte zu erstellen.

Kommentar hinterlassen

Verwandte Artikel