0

我在 debian 10 (buster) 上运行 netdata。当我尝试在启用 fping_gateway 插件的情况下启动 netdata 时,它不会加载并退出并出现错误。以下是默认调试级别 (0x0000000000000800) 的 netdata 调试日志:

直接启动 fping_gateway.plugin 脚本时,终端中的 fping 输出似乎也是正确的,从终端运行时我也看不到输出中的任何错误日志。

谁能帮我吗?是什么导致 fping_gateway.plugin 失败以及如何解决?谢谢!

操作系统/环境:

Debian 10 (buster)
Netdata Version: v1.30.0
fping version: 4.2 (tried with latest version-5.0 as well)

uname -a 的输出;grep -Hv "^#" /etc/*release # Linux

/etc/os-release:PRETTY_NAME="Debian GNU/Linux 10 (buster)"
/etc/os-release:NAME="Debian GNU/Linux"
/etc/os-release:VERSION_ID="10"
/etc/os-release:VERSION="10 (buster)"
/etc/os-release:VERSION_CODENAME=buster
/etc/os-release:ID=debian
/etc/os-release:HOME_URL="https://www.debian.org/"
/etc/os-release:SUPPORT_URL="https://www.debian.org/support"
/etc/os-release:BUG_REPORT_URL="https://bugs.debian.org/"

netdata -W buildinfo 的输出。

Features:
    dbengine:                NO
    Native HTTPS:            YES
    Netdata Cloud:           NO 
    TLS Host Verification:   YES
Libraries:
    jemalloc:                YES
    JSON-C:                  NO
    libcap:                  NO
    libcrypto:               YES
    libm:                    YES
    LWS:                     NO 
    mosquitto:               NO
    tcalloc:                 NO
    zlib:                    YES
Plugins:
    apps:                    YES
    cgroup Network Tracking: YES
    CUPS:                    NO
    EBPF:                    NO
    IPMI:                    NO
    NFACCT:                  YES
    perf:                    YES
    slabinfo:                YES
    Xen:                     NO
    Xen VBD Error Tracking:  NO
Exporters:
    AWS Kinesis:             NO
    GCP PubSub:              NO
    MongoDB:                 NO
    Prometheus Remote Write: NO
Installation method
from github, using make

netdata的调试日志:

2021-05-13`` 00:13:10: netdata INFO  : PLUGINSD[fping_gateway] : (0247@collectors:pluginsd_worker): connected to '/opt/score/libexec/netdata/plugins.d/fping_gateway.plugin' running on pid 23040

2021-05-13 00:13:10: netdata ERROR : PLUGINSD[perf] : (0295@libnetdata:custom_pclose  ): child pid 23037 exited with code 1.
2021-05-13 00:13:10: netdata ERROR : PLUGINSD[perf] : (0204@collectors:pluginsd_worker): '/opt/score/libexec/netdata/plugins.d/perf.plugin' (pid 23037) exited with error code 1 and haven't collected any data. Disabling it.
2021-05-13 00:13:10: netdata INFO  : PLUGINSD[perf] : (0107@libnetdata:thread_cleanup ): thread with task id 23012 finished
2021-05-13 00:13:10: ioping.plugin: INFO: Loading config file '/opt/score/lib/netdata/conf.d/ioping.conf'...
2021-05-13 00:13:10: ioping.plugin: INFO: Loading config file '/opt/score/etc/netdata/ioping.conf'...
2021-05-13 00:13:10: ioping.plugin: INFO: starting ioping: /opt/score/bin/ioping -N -i 15s -s 4k -T 5000000 /var/tmp
ioping: round interval to 15 seconds
2021-05-13 00:13:10: fping_gateway.plugin: INFO: starting fping: /opt/score/sbin/fping -N -l -Q 150 -p 30000 -R -b 56 -i 1 -r 0 -t 5000 --iface wlan0 192.168.10.1
2021-05-13 00:13:10: netdata INFO  : PLUGINSD[fping_gateway] : (0722@collectors:pluginsd_proces): PARSER ended
2021-05-13 00:13:10: netdata ERROR : PLUGINSD[fping_gateway] : (0249@collectors:pluginsd_worker): '/opt/score/libexec/netdata/plugins.d/fping_gateway.plugin' (pid 23040) disconnected after 0 successful data collections (ENDs). (errno 9, Bad file descriptor)
2021-05-13 00:13:10: netdata ERROR : PLUGINSD[fping_gateway] : (0299@libnetdata:custom_pclose  ): child pid 23040 killed by signal 15.
2021-05-13 00:13:10: netdata INFO  : PLUGINSD[fping_gateway] : (0196@collectors:pluginsd_worker): '/opt/score/libexec/netdata/plugins.d/fping_gateway.plugin' (pid 23040) was killed with SIGTERM. Disabling it.
2021-05-13 00:13:10: netdata INFO  : PLUGINSD[fping_gateway] : (0107@libnetdata:thread_cleanup ): thread with task id 23013 finished
4

0 回答 0