mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-06 13:34:21 +02:00
Call the init script with --notemp to skip triggering an alarm on temperature chanegs..
This commit is contained in:
parent
2b47e20115
commit
194cf059d0
@ -46,7 +46,7 @@ check_megaclisas() {
|
|||||||
# Check ever $PERIOD seconds, send email on every status
|
# Check ever $PERIOD seconds, send email on every status
|
||||||
# change and repeat ever $REMIND seconds if the raid is still
|
# change and repeat ever $REMIND seconds if the raid is still
|
||||||
# bad.
|
# bad.
|
||||||
if (megaclisas-status) |grep -q 'NOT OPTIMAL' ; then
|
if (megaclisas-status --notemp) |grep -q 'NOT OPTIMAL' ; then
|
||||||
BADRAID=true
|
BADRAID=true
|
||||||
logger -t megaclisas-statusd "detected non-optimal RAID status"
|
logger -t megaclisas-statusd "detected non-optimal RAID status"
|
||||||
else
|
else
|
||||||
@ -55,7 +55,7 @@ check_megaclisas() {
|
|||||||
STATUSCHANGE=false
|
STATUSCHANGE=false
|
||||||
if [ true = "$BADRAID" ] ; then
|
if [ true = "$BADRAID" ] ; then
|
||||||
# RAID not OK
|
# RAID not OK
|
||||||
(megaclisas-status) > $STATUSFILE.new
|
(megaclisas-status --notemp) > $STATUSFILE.new
|
||||||
if [ ! -f $STATUSFILE ] ; then # RAID just became broken
|
if [ ! -f $STATUSFILE ] ; then # RAID just became broken
|
||||||
STATUSCHANGE=true
|
STATUSCHANGE=true
|
||||||
mv $STATUSFILE.new $STATUSFILE
|
mv $STATUSFILE.new $STATUSFILE
|
||||||
@ -94,7 +94,7 @@ EOF
|
|||||||
if [ -f $STATUSFILE ] ; then
|
if [ -f $STATUSFILE ] ; then
|
||||||
cat $STATUSFILE
|
cat $STATUSFILE
|
||||||
else
|
else
|
||||||
(megaclisas-status)
|
(megaclisas-status --notemp)
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "Report from $0 on $hostname"
|
echo "Report from $0 on $hostname"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user