@cryptotaxi247 / netdata-1 / commits / 5c26d2944

added fping.conf and resize secondary fping charts

Costa Tsaousis (ktsaou) committed Oct 16, 2016 at 03:51 UTC 5c26d294452bea0d46d454b8b43213cb82ebc38b
4 files changed +51 -4
conf.d/Makefile.am
+1
@@ -6,6 +6,7 @@ MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
6 dist_config_DATA = \
7 apps_groups.conf \
8 charts.d.conf \
9 + fping.conf \
10 node.d.conf \
11 python.d.conf \
12 health_alarm_notify.conf \
conf.d/fping.conf new
+32
@@ -0,0 +1,32 @@
1 +# This plugin requires a special version of fping.
2 +# Get it from https://github.com/ktsaou/fping
3 +# and build it, like this:
4 +#
5 +# cd /usr/src
6 +# git clone https://github.com/ktsaou/fping.git fping-netdata.git
7 +# cd fping-netdata.git
8 +# ./autogen.sh
9 +# ./configure --prefix=/usr/local
10 +# make
11 +# cp src/fping /usr/local/bin/
12 +# chown root:root /usr/local/bin/fping
13 +# chmod 4755 /usr/local/bin/fping
14 +#
15 +# -----------------------------------------------------------------------------
16 +# configuration options
17 +# can be overwritten at /etc/netdata/fping.conf
18 +
19 +# the fping binary to use
20 +# we need one that can output netdata friendly info
21 +fping="$(which fping || command -v fping)"
22 +
23 +# a space separated list of hosts to fping
24 +# it is best to put hostnames here
25 +hosts=""
26 +
27 +# the time in milliseconds (1 sec = 1000 ms)
28 +# to ping the hosts - by default 2 pings per iteration
29 +ping_every="$((update_every * 1000 / 2))"
30 +
31 +# how many retries to make if a host does not respond
32 +retries=1
web/dashboard_info.js
+17 -3
@@ -697,8 +697,9 @@ netdataDashboard.context = {
697
698 // ------------------------------------------------------------------------
699 // RETROSHARE
700 +
701 'retroshare.bandwidth': {
701 - info: 'Shows inbound and outbound traffic.',
702 + info: 'RetroShare inbound and outbound traffic.',
703 mainheads: [
704 netdataDashboard.gaugeChart('Received', '12%', 'bandwidth_down_kb'),
705 netdataDashboard.gaugeChart('Sent', '12%', 'bandwidth_up_kb')
@@ -706,7 +707,7 @@ netdataDashboard.context = {
707 },
708
709 'retroshare.peers': {
709 - info: 'Shows the number of (connected) friends.',
710 + info: 'Number of (connected) RetroShare friends.',
711 mainheads: [
712 function(id) {
713 return '<div data-netdata="' + id + '"'
@@ -725,6 +726,19 @@ netdataDashboard.context = {
726 },
727
728 'retroshare.dht': {
728 - info: 'Shows statistics about RetroShare\'s DHT. These values are estimated!'
729 + info: 'Statistics about RetroShare\'s DHT. These values are estimated!'
730 + },
731 +
732 + // ------------------------------------------------------------------------
733 + // fping
734 +
735 + 'fping.loss': {
736 + colors: NETDATA.colors[1],
737 + height: 0.5
738 + },
739 +
740 + 'fping.packets': {
741 + height: 0.5
742 }
743 +
744 };
web/index.html
+1 -1
@@ -2482,7 +2482,7 @@
2482 });
2483
2484 NETDATA.requiredJs.push({
2485 - url: NETDATA.serverDefault + 'dashboard_info.js?v20161002-1',
2485 + url: NETDATA.serverDefault + 'dashboard_info.js?v20161016-1',
2486 async: false,
2487 isAlreadyLoaded: function() { return false; }
2488 });