network-monitoring-netdata.sh
Script to install network monitoring tools (SNMP/Netdata) adapted to memory constraints.
With only 256 MB of RAM, Netdata can be heavy. SNMP is a lightweight alternative. Install snmpd and configure it. Use an external server to collect data via SNMP.
network-monitoring-netdata.sh
#!/bin/sh
# Installation de Netdata sur OpenWrt (BPI-RT2)
# Note : L'installation native peut être lourde. Utilisez le script officiel ou les paquets tiers.
# 1. Installer les dépendances
opkg update
opkg install curl ca-bundle
# 2. Télécharger le script d'installation (vérifiez la compatibilité MIPS)
# curl -SfL https://get.netdata.cloud/kickstart.sh > /tmp/netdata-kickstart.sh
# sh /tmp/netdata-kickstart.sh --disable-telemetry
# Alternative légère : Utiliser 'collectd' ou 'snmpd' si Netdata est trop lourd pour 256Mo RAM.
# Ici, exemple de configuration de SNMP pour une surveillance externe
opkg install snmpd
uci set snmpd.@agent[0].agentaddress='161'
uci commit snmpd
/etc/init.d/snmpd enable
/etc/init.d/snmpd restart
echo "SNMP activé. Utilisez un outil comme Cacti ou Zabbix pour surveiller le BPI-RT2."