Hello.
librenms get error to get axis´s camera sensors.
-
Steps to reproduce an issue.
~$ ./discovery.php -h 548 -dv -m sensors
Temperature: AXIS Temperatures Error discovering sensors module for camera1. TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /opt/librenms/includes/discovery/sensors/temperature/axiscam.inc.php:14
Stack trace:
#0 /opt/librenms/includes/discovery/sensors/temperature/axiscam.inc.php(14): array_keys()
#1 /opt/librenms/includes/discovery/functions.inc.php(1019): include(‘…’)
#2 /opt/librenms/includes/discovery/sensors.inc.php(87): sensors()
#3 /opt/librenms/includes/discovery/functions.inc.php(164): include(‘…’)
#4 /opt/librenms/discovery.php(108): discover_device()
#5 {main}
SQL[insert into eventlog
(reference
, type
, datetime
, severity
, message
, username
, device_id
) values (?, ?, ?, ?, ?, ?, ?) [null,“discovery”,“2023-11-28 10:28:22”,5,“Error discovering sensors module. Check log file for more details.”,“”,548] 0.43ms
- The output of
./validate.php
~$ ./validate.php
Component | Version |
---|---|
LibreNMS | 23.11.0-8-g90927be97 (2023-11-27T23:38:41-03:00) |
DB Schema | 2023_11_21_172239_increase_vminfo.vmwvmguestos_column_length (274) |
PHP | 8.1.2-1ubuntu2.14 |
Python | 3.10.12 |
Database | MariaDB 10.6.16-MariaDB-1:10.6.16+maria~ubu2204-log |
RRDTool | 1.7.2 |
SNMP | 5.9.1 |
=========================================== |
[OK] Composer Version: 2.6.5
[OK] Dependencies up-to-date.
[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 not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
If you are having troubles with discovery/polling include the pastebin output of:
./discovery.php -h HOSTNAME -d | ./pbin.sh
https://p.libren.ms/view/b0ab1f2f