Hi!
Thanks for helping me out, sorry for the late response.
In the librenms.log
I can only see two error:
This one is quite frequent, I reported it in another thread:
/opt/librenms/poller.php 51 2023-08-14 20:30:14 - 1 devices polled in 15.68 secs
/opt/librenms/poller.php 10 2023-08-14 20:30:16 - 1 devices polled in 11.55 secs
[2023-08-14T20:30:25.191186+02:00] production.ERROR: Error polling sensors module for 172.16.8.252. LibreNMS\Exceptions\InvalidRrdTypeException: is not valid, must be: GAUGE | DERIVE | COUNTER | ABSOLUTE | DCOUNTER | DDERIVE in /opt/librenms/LibreNMS/RRD/RrdDefinition.php:122
Stack trace:
#0 /opt/librenms/LibreNMS/RRD/RrdDefinition.php(65): LibreNMS\RRD\RrdDefinition->checkType()
#1 /opt/librenms/includes/polling/functions.inc.php(189): LibreNMS\RRD\RrdDefinition->addDataset()
#2 /opt/librenms/includes/polling/functions.inc.php(135): record_sensor_data()
#3 /opt/librenms/includes/polling/sensors.inc.php(28): poll_sensor()
#4 /opt/librenms/includes/polling/functions.inc.php(340): include('...')
#5 /opt/librenms/poller.php(126): poll_device()
#6 {main}
[2023-08-14T20:30:25.201219+02:00] production.ERROR: is not valid, must be: GAUGE | DERIVE | COUNTER | ABSOLUTE | DCOUNTER | DDERIVE {"exception":"[object] (LibreNMS\\Exceptions\\InvalidRrdTypeException(code: 0): is not valid, must be: GAUGE | DERIVE | COUNTER | ABSOLUTE | DCOUNTER | DDERIVE at /opt/librenms/LibreNMS/RRD/RrdDefinition.php:122)"}
Dear Community!
Some of my devices in LibreNMS have sensors module. However since some updates ago, this is completely broken for me, I can’t see any graphs about sensors.
Validate config:
====================================
Component | Version
--------- | -------
LibreNMS | 22.7.0
DB Schema | 2022_07_19_081224_plugins_unique_index (243)
PHP | 8.1.17
Python | 3.10.10
MySQL | 10.4.29-MariaDB-1:10.4.29+maria~ubu2004
RRDTool | 1.7.2
SNMP | 5.9.3
============================…
The other one is less frequent:
/opt/librenms/discovery.php 60 2023-08-14 20:01:13 - 1 devices discovered in 17.81 secs
/opt/librenms/discovery.php 55 2023-08-14 20:01:14 - 1 devices discovered in 21.47 secs
/opt/librenms/discovery.php 56 2023-08-14 20:01:15 - 1 devices discovered in 21.27 secs
[2023-08-14T20:01:16.436511+02:00] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rrd_type' in 'field list' (SQL: INSERT IGNORE INTO `wireless_sensors` (`sensor_class`,`device_id`,`sensor_oids`,`sensor_index`,`sensor_type`,`sensor_descr`,`sensor_divisor`,`sensor_multiplier`,`sensor_aggregator`,`sensor_limit`,`sensor_limit_warn`,`sensor_limit_low`,`sensor_limit_low_warn`,`sensor_current`,`entPhysicalIndex`,`entPhysicalIndex_measured`,`rrd_type`,`access_point_id`) VALUES (sinr,61,[".1.3.6.1.4.1.14988.1.1.16.1.1.7.5"],5,routeros,lte1: Signal SINR,1,1,sum,NULL,NULL,NULL,NULL,-2,NULL,NULL,GAUGE,NULL)) (SQL: INSERT IGNORE INTO `wireless_sensors` (`sensor_class`,`device_id`,`sensor_oids`,`sensor_index`,`sensor_type`,`sensor_descr`,`sensor_divisor`,`sensor_multiplier`,`sensor_aggregator`,`sensor_limit`,`sensor_limit_warn`,`sensor_limit_low`,`sensor_limit_low_warn`,`sensor_current`,`entPhysicalIndex`,`entPhysicalIndex_measured`,`rrd_type`,`access_point_id`) VALUES (sinr,61,[".1.3.6.1.4.1.14988.1.1.16.1.1.7.5"],5,routeros,lte1: Signal SINR,1,1,sum,NULL,NULL,NULL,NULL,-2,NULL,NULL,GAUGE,NULL))#0 /opt/librenms/LibreNMS/Device/Sensor.php(170): dbInsert()
#1 /opt/librenms/LibreNMS/Device/Sensor.php(558): LibreNMS\Device\Sensor->save()
#2 /opt/librenms/LibreNMS/Device/Sensor.php(475): LibreNMS\Device\Sensor::sync()
#3 /opt/librenms/LibreNMS/Device/WirelessSensor.php(116): LibreNMS\Device\Sensor::discoverType()
#4 /opt/librenms/includes/discovery/wireless.inc.php(28): LibreNMS\Device\WirelessSensor::runDiscovery()
#5 /opt/librenms/includes/discovery/functions.inc.php(153): include('...')
#6 /opt/librenms/discovery.php(106): discover_device()
#7 {main}