- wlClients.sh - Count Wi-Fi clients, auto-generates wlInterfaces.txt
- wlFrequency.sh - Get operating frequency (MHz)
- wlNoiseFloor.sh - Get noise floor (dBm)
- wlRate.sh - Get TX/RX bitrate statistics
- wlSNR.sh - Get Signal-to-Noise ratio
- lm-sensors-pass.sh - LM-SENSORS-MIB thermal sensor pass script
- distro.sh - Extract clean OpenWrt version string
- snmpd-config-generator.sh - Auto-generate UCI config
- snmpd-base-config - Base UCI configuration template
- setup-snmpd.sh - Automated installation script
- cleanup-and-fix.sh - Remove old broken exec entries
- README.md - Complete setup and usage guide
- LM-SENSORS-PASS-SETUP.md - Detailed thermal sensor setup guide
- librenms-openwrt-thermal-discovery.php - Custom discovery for nsExtend approach (not needed if using pass)
- thermal-sensors-index.sh (replaced by lm-sensors-pass.sh)
- thermal-sensors-name.sh (replaced by lm-sensors-pass.sh)
- thermal-sensors-temp.sh (replaced by lm-sensors-pass.sh)
- thermal-sensors-combined.sh (not needed)
- snmp-extend-*.sh (old approach)
- snmp-temp-single.sh (per-zone approach, not needed)
- snmp-type-single.sh (per-zone approach, not needed)
- All documentation markdown files except README and LM-SENSORS-PASS-SETUP
All necessary files are present. The package is complete.
# Create a deployment tarball
tar czf openwrt-snmpd-monitoring.tar.gz \
wl*.sh \
lm-sensors-pass.sh \
distro.sh \
cleanup-and-fix.sh \
snmpd-config-generator.sh \
setup-snmpd.sh \
snmpd-base-config
# Upload to device
scp openwrt-snmpd-monitoring.tar.gz root@your-device:/tmp/
# Extract and run setup
ssh root@your-device
cd /tmp
tar xzf openwrt-snmpd-monitoring.tar.gz
chmod +x setup-snmpd.sh
./setup-snmpd.sh# SSH to device
ssh root@your-device
# Run cleanup to remove old exec entries
/etc/librenms/cleanup-and-fix.sh
# Verify thermal sensors work
snmpwalk -v2c -c public localhost LM-SENSORS-MIB::lmTempSensorsValue# Check wireless metrics
snmpwalk -v2c -c public localhost .1.3.6.1.4.1.8072.1.3.2 | grep -E 'clients|frequency|snr'
# Check thermal sensors (should show Gauge32, not "Wrong Type")
snmpwalk -v2c -c public localhost LM-SENSORS-MIB::lmTempSensorsValueThermal sensors will be auto-discovered by LibreNMS since they're at standard LM-SENSORS-MIB OIDs.
- ✅ LM-SENSORS-MIB via pass - Proper standard MIB, correct data types
- ✅ No "Wrong Type" errors - Gauge32, INTEGER, STRING all correct
- ✅ Supports unlimited thermal zones - Not limited to 0-9
- ✅ Auto-discovery in LibreNMS - No custom PHP scripts needed
- ✅ Clean distro detection - Returns "OpenWrt X.X.X" without leading spaces
- ✅ Automatic cleanup - cleanup-and-fix.sh removes old broken entries
This package provides:
- Complete wireless monitoring (clients, frequency, rates, SNR, noise)
- Proper thermal sensor monitoring via LM-SENSORS-MIB
- Auto-configuration generation
- Works on all OpenWrt devices (ap1, ap2, risc-ap tested)
- Standard SNMP MIBs for maximum compatibility