Error in App\Discovery\Sensor

Hi,

I’m having issues with discovery sensors after adding a new device to LibreNMS.

Output of ./validate.php

Component Version
LibreNMS 25.2.0-51-g79eb6d1a2 (2025-03-11T16:10:56+00:00)
DB Schema 2025_01_30_214311_create_ipv6_nd_table (320)
PHP 8.3.16
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.8.6
[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 not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok

Output of ./discovery.php -h HOSTNAME -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: juan.adrian
private: 1
expire: 0
{“url”:“https://p.libren.ms/view/6aa24cb0”}

Output of ./poller.php -h HOSTNAME -r -f -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: juan.adrian
private: 1
expire: 0
{“url”:“https://p.libren.ms/view/e4d2da9f”}

The error I can see in the logs is:
[2025-03-12T00:35:16][ERROR] %rError discovering sensors module for enclosure-3.%n TypeError: App\Discovery\Sensor::withStateTranslations(): Argument #1 ($stateName) must be of type string, null given, called in /opt/librenms/includes/functions.php on line 426 and defined in /opt/librenms/app/Discovery/Sensor.php:80
Stack trace:
#0 /opt/librenms/includes/functions.php(426): App\Discovery\Sensor->withStateTranslations()
#1 /opt/librenms/includes/discovery/sensors/state/hpblmos.inc.php(27): create_state_index()
#2 /opt/librenms/includes/discovery/functions.inc.php(739): include(‘…’)
#3 /opt/librenms/includes/discovery/sensors.inc.php(85): sensors()
#4 /opt/librenms/includes/discovery/functions.inc.php(172): include(‘…’)
#5 /opt/librenms/discovery.php(108): discover_device()
#6 {main} {“color”:true}
[2025-03-12T00:35:16][ERROR] App\Discovery\Sensor::withStateTranslations(): Argument #1 ($stateName) must be of type string, null given, called in /opt/librenms/includes/functions.php on line 426 {“exception”:“[object] (TypeError(code: 0): App\Discovery\Sensor::withStateTranslations(): Argument #1 ($stateName) must be of type string, null given, called in /opt/librenms/includes/functions.php on line 426 at /opt/librenms/app/Discovery/Sensor.php:80)”}

Can someone help me with this?

Thanks in advance!