Explorar el Código

Merge pull request #13 from xshyamx/patch-1

Added case for failed services
Jon Schipp hace 9 años
padre
commit
87f9bd770c
Se han modificado 1 ficheros con 4 adiciones y 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