]> arthur.barton.de Git - netdata.git/blob - conf.d/fping.conf
Merge pull request #1192 from ktsaou/master
[netdata.git] / conf.d / fping.conf
1 # no need for shebang - this file is sourced from fping.plugin
2
3 # fping.plugin requires a special version of fping.
4 # Get it from https://github.com/ktsaou/fping
5 # and build it, like this:
6
7 cat >/dev/null <<EOF
8 cd /usr/src && \
9 git clone https://github.com/ktsaou/fping.git fping-netdata.git && \
10 cd fping-netdata.git && \
11 ./autogen.sh && \
12 ./configure --prefix=/usr/local && \
13 make && \
14 cp src/fping /usr/local/bin/ && \
15 chown root:root /usr/local/bin/fping && \
16 chmod 4755 /usr/local/bin/fping && \
17 echo "DONE"
18 EOF
19
20 # -----------------------------------------------------------------------------
21 # configuration options
22
23 # The update frequency of the chart - the default is inherited from netdata
24
25 #update_every=2
26
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
29 # of the right one
30
31 #fping="/usr/local/bin/fping"
32
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
35
36 hosts=""
37
38 # The time in milliseconds (1 sec = 1000 ms) to ping the hosts
39 # by default 5 pings per host per iteration
40
41 ping_every="$((update_every * 1000 / 5))"
42
43 # other fping options
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
50
51 other_opts="-R -i 10 -r 0"