Code

corrected result codes - for sh; corrected substition for libexec - Tom Bertelson
authorSubhendu Ghosh <sghosh@users.sourceforge.net>
Thu, 6 Jun 2002 04:16:56 +0000 (04:16 +0000)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>
Thu, 6 Jun 2002 04:16:56 +0000 (04:16 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@47 f882894a-f735-0410-b71e-b25c423dba1c

plugins-scripts/subst.in
plugins-scripts/utils.sh.in

index 9140157bb74d7db5ced2195abdbcd8473231aefe..5b70fbed8367c1af00fa0b1c263ee69acc97cb7f 100644 (file)
@@ -29,7 +29,7 @@ function led() {
                return "\"" led3 "/libexec\" " ;
        
        }
-       return led1;
+       return "\"" led1 "\"" ;
 }
 
 BEGIN {
index 1e835e6799e92e8668bd140bc5bcef3dd3926742..51727b72655c9bf11caf60a22ec4e8c7511624d7 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
@@ -19,4 +19,5 @@ print_revision() {
 
 support() {
        $ECHO "@SUPPORT@" | /bin/sed -e 's/\n/ /g'
-}
\ No newline at end of file
+}
+