|
Lines 16-22
Link Here
|
| 16 |
PROGNAME=`basename $0` |
16 |
PROGNAME=`basename $0` |
| 17 |
|
17 |
|
| 18 |
# Version |
18 |
# Version |
| 19 |
VERSION="Version 1.0.1" |
19 |
VERSION="Version 1.0" |
| 20 |
|
20 |
|
| 21 |
# Author |
21 |
# Author |
| 22 |
AUTHOR="Marian Jamrich" |
22 |
AUTHOR="Marian Jamrich" |
|
Lines 37-43
Link Here
|
| 37 |
print_help() { |
37 |
print_help() { |
| 38 |
clear; |
38 |
clear; |
| 39 |
echo "*********************************************************************************" |
39 |
echo "*********************************************************************************" |
| 40 |
echo "* $PROGNAME $VERSION $1""($AUTHOR) <jamrich.majo@gmail.com> (2011) *" |
40 |
echo "* $PROGNAME $VERSION $1""($AUTHOR) <jamrich.majo@gmail.com> (2010) *" |
| 41 |
echo "*********************************************************************************" |
41 |
echo "*********************************************************************************" |
| 42 |
echo "This is Nagios plugin to check HDD health from S.M.A.R.T. by Smartmontools." |
42 |
echo "This is Nagios plugin to check HDD health from S.M.A.R.T. by Smartmontools." |
| 43 |
echo ' |
43 |
echo ' |
|
Lines 111-117
Link Here
|
| 111 |
if [ ! -e $device ]; then |
111 |
if [ ! -e $device ]; then |
| 112 |
echo |
112 |
echo |
| 113 |
echo "Unknown device \"$device\"!" |
113 |
echo "Unknown device \"$device\"!" |
| 114 |
exit $ST_UN |
114 |
exit $ST_UK |
| 115 |
fi |
115 |
fi |
| 116 |
|
116 |
|
| 117 |
if [ -z $smartctl ]; then |
117 |
if [ -z $smartctl ]; then |