Skip to content

Instantly share code, notes, and snippets.

@paramonovav
Created August 9, 2015 22:09
Show Gist options
  • Save paramonovav/d17628f8470e9ead9d3d to your computer and use it in GitHub Desktop.
Save paramonovav/d17628f8470e9ead9d3d to your computer and use it in GitHub Desktop.
Monitoring RAID arrays
mdadm --monitor --mail=root@localhost --delay=1800 /dev/md2
#should release a mdadm daemon to monitor /dev/md2. The delay parameter means that polling will be done in intervals of 1800 seconds. Finally, critical events and fatal errors should be e-mailed to the system manager. That's RAID monitoring made easy.
#Finally, the --program or --alert parameters specify the program to be run whenever an event is detected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment