Issues with distributed polling/dispatcher service

Hi,

I got distributed polling /dispatcher service basically running.

But looks like I got some issues.

Looks like it’s running, but when checking via “./validate.php” or "./validate.php -g distributedpoller
" on the poller, it outputs the following:

bash-4.2$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 21.3.0-102-g385ef98
DB Schema | 2021_04_08_151101_add_foreign_keys_to_port_group_port_table (208)
PHP       | 7.4.16
Python    | 3.6.8
MySQL     | 10.5.9-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 2.0.12
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
[INFO]  Detected Dispatcher Service
[FAIL]  Missing PHP extension: memcached
    [FIX]:
    Please install memcached
bash-4.2$

bash-4.2$ ./validate.php -g distributedpoller
====================================
Component | Version
--------- | -------
LibreNMS  | 21.3.0-102-g385ef98
DB Schema | 2021_04_08_151101_add_foreign_keys_to_port_group_port_table (208)
PHP       | 7.4.16
Python    | 3.6.8
MySQL     | 10.5.9-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 2.0.12
[OK]    Dependencies up-to-date.
Checking distributedpoller: OK
[INFO]  Detected Dispatcher Service
bash-4.2$

Do I need mamcached on the poller. Asking because I set up a redis server on another host to connect to.
Also is it correct that the validate shows " [INFO] Detected Dispatcher Service". I got the dispatcher service running.

[[email protected] librenms]# service librenms status
Redirecting to /bin/systemctl status librenms.service
● librenms.service - LibreNMS SNMP Poller Service
   Loaded: loaded (/etc/systemd/system/librenms.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2021-04-15 10:03:52 CEST; 22h ago
 Main PID: 9288 (scl)
   CGroup: /system.slice/librenms.service
           ├─9288 /usr/bin/scl enable rh-python36 -- /opt/librenms/librenms-service.py -v
           ├─9289 /bin/bash /var/tmp/scllt7MhZ
           └─9292 /opt/rh/rh-python36/root/usr/bin/python3 /opt/librenms/librenms-service.py -v

Apr 16 08:30:21 ciena-librenms-poller-2 scl[9288]: Poller_1-24(INFO):Polling device 377
Apr 16 08:30:28 ciena-librenms-poller-2 scl[9288]: Poller_1-24(INFO):Completed poller run for 377 (1) in 6.15s
Apr 16 08:30:29 ciena-librenms-poller-2 scl[9288]: Poller_1-10(INFO):Polling device 458
Apr 16 08:30:29 ciena-librenms-poller-2 scl[9288]: Poller_1-18(INFO):Polling device 58
Apr 16 08:30:36 ciena-librenms-poller-2 scl[9288]: Poller_1-18(INFO):Completed poller run for 58 (1) in 6.49s
Apr 16 08:30:38 ciena-librenms-poller-2 scl[9288]: Poller_1-10(INFO):Completed poller run for 458 (1) in 8.52s
Apr 16 08:30:42 ciena-librenms-poller-2 scl[9288]: Poller_1-16(INFO):Polling device 50
Apr 16 08:30:47 ciena-librenms-poller-2 scl[9288]: Poller_1-16(INFO):Completed poller run for 50 (1) in 5.25s
Apr 16 08:31:00 ciena-librenms-poller-2 scl[9288]: Ping_1-1(INFO):Running fast ping
Apr 16 08:31:00 ciena-librenms-poller-2 scl[9288]: Ping_1-1(INFO):Completed ping run for  (1) in 0.57s
[[email protected] librenms]#

When trying to execute “librenms-service.py” I got the following:

[[email protected] librenms]# ./librenms-service.py
MainThread(ERROR):Could not import .env - check that the poller user can read the file, and that composer install has been run recently
Traceback (most recent call last):
  File "/opt/librenms/LibreNMS/service.py", line 308, in _get_config_data
    import dotenv
ModuleNotFoundError: No module named 'dotenv'
[[email protected] librenms]#

I am asking because my services I monitor keep flapping up/down