mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin multibandwidth: unify whitespace
This commit is contained in:
parent
5fb2e02eab
commit
ecc6e30d55
1 changed files with 23 additions and 23 deletions
|
@ -89,25 +89,25 @@ case $1 in
|
|||
echo "$fieldname.draw LINE2"
|
||||
echo "$fieldname.info Bandwidth statistics for $host"
|
||||
done
|
||||
exit 0;;
|
||||
exit 0
|
||||
;;
|
||||
autoconf)
|
||||
if command -v bing >/dev/null 2>&1; then
|
||||
if command -v bing 2>/dev/null; then
|
||||
echo 'yes'
|
||||
exit 0;
|
||||
else
|
||||
echo 'no (bing not installed)'
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
#Calculating the bandwidth
|
||||
# Calculating the bandwidth
|
||||
for host in $hosts; do
|
||||
fieldname="host_$(clean_fieldname "$host")"
|
||||
|
||||
SPEED=$(timeout 6 bing localhost "$host" -n -c 1 -e "$samples" -s "$small_packet_size" -S "$big_packet_size" 2>/dev/null \
|
||||
|grep "estimated link" -A 2 \
|
||||
| grep "estimated link" -A 2 \
|
||||
| grep bps \
|
||||
| awk '{print $2}' \
|
||||
| cut -d "b" -f1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue