User Tools

Site Tools


computing:storage:lsi:megaraid_monitor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:lsi:megaraid_monitor [2013/12/21 21:19]
gcooper
computing:storage:lsi:megaraid_monitor [2018/11/01 10:55] (current)
gcooper
Line 43: Line 43:
 See also **[[computing:storage:lsi:megaraid|LSI MegaRAID]]** See also **[[computing:storage:lsi:megaraid|LSI MegaRAID]]**
  
-==== CRON ====+==== cron ====
  
-I added this to my ''/etc/crontab'' to run the script every 10 minutes:+Added to ''/etc/crontab'' to run the script every 10 minutes:
  
 <file> <file>
Line 65: Line 65:
 #!/bin/bash #!/bin/bash
 # #
-# raid-status-megacli.sh - Gene Cooper <gcooper@sonoracomm.com>+# raid-status-megacli.sh - Gene Cooper <gcooper at sonoracomm.com>
 # #
 # For newer LSI RAID controllers # For newer LSI RAID controllers
Line 90: Line 90:
 nice -n 19 ${COMMAND} > $STATUS nice -n 19 ${COMMAND} > $STATUS
  
-check for error+Comment this section and run manually to test mail sending 
 +# Check for error
 if [ -z "$(grep "^State.*: Degraded$" $STATUS | awk '{print $NF}')" ]; then if [ -z "$(grep "^State.*: Degraded$" $STATUS | awk '{print $NF}')" ]; then
   exit 0   exit 0
 fi fi
  
-send mail+Send mail
 /usr/sbin/sendmail -t -i <<EOF /usr/sbin/sendmail -t -i <<EOF
 Date: $(date) Date: $(date)
computing/storage/lsi/megaraid_monitor.1387685952.txt.gz · Last modified: 2013/12/21 21:19 by gcooper