Przeglądaj źródła

Merge pull request #13 from xshyamx/patch-1

Added case for failed services
Jon Schipp 9 lat temu
rodzic
commit
87f9bd770c
1 zmienionych plików z 4 dodań i 0 usunięć
  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