You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, flent (https://flent.org/) wouldn't use fping so I turned on -v and the reason got clearer:
13:57:24 WARNING: Found fping, but it does not appear to support IPv6. Not using.
13:57:24 ERROR: Runner Ping (ms) ICMP failed check: Cannot parse output of the system ping binary (/run/current-system/sw/bin/ping6). Please install fping v3.5+.
Looks like flent parses the output of fping -h
proc = subprocess.Popen([fping, '-h'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = proc.communicate()
# check for presence of timestamp option
if ip_version == 6 and not fping.endswith("6") and \
"--ipv6" not in str(out):
logger.warning("Found fping, but it does not appear to "
"support IPv6. Not using.")
which fails when not running as root:
fping -h
(null): can't create socket (must run as root?) : Permission denied
Would it be possible to change fping so that it can run the help as a plain user ? it's the most common behavior.
The text was updated successfully, but these errors were encountered:
Isn't the creation of the socket unnecessary if all I want is to print the help ?
I try to use sudo cautiously and if printing the help asks for elevated rights, then it can make the user wary of the program security-wise.
For some reason, flent (https://flent.org/) wouldn't use fping so I turned on -v and the reason got clearer:
Looks like flent parses the output of
fping -h
which fails when not running as root:
Would it be possible to change fping so that it can run the help as a plain user ? it's the most common behavior.
The text was updated successfully, but these errors were encountered: