Kaynağa Gözat

Merge pull request #13 from xshyamx/patch-1

Added case for failed services
Jon Schipp 9 yıl önce
ebeveyn
işleme
87f9bd770c
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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