1 # no need for shebang - this file is sourced from fping.plugin
3 # fping.plugin requires a special version of fping.
4 # Get it from https://github.com/ktsaou/fping
5 # and build it, like this:
9 git clone https://github.com/ktsaou/fping.git fping-netdata.git && \
10 cd fping-netdata.git && \
12 ./configure --prefix=/usr/local && \
14 cp src/fping /usr/local/bin/ && \
15 chown root:root /usr/local/bin/fping && \
16 chmod 4755 /usr/local/bin/fping && \
20 # -----------------------------------------------------------------------------
21 # configuration options
23 # The update frequency of the chart - the default is inherited from netdata
27 # The fping binary to use. We need one that can output netdata friendly info
28 # (supporting: -N). If you have multiple versions, put here the full filename
31 #fping="/usr/local/bin/fping"
33 # a space separated list of hosts to fping
34 # we suggest to put names here and the IPs of these names in /etc/hosts
38 # The time in milliseconds (1 sec = 1000 ms) to ping the hosts
39 # by default 5 pings per host per iteration
41 ping_every="$((update_every * 1000 / 5))"
44 # -R = send packets with random data
45 # -i 10 = send one packet every 10 ms (i.e how fast to switch hosts)
46 # non-root users (like netdata) need >= 10
47 # this limits the total number of packets fping can send
48 # per second to 100, for all hosts, combined
49 # -r 0 = never retry packets
51 other_opts="-R -i 10 -r 0"