#!/bin/sh # # This file is part of raidcheck, to learn more see # /etc/raidcheck.d/readme.txt # # When your raid is working correctly, make a note of it with: # # # cp /proc/mdstat /etc/raidcheck.d/mdstat.reference # diff /etc/raidcheck.d/mdstat.reference /proc/mdstat \ || diff -Nu /etc/raidcheck.d/mdstat.reference /proc/mdstat \ | mail root -s "RAID Status Changed on `hostname`"