summaryrefslogtreecommitdiffstats
path: root/conf.d/fping.conf
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-01 23:29:27 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-01 23:29:27 +0200
commite5565211f43643da7b705c02763e485ad1688f22 (patch)
treef4bcbd7356fcdc60d63d21fca2267ecd2d85988b /conf.d/fping.conf
parentb97095a0fa54425307f921efc25b54f391de36f0 (diff)
changes after https://github.com/schweikert/fping/pull/105 being merged into fping repo
Diffstat (limited to 'conf.d/fping.conf')
-rw-r--r--conf.d/fping.conf51
1 files changed, 22 insertions, 29 deletions
diff --git a/conf.d/fping.conf b/conf.d/fping.conf
index 5b8bfd2714..b2d4f3ac81 100644
--- a/conf.d/fping.conf
+++ b/conf.d/fping.conf
@@ -1,51 +1,44 @@
# no need for shebang - this file is sourced from fping.plugin
-# fping.plugin requires a special version of fping.
-# Get it from https://github.com/ktsaou/fping
-# and build it, like this:
-
-cat >/dev/null <<EOF
-cd /usr/src && \
-git clone https://github.com/ktsaou/fping.git fping-netdata.git && \
-cd fping-netdata.git && \
-./autogen.sh && \
-./configure --prefix=/usr/local && \
-make && \
-cp src/fping /usr/local/bin/ && \
-chown root:root /usr/local/bin/fping && \
-chmod 4755 /usr/local/bin/fping && \
-echo "DONE"
-EOF
+# fping.plugin requires a recent version of fping.
+#
+# You can get it on your system, by running:
+#
+# /usr/libexec/netdata/plugins.d/fping.plugin install
# -----------------------------------------------------------------------------
# configuration options
-# The update frequency of the chart - the default is inherited from netdata
-
-#update_every=2
-
# The fping binary to use. We need one that can output netdata friendly info
# (supporting: -N). If you have multiple versions, put here the full filename
# of the right one
#fping="/usr/local/bin/fping"
+
# a space separated list of hosts to fping
# we suggest to put names here and the IPs of these names in /etc/hosts
hosts=""
+
+# The update frequency of the chart - the default is inherited from netdata
+
+#update_every=2
+
+
# The time in milliseconds (1 sec = 1000 ms) to ping the hosts
# by default 5 pings per host per iteration
+# fping will now allow this to be below 20ms
+
+#ping_every="200"
-ping_every="$((update_every * 1000 / 5))"
-# other fping options
-# -R = send packets with random data
-# -i 10 = send one packet every 10 ms (i.e how fast to switch hosts)
-# non-root users (like netdata) need >= 10
-# this limits the total number of packets fping can send
-# per second to 100, for all hosts, combined
-# -r 0 = never retry packets
+# other fping options - defaults:
+# -R = send packets with random data
+# -b 56 = the number of bytes per packet
+# -i 1 = 1ms when sending packets to others hosts (switching hosts)
+# -r 0 = never retry packets
+# -t 5000 = per packet timeout at 5000ms
-other_opts="-R -i 10 -r 0"
+#fping_opts="-R -b 56 -i 1 -r 0 -t 5000"