Hello!
I am in the process of adding a new OS to support ESPHome devices using the ESPHome SNMP Component.
The data from SNMP looks to be in the discovery output. However, it is missing from the poller and web UI.
What am I doing wrong here?
./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 24.8.1 (2024-08-22T02:50:00+00:00)
DB Schema | 2024_07_19_120719_update_ports_stack_table (296)
PHP | 8.1.2-1ubuntu2.18
Python | 3.10.12
Database | MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
RRDTool | 1.7.2
SNMP | 5.9.1
===========================================
[OK] Composer Version: 2.7.9
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
Hi @JacobWilliamsErnst
We are probably lacking a MIB file here. LibreNMS expects to work with textual OIDs (oid) and the equivalent numerical form (num_oid). Working with both in numerical form is not currently supported I would say.
And because it seems that this SNMP implementation does not follow the standard rules (they did not request a standard Private Enterprise Numbers (PENs)), building and distributing a MIB would not make sense.
You should probably tell them to create an official SNMP port, and only after try to integrate it with LibreNMS.
I tried creating the equivalent pre-cache section in the esphome.yaml using both just the base OID and specific OID’s used in the sensors. Neither was successful.