From 5c26d294452bea0d46d454b8b43213cb82ebc38b Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sun, 16 Oct 2016 03:51:35 +0300 Subject: [PATCH] added fping.conf and resize secondary fping charts --- conf.d/Makefile.am | 1 + conf.d/fping.conf | 32 ++++++++++++++++++++++++++++++++ web/dashboard_info.js | 20 +++++++++++++++++--- web/index.html | 2 +- 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 conf.d/fping.conf diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am index 4b24ac05..c2ef258c 100644 --- a/conf.d/Makefile.am +++ b/conf.d/Makefile.am @@ -6,6 +6,7 @@ MAINTAINERCLEANFILES= $(srcdir)/Makefile.in dist_config_DATA = \ apps_groups.conf \ charts.d.conf \ + fping.conf \ node.d.conf \ python.d.conf \ health_alarm_notify.conf \ diff --git a/conf.d/fping.conf b/conf.d/fping.conf new file mode 100644 index 00000000..3bf80477 --- /dev/null +++ b/conf.d/fping.conf @@ -0,0 +1,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 diff --git a/web/dashboard_info.js b/web/dashboard_info.js index 68df1eb9..49459322 100644 --- a/web/dashboard_info.js +++ b/web/dashboard_info.js @@ -697,8 +697,9 @@ netdataDashboard.context = { // ------------------------------------------------------------------------ // RETROSHARE + 'retroshare.bandwidth': { - info: 'Shows inbound and outbound traffic.', + info: 'RetroShare inbound and outbound traffic.', mainheads: [ netdataDashboard.gaugeChart('Received', '12%', 'bandwidth_down_kb'), netdataDashboard.gaugeChart('Sent', '12%', 'bandwidth_up_kb') @@ -706,7 +707,7 @@ netdataDashboard.context = { }, 'retroshare.peers': { - info: 'Shows the number of (connected) friends.', + info: 'Number of (connected) RetroShare friends.', mainheads: [ function(id) { return '