Random Project

Very helpful – with minor tweak

I know it’s a bit outdated, but thank you for submitting this!

It looks like a recent upgrade made it a requirement to specify a single server to use for the speed test. When using an internal server, this makes sense. But when doing an external speed test, I found that limiting to a single server is problematic, and was creating false alarms in Nagios when that particular server went down.

I was able to tweak the script so the $SEs argument is required only if $Loc is set to ‘i’.
And updated the speedtest commands accordingly:
if [ -z $SEs ]; then
echo “No specific server defined”
command=$($STb/speedtest –simple)
else
command=$($STb/speedtest –server=$SEs –simple)
fi