Dynamic groups issue with 1k devices

Hi everyone,

I’ve found a strange issue on our LibreNMS infrastructure.

We have a heavy use of dynamics groups, especially for managing rights for ours end users.

We are using “Device access via Device Group” and we have a dynamic group for each team which is filtering devices based on their locations.

When the dynamic group is reaching 1k devices, the users using this group for rights find themselves with a blank dashboard, all widgets are displayed but with 0 devices and 0 alerts.

This line is logged in librenms.log when someone in this group is trying to refresh the dashboard page:

production.ERROR: Trying to get property ‘name’ of non-object {“userId”:21,“exception”:"[object] (ErrorException(code: 0): Trying to get property ‘name’ of non-object at /opt/librenms/app/Http/Controllers/Widgets/WidgetController.php:78)"}

Thanks for your help !

------ validate.php ------

Component Version
LibreNMS 22.3.0-26-g686a27f68
DB Schema 2022_02_03_164059_increase_auth_id_length (235)
PHP 7.4.3
Python 3.8.10
MySQL 10.3.34-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP 5.8

====================================

[OK] Composer Version: 2.3.4
[OK] Dependencies up-to-date.
[FAIL] APP_KEY does not match key used to encrypt data. APP_KEY must be the same on all nodes.
[FIX]:
If you rotated APP_KEY, run lnms key:rotate to resolve.
[OK] Database connection successful
[OK] Database schema correct
[INFO] Detected Python Wrapper
[OK] Connection to memcached is ok

Hi all,

I’m still investigating the issue.

It’s not related to dynamics groups, when I’m creating a static group with exactly 1000 devices everything stops working.
When the number of devices is lowered to 999 everything works fine.

So, I think it’s directly related to “Device access via Device Group”.

I though about the “max_input_vars” who is set by default to 1000 in the php.ini file but changing this value is ineffective.

I’m looking for errors in differents files like librenms.log, php-fpm7.4.log, mysql.log errors without any clue…

If you have any idea… Thanks for your help !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.