Validate.php in distributed environment

I have a couple of LibreNMS servers running in a distributed poller setup.
Everything is working fine, but I have noticed that validate.php gives an error on memcached connection.

As per the instructions here: Scaling LibreNMS - LibreNMS Docs I understand that I am free to choose my locking mechanism for the distributed poller.
I have chosen Redis and therefore I do not have memcached installed.

My .env file looks like this



Output from validate.php is

Component | Version
--------- | -------
LibreNMS  | 23.2.0-3-gc0fd1e15e (2023-02-24T13:10:10+01:00)
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (248)
PHP       | 8.2.3
Python    | 3.9.14
Database  | MariaDB 10.5.16-MariaDB
RRDTool   | 1.7.2
SNMP      | 5.9.1

[OK]    Composer Version: 2.5.4
[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
[FAIL]  Could not connect to memcached server
[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 functional
[OK]    rrdtool version ok
[OK]    Connected to rrdcached

Seeing that I use Redis and not Memcached, I believe the output from validate.php is incorrect (it is incorrectly checking for memcached). I also believe this is a cosmetic issue only, as everything works fine.

Can someone confirm this?
Maybe it’s a small bug that can be fixed?

Many thanks!!

Yes we get the same

[OK]    Connected to rrdcached
[FAIL]  Missing PHP extension: memcached
	Please install memcached
[OK]    Active pollers found
[OK]    Dispatcher Service is enabled
[OK]    Locks are functional
[OK]    No python wrapper pollers found
[OK]    Redis is functional

Thanks for the reply!

So it seems it’s a bug in validate.php, not honoring the chosen cache driver in a distributed poller setup.

Although only cosmetic, it would be nice if someone can fix it.

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