summaryrefslogtreecommitdiffstats
path: root/conf.d/fping.conf
blob: 3bf804777fe0dbfb5dd2d0f7247bc5d9696092e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This plugin requires a special version of fping.
# Get it from https://github.com/ktsaou/fping
# and build it, like this:
#
# 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
#
# -----------------------------------------------------------------------------
# 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)"

# a space separated list of hosts to fping
# it is best to put hostnames here
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