Skip to content

Commit 5c26d29

Browse files
committed
added fping.conf and resize secondary fping charts
1 parent 2420deb commit 5c26d29

4 files changed

Lines changed: 51 additions & 4 deletions

File tree

conf.d/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
66
dist_config_DATA = \
77
apps_groups.conf \
88
charts.d.conf \
9+
fping.conf \
910
node.d.conf \
1011
python.d.conf \
1112
health_alarm_notify.conf \

conf.d/fping.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,16 +697,17 @@ netdataDashboard.context = {
697697

698698
// ------------------------------------------------------------------------
699699
// RETROSHARE
700+
700701
'retroshare.bandwidth': {
701-
info: 'Shows inbound and outbound traffic.',
702+
info: 'RetroShare inbound and outbound traffic.',
702703
mainheads: [
703704
netdataDashboard.gaugeChart('Received', '12%', 'bandwidth_down_kb'),
704705
netdataDashboard.gaugeChart('Sent', '12%', 'bandwidth_up_kb')
705706
]
706707
},
707708

708709
'retroshare.peers': {
709-
info: 'Shows the number of (connected) friends.',
710+
info: 'Number of (connected) RetroShare friends.',
710711
mainheads: [
711712
function(id) {
712713
return '<div data-netdata="' + id + '"'
@@ -725,6 +726,19 @@ netdataDashboard.context = {
725726
},
726727

727728
'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
729742
}
743+
730744
};

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@
24822482
});
24832483

24842484
NETDATA.requiredJs.push({
2485-
url: NETDATA.serverDefault + 'dashboard_info.js?v20161002-1',
2485+
url: NETDATA.serverDefault + 'dashboard_info.js?v20161016-1',
24862486
async: false,
24872487
isAlreadyLoaded: function() { return false; }
24882488
});

0 commit comments

Comments
 (0)