linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@cse.unsw.edu.au>
To: danci@agenda.si
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm --monitor
Date: Thu, 13 Feb 2003 20:10:16 +1100	[thread overview]
Message-ID: <15947.24824.849512.207243@notabene.cse.unsw.edu.au> (raw)
In-Reply-To: message from danci@agenda.si on Wednesday January 29

On Wednesday January 29, danci@agenda.si wrote:
> Hi!
> 
> I'm trying to use mdadm to monitor my Linux RAID stuff, but it fails to
> send an email and/or run the program:
> 
> /etc/mdadm.conf
> 
> DEVICE /dev/hd*
> ARRAY /dev/md0 uuid=9338f6b6:ccadf20b:0fd08433:8285e108
> ARRAY /dev/md1 uuid=91bdf2b7:f6e83922:49437c5e:da5d7930
> ARRAY /dev/md2 uuid=5f7f8c33:a492a6a3:4129ff63:ac152b4b
> MAILADDR raidalert
> PROGRAM /usr/local/sbin/raidalert
> 
> 'raidalert' is an alias for my account. If I do 'ls | mail raidalert', I
> get a mail containin the directory listing...
> 
> /usr/local/sbin/raidalert is very simple (for now) and it works:
> 
> #!/bin/bash
> /usr/bin/logger -p user.crit -t raidalert $@
> 
> So I guess I'm all set. I try 'mdadm --fail /dev/md0 /dev/hdg1' and wait.
> On the console, where 'mdadm --monitor' is running, I get this:

Try adding "--scan" to the "mdadm --monitor" command.
I can see this is not intuitive - I'll try to tidy up for mdadm-1.1

NeilBrown

> 
> Jan 29 15:48:25: FailSpare on /dev/md0 /dev/hdg1
> 
> But why doesn't it send the mail and/or run the program??
> 
> Thanks, D.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2003-02-13  9:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 14:59 mdadm --monitor danci
2003-02-13  9:10 ` Neil Brown [this message]
2003-02-13 14:22   ` danci
  -- strict thread matches above, loose matches on Subject: below --
2004-08-14  6:45 Brad Campbell
2002-05-16  8:40 Danilo Godec
2002-05-16 10:11 ` Neil Brown
2002-05-17  6:43   ` Danilo Godec
2002-05-17  6:59     ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15947.24824.849512.207243@notabene.cse.unsw.edu.au \
    --to=neilb@cse.unsw.edu.au \
    --cc=danci@agenda.si \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).