cronで定期的に動かしてみる。
# !/bin/bash
#
export LANG=C
ERR=/usr/sbin/metastat | grep State: | grep -v Okay | wc -l
if $ERR -ge 1
then
/usr/sbin/metastat | /bin/mail -s "RAID ERROR" hogehoge@example.com
fi
Go to list of users who liked
More than 5 years have passed since last update.
cronで定期的に動かしてみる。
# !/bin/bash
#
export LANG=C
ERR=/usr/sbin/metastat | grep State: | grep -v Okay | wc -l
if $ERR -ge 1
then
/usr/sbin/metastat | /bin/mail -s "RAID ERROR" hogehoge@example.com
fi
Register as a new user and use Qiita more conveniently
Go to list of users who liked