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
====================================
[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]
[OK] Database schema correct
[OK] MySQl and PHP time match
[INFO] fping FAILURES can be ignored if running LibreNMS in a jail without ::1. You may want to test it manually: fping ::1
[FAIL] /usr/sbin/fping6 could not be executed. /usr/sbin/fping6 must have CAP_NET_RAW capability (getcap) or suid. Selinux exclusions may be required.
(/usr/sbin/fping: can't create socket (must run as root?))
[FAIL] /usr/sbin/fping6 should have CAP_NET_RAW!
[FIX]:
setcap cap_net_raw+ep /usr/sbin/fping6
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Updates are managed through the official Docker image
The error I get in Event Log:
Error polling sensors module. Check log file for more details.
Error is librenms.log
:
[2023-06-06T11:24:01.773560+02:00] production.ERROR: Error polling sensors module for 10.0.13.1. 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-06-06T11:24:01.782259+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)"}
Any idea for this error?