Skip to content

OpenWrt: add temperature sensors and improve wireless SNMP agent support #618

@perceival

Description

@perceival

Summary

This issue tracks the need for improved LibreNMS agent support on OpenWrt routers, covering two areas:

  1. Temperature monitoring via a new lm-sensors-pass.sh SNMP pass script that walks the LM-SENSORS-MIB subtree using thermal zone data from /sys/class/thermal/.
  2. Wireless sensor hardening — live interface discovery from hostapd/iwinfo, MAC-based client counting with MLO/MLD deduplication, and fallback paths for client-mode interfaces across wlInterfaces.sh, wlClients.sh, wlRate.sh, wlNoiseFloor.sh, wlSNR.sh, wlFrequency.sh.
  3. Automated SNMP setupsetup-snmpd.sh and snmpd-config-generator.sh replace the previous static config approach with an install/apply workflow that cleanly manages LibreNMS-owned config blocks without duplicating them.

Implementation

A complete implementation is ready in PR #613, including:

The agent PR was originally submitted as #595, rebuilt from scratch incorporating reviewer feedback, and has been open since March 13 without a review. Two pings to @VVelox have gone unanswered.

Opening this issue to make the request visible to other maintainers and get a sense of whether the scope/approach is acceptable before the PRs go stale.

Why this matters

OpenWrt is widely used as the OS for home and SMB routers. Without these agent scripts, LibreNMS can monitor OpenWrt devices via standard SNMP but misses thermal alerts and meaningful wireless metrics (per-interface client counts, signal quality, noise floor). The gap is particularly relevant for Wi-Fi 6/6E deployments where MLO creates duplicate MAC appearances that naive counting gets wrong.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions