ports/153630: Fixed wrong variable in script nagios-check_hdd_health
Marian Jamrich
jamrich.majo at gmail.com
Sun Jan 2 17:50:09 UTC 2011
>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 at 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 at gmail.com> (2011) *"
+ echo "* $PROGNAME $VERSION $1""($AUTHOR) <jamrich.majo at 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:
More information about the freebsd-ports-bugs
mailing list