Code

check_host: Allocate a large-enough buffer for the host table.
[nagiosplug.git] / plugins-scripts / utils.sh.in
index 1e835e6799e92e8668bd140bc5bcef3dd3926742..b30b908395921dea466916293fb7f7e251e94521 100644 (file)
@@ -1,10 +1,10 @@
 #! /bin/sh
 
-STATE_DEPENDENT=-2
-STATE_UNKNOWN=-1
 STATE_OK=0
 STATE_WARNING=1
 STATE_CRITICAL=2
+STATE_UNKNOWN=3
+STATE_DEPENDENT=4
 
 if test -x /usr/bin/printf; then
        ECHO=/usr/bin/printf
@@ -13,10 +13,11 @@ else
 fi
 
 print_revision() {
-       echo "$1 (@PACKAGE@ @VERSION@) $2"
-       $ECHO "@WARRANTY@" | /bin/sed -e 's/\n/ /g'
+       echo "$1 v$2 (@PACKAGE@ @VERSION@)"
+       $ECHO "@WARRANTY@" | sed -e 's/\n/ /g'
 }
 
 support() {
-       $ECHO "@SUPPORT@" | /bin/sed -e 's/\n/ /g'
-}
\ No newline at end of file
+       $ECHO "@SUPPORT@" | sed -e 's/\n/ /g'
+}
+