Skip to content
Permalink
Browse files

Huge improvements to speedtest - PATCH-000004

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 28, 2019
1 parent 94dfeea commit ad040bd39d22604ddffd6b9f02104edb47105672
Showing with 8 additions and 3 deletions.
  1. +8 −3 data/1.5/nagios/plugins/check_speedtest-cli.sh
@@ -42,7 +42,9 @@ version="1.3"
# - Change to perf data output - see https://github.com/jonwitts/nagios-speedtest/issues/2
#
# Version 1.3 - Fork for NEMS Linux. Do not pre-allocate memory (would cause out of memory error on Raspi Zero)

#
# Version 1.4 - Use best server number or passed arg based on settings in NEMS System Settings Tool
#
#####################################################################
# function to output script usage
usage()
@@ -184,7 +186,7 @@ DLc=
ULw=
ULc=
Loc=
SEs=
SEs=`/usr/local/bin/nems-info speedtest`
PerfData=
MaxDL=
MaxUL=
@@ -214,7 +216,10 @@ do
Loc=$OPTARG
;;
s)
SEs=$OPTARG
sestype=`/usr/local/bin/nems-info speedtest which`
if [[ $sestype == 'switch' ]]; then
SEs=$OPTARG
fi
;;
p)
PerfData="TRUE"

0 comments on commit ad040bd

Please sign in to comment.
You can’t perform that action at this time.