]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/fping.conf
fail2bain plugin: "Currently In Jail" chart renamed
[netdata.git] / conf.d / fping.conf
index 3bf804777fe0dbfb5dd2d0f7247bc5d9696092e7..82ee2332a74995e25d9eb22119c3a5e11f88b9d6 100644 (file)
@@ -1,32 +1,44 @@
-# This plugin requires a special version of fping.
-# Get it from https://github.com/ktsaou/fping
-# and build it, like this:
+# no need for shebang - this file is sourced from fping.plugin
+
+# fping.plugin requires a recent version of fping.
 #
-# 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
+# You can get it on your system, by running:
 #
+# /usr/libexec/netdata/plugins.d/fping.plugin install
+
 # -----------------------------------------------------------------------------
 # configuration options
-# can be overwritten at /etc/netdata/fping.conf
 
-# the fping binary to use
-# we need one that can output netdata friendly info
-fping="$(which fping || command -v fping)"
+# 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
-# it is best to put hostnames here
+# we suggest to put names here and the IPs of these names in /etc/hosts
+
 hosts=""
 
-# the time in milliseconds (1 sec = 1000 ms)
-# to ping the hosts - by default 2 pings per iteration
-ping_every="$((update_every * 1000 / 2))"
 
-# how many retries to make if a host does not respond
-retries=1
+# 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"
+
+
+# other fping options - defaults:
+# -R      = send packets with random data
+# -b 56   = the number of bytes per packet
+# -i 1    = 1 ms when sending packets to others hosts (switching hosts)
+# -r 0    = never retry packets
+# -t 5000 = per packet timeout at 5000 ms
+
+#fping_opts="-R -b 56 -i 1 -r 0 -t 5000"