Dispatcher service use fping with -c instead of -r

My problem here is that I’m trying to get fping args right to get as low false positive as possible and I don’t like the way the -c option works with timeout. So I was pleased to try the new dispatcher service that suppose to get fping use the -r options who is handles quite differently by fping but fine with me.

Problem is that even if all cron are deactivate and the dispatcher service is polling fine…
fping still use -c. Even weirder, I’ve got a process: fping -f - -e -t 500 -r 2 that run every now and than…
But cannot work since no file is pass to the -f switch.

Here’s my config.php, validate.php, cron.d/librenms, librenms.service, redis keys, .env and process

./validate.php

bash-4.2$ ./validate.php

Component Version
LibreNMS 1.61-13-g5628b60
DB Schema 2020_02_10_223323_create_alert_location_map_table (159)
PHP 7.3.13
MySQL 5.5.64-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct


CRON

[root@SRV-LTQ-LNMS librenms]# cat /etc/cron.d/librenms
# Using this cron file requires an additional user on your system, please see install docs.

#33 /6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
#
/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
#/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
#
* * * * librenms /opt/librenms/alerts.php >> /dev/null 2>&1
#/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1
#
/5 * * * * librenms /opt/librenms/services-wrapper.py 1

# Daily maintenance script. DO NOT DISABLE!
# If you want to modify updates:
# Switch to monthly stable release: https://docs.librenms.org/General/Releases/
# Disable updates: https://docs.librenms.org/General/Updating/
#15 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1

# Cron for weathermaps plugins
##*/5 * * * * librenms /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1

# Cron for file access rights
*/5 * * * * root chown -R librenms:librenms /opt/librenms
*/5 * * * * root setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
*/5 * * * * root chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
[root@SRV-LTQ-LNMS librenms]#


CONFIG.PHP

[root@SRV-LTQ-LNMS librenms]# cat config.php | grep service
$config[‘show_services’] = 1; # Enable Services on menu
$config[‘service_ping_enabled’] = true;
$config[‘service_poller_workers’] = 16; # Processes spawned for polling
$config[‘service_services_workers’] = 8; # Processes spawned for service polling
$config[‘service_discovery_workers’] = 16; # Processes spawned for discovery
#$config[‘service_poller_frequency’] = 300; # Seconds between polling attempts
#$config[‘service_services_frequency’] = 300; # Seconds between service polling attempts
#$config[‘service_discovery_frequency’] = 21600; # Seconds between discovery runs
#$config[‘service_billing_frequency’] = 300; # Seconds between billing calculations
#$config[‘service_billing_calculate_frequency’] = 60; # Billing interval
#$config[‘service_poller_down_retry’] = 60; # Seconds between failed polling attempts
#$config[‘service_loglevel’] = ‘DEBUG’; # Must be one of ‘DEBUG’, ‘INFO’, ‘WARNING’, ‘ERROR’, ‘CRITICAL’
#$config[‘service_update_frequency’] = 86400; # Seconds between LibreNMS update checks


LIBRENMS.SERVICE

[root@SRV-LTQ-LNMS librenms]# cat /etc/systemd/system/librenms.service
[Unit]
Description=LibreNMS SNMP Poller Service
After=network.target

[Service]
ExecStart=/usr/bin/scl enable rh-python36 – /opt/librenms/librenms-service.py -v
WorkingDirectory=/opt/librenms
User=librenms
Group=librenms
RestartSec=2
Restart=always

[Install]
WantedBy=multi-user.target


REDIS

[root@SRV-LTQ-LNMS librenms]# redis-cli
127.0.0.1:6379> KEYS *

  1. “librenms.lock:poller.device.169”
  2. “librenms.lock:dispatch.master”
    127.0.0.1:6379>

.ENV

[root@SRV-LTQ-LNMS librenms]# cat .env
APP_KEY=base64:HideForSafety

DB_HOST=localhost
DB_DATABASE=librenms
DB_USERNAME=librenms
DB_PASSWORD=‘HideForSafety’

#APP_URL=
NODE_ID=HideForSafety
DB_PORT=3306
LIBRENMS_USER=librenms

REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_DB=0
#REDIS_PASSWORD=


PROCESS FPING

[root@SRV-LTQ-LNMS librenms]# ps -aux | grep fping
librenms 5003 0.0 0.0 8036 620 ? S 14:56 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.3.21
root 5005 0.0 0.0 112712 964 pts/0 S+ 14:56 0:00 grep --color=auto fping

[root@SRV-LTQ-LNMS librenms]# ps -aux | grep ping
librenms 5119 0.0 0.0 8036 620 ? S 14:58 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.3.21
root 5121 0.0 0.0 112712 964 pts/0 S+ 14:58 0:00 grep --color=auto ping


PROCESS LIBRENMS

[root@SRV-LTQ-LNMS librenms]# ps -aux | grep fping
librenms 5019 0.0 0.0 8040 728 ? S 14:56 0:00 fping -f - -e -t 500 -r 2
root 5022 0.0 0.0 112712 960 pts/0 S+ 14:57 0:00 grep --color=auto fping

[root@SRV-LTQ-LNMS librenms]# ps -aux | grep librenms
root 1428 0.2 0.1 1877316 10708 ? Ssl 13:48 0:11 /usr/bin/rrdcached -w 1800 -z 1800 -f 3600 -s librenms -U librenms -G librenms -B -R -j /var/tmp -l unix:/run/rrdcached.sock -t 4 -F -b /opt/librenms/rrd/
librenms 13804 0.0 0.0 4356 580 ? Ss 15:02 0:00 /usr/bin/scl enable rh-python36 – /opt/librenms/librenms-service.py -v
librenms 13805 0.0 0.0 113184 1400 ? S 15:02 0:00 /bin/bash /var/tmp/scl91N2lb
librenms 13808 11.6 0.4 3983396 32104 ? Sl 15:02 0:00 python3 /opt/librenms/librenms-service.py -v
librenms 13978 0.0 0.4 390052 36188 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 156
librenms 13980 0.0 0.4 390052 36176 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 167
librenms 13981 0.0 0.4 390052 36192 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 88
librenms 13982 0.0 0.4 390052 36188 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 194
librenms 13983 0.0 0.4 390052 36176 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 171
librenms 13986 0.0 0.4 390052 36172 ? Ss 15:02 0:00 php /opt/librenms/poller.php -h 188
librenms 13987 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13988 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13991 0.0 0.0 8036 624 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.3.15
librenms 13994 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13995 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13996 0.0 0.0 8036 624 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.6.0.1
librenms 13997 0.0 0.0 200936 3180 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13998 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 13999 0.0 0.0 8036 624 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.0.1
librenms 14002 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14003 0.0 0.0 200936 3180 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14006 0.0 0.0 8036 620 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.30.8
librenms 14007 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14008 0.0 0.0 200936 3176 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14009 0.0 0.0 8036 624 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.15.3.6
librenms 14012 0.0 0.0 200936 3180 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14013 0.0 0.0 200936 3180 ? S 15:02 0:00 /usr/bin/rrdtool -
librenms 14014 0.0 0.0 8036 624 ? S 15:02 0:00 /usr/sbin/fping -e -q -c 3 -p 500 -t 500 10.14.30.10
root 14016 0.0 0.0 112716 968 pts/0 S+ 15:02 0:00 grep --color=auto librenms