Explorar o código

Merge pull request #13 from xshyamx/patch-1

Added case for failed services
Jon Schipp %!s(int64=9) %!d(string=hai) anos
pai
achega
87f9bd770c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      check_service.sh

+ 4 - 0
check_service.sh

@@ -259,6 +259,10 @@ case $STATUS_MSG in
         echo "Error in command: $STATUS_MSG"
         exit $CRITICAL
         ;;
+*[fF]ailed*)
+        echo "$STATUS_MSG"
+        exit $CRITICAL
+        ;;
 *[eE]nable*)
         echo "$STATUS_MSG"
         exit $OK