Permalink
Browse files

Update check_internet_speed

fix warning /Critical exit code
WARNING = 1 
CRITICAL = 2
  • Loading branch information...
xoroz committed Aug 12, 2016
1 parent 9f70ea6 commit 7d837d32bedd82c0ff25b35141b92f4866686357
Showing with 2 additions and 2 deletions.
  1. +2 −2 check_internet_speed
View
@@ -36,10 +36,10 @@ rm -f $TMP
if [ $D -lt $downc ] || [ $U -lt $upc ]; then
echo "CRITICAL - $MSG"
- exit 1
+ exit 2
elif [ $D -lt $downw ] || [ $U -lt $upw ]; then
echo "WARNING - $MSG"
- exit 2
+ exit 1
else
echo "OK - $MSG"
exit 0

0 comments on commit 7d837d3

Please sign in to comment.