Troubleshooting LibreNMS
Masalah
SysName duplicate
No SNMP, ICMP Only
Untuk menambahkan device tersebut bisa menggunakan perintah.
./addhost -P <IP>
Uninstall LibreNMS
Gunakan metode reverse untuk menghapus satu per satu apa saja yang sudah dipasang.
Solusi
https://docs.librenms.org/#Extensions/Auto-Discovery/#allow-duplicate-sysname
- Instalasi Alert untuk Suhu
Gunakan sensors.sensor_current.
Suddenly Error
Gunakan berkas validate.php untuk memeriksa masalah pada LibreNMS.
cd /opt/librenms
./validate.php
Jika ditemukan error silahkan jalankan perintah yang disarankan melalui output validate.php.
Configure SNMP on Windows 10
Enable SNMP via Windows Features
Its in the "Turn Windows Features On or OFF" list in Control Panel> Programs and Features, it uninstalled by default but can be added.
Enable Ping via Windows Firewall
Windows Defender Firewall -> Advanced Settings
From the left pane of the resulting window, click Inbound Rules.
In the right pane, find the rules titled File and Printer Sharing (Echo Request - ICMPv4-In).
Right-click each rule and choose Enable Rule.
LibreNMS daily.sh failed
It happened because some codes changed by hand, e.g. when you editing LibreNMS/Alert/Transport/Telegram.php.
error: Your local changes to the following files would be overwritten by merge:
Do these commands:
sudo git stash
sudo git config --global user.email "[email protected]"
sudo git config --global user.name "whoareyou"