Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2011 17:42:44 GMT
From:      Marian Jamrich <jamrich.majo@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153630: Fixed wrong variable in script nagios-check_hdd_health
Message-ID:  <201101021742.p02Hgipk049849@red.freebsd.org>
Resent-Message-ID: <201101021750.p02Ho9D7091714@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153630
>Category:       ports
>Synopsis:       Fixed wrong variable in script nagios-check_hdd_health
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 02 17:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Marian Jamrich
>Release:        8.2-PRERELEASE
>Organization:
>Environment:
FreeBSD server.bwe.sk 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Sun Dec 12 15:53:02 CET 2010     root@server.bwe.sk:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
- Fixed wrong variable $ST_UK to $ST_UK
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- check_hdd_health	2011-01-02 18:34:03.843906176 +0100
+++ /usr/local/libexec/nagios/check_hdd_health	2010-12-10 21:03:15.614043320 +0100
@@ -16,7 +16,7 @@
 PROGNAME=`basename $0`
             
 # Version
-VERSION="Version 1.0.1"
+VERSION="Version 1.0"
         
 # Author
 AUTHOR="Marian Jamrich"
@@ -37,7 +37,7 @@
 print_help() {
     clear;
     echo "*********************************************************************************"
-    echo "* $PROGNAME $VERSION $1""($AUTHOR) <jamrich.majo@gmail.com> (2011) *" 
+    echo "* $PROGNAME $VERSION $1""($AUTHOR) <jamrich.majo@gmail.com> (2010) *" 
     echo "*********************************************************************************"
     echo "This is Nagios plugin to check HDD health from S.M.A.R.T. by Smartmontools."
     echo '
@@ -111,7 +111,7 @@
 if [ ! -e $device ]; then
         echo
         echo "Unknown device \"$device\"!"
-        exit $ST_UN
+        exit $ST_UK
 fi
 
 if [ -z $smartctl ]; then


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101021742.p02Hgipk049849>