I’ve added some custom state sensors for devices. And it works perfectly for both a discovery using “./discovery.php [device id]” and subsequent polls/ manually using “lnms device:poll [device id]”
However using the rediscovery option via the gui, or when discovery is run via the dispatcher service, all the new state sensors are removed.
I’ve not been able to figure out how to debug the gui or dispatcher service to see what is occurring
Any ideas why it would be fine via command line, but have issues when using the GUI/ dispatched service
Thanks in Advance.
===========================================
/opt/librenms $ ./validate.php
Component | Version |
---|---|
LibreNMS | 24.5.0 (2024-05-23T02:20:34+12:00) |
DB Schema | 2024_04_29_183605_custom_maps_drop_background_suffix_and_background_version (296) |
PHP | 8.2.19 |
Python | 3.11.9 |
Database | MariaDB 10.5.25-MariaDB-ubu2004 |
RRDTool | 1.8.0 |
SNMP | 5.9.4 |
=========================================== |
[OK] Installed from the official Docker image; no Composer required
[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] Distributed Polling setting is enabled globally
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] No python wrapper pollers found
[OK] Redis is functional
[OK] rrdtool version ok
[OK] Connected to rrdcached
[WARN] Updates are managed through the official Docker image