LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-24-2007, 10:36 AM   #1
rootking
Member
 
Registered: Sep 2002
Distribution: FreeBSD
Posts: 70

Rep: Reputation: 15
Question RAID mdadm - Sending E-Mails on RAID Failure?


I've seen how you must add the MAILADDR line to your /etc/mdadm.conf file to tell mdadm that you want to send an email to this address when your RAID is degraded. The problem is that I need to know the easiest way to send out that e-mail w/o configuring a mail server on this machine.

Is there a quick way of sending an e-mail when mdadm detects a degraded array?

thanks for any help
 
Old 12-25-2007, 03:59 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Then you'll need to write a script. Perhaps something that:

1. Checks the container and when it sees a failed drive, touch a file.
2. Put that script into cron and have it run every 10 mins or so
3. Have a different machine with sendmail or whatever MTA you have and ssh into the machine and check if the file exists
4. If it does, then fire the mail.

-twantrd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
replace failure disk and rebuild RAID with mdadm ufmale Linux - Software 0 11-15-2007 02:24 PM
Major problem with software raid (mdadm) and disk failure norwolf Linux - Server 8 07-27-2007 06:14 AM
RAID through mdadm rosey Linux - Server 5 04-08-2007 11:57 AM
RAID - mdadm.conf keith ralph Linux - General 4 05-05-2006 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration