Ver código fonte

Expect "NOT running" from status command.

Apparently the output from the service script has changed from "not running" to "NOT running" in Ubuntu Trusty, ref https://github.com/jonschipp/nagios-plugins/issues/35
Tobias Brox 8 anos atrás
pai
commit
c976ac7546
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      check_service.sh

+ 8 - 0
check_service.sh

@@ -263,6 +263,14 @@ case $STATUS_MSG in
         echo "$STATUS_MSG"
         echo "$STATUS_MSG"
         exit $CRITICAL
         exit $CRITICAL
         ;;
         ;;
+*NOT*running*)
+        echo "$STATUS_MSG"
+        exit $CRITICAL
+        ;;
+*NOT*RUNNING*)
+        echo "$STATUS_MSG"
+        exit $CRITICAL
+        ;;
 *inactive*)
 *inactive*)
         echo "$STATUS_MSG"
         echo "$STATUS_MSG"
         exit $CRITICAL
         exit $CRITICAL