linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@cse.unsw.edu.au>
To: Danilo Godec <danci@agenda.si>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm --monitor
Date: Fri, 17 May 2002 16:59:31 +1000 (EST)	[thread overview]
Message-ID: <15588.43603.518843.477359@notabene.cse.unsw.edu.au> (raw)
In-Reply-To: message from Danilo Godec on Friday May 17

On Friday May 17, danci@agenda.si wrote:
> On Thu, 16 May 2002, Neil Brown wrote:
> 
> > > [root]# cat /usr/local/sbin/raidalert:
> > >
> > > #!/bin/bash
> > > #
> > > #
> > >
> > > logger -p kern.crit -t RAID
> > >
> >
> >
> > Try
> >    logger -p kern.crit -t RAID $*
> >
> > the program doesn't get anything on stdin.  I just gets 2 or three
> > command-line arguments.
> 
> Oh, I see! Yes, this way it does work... :)
> 
> Maybe you should explain this explicitly or even add the above example to
> the docs.
> 
>   D.
> 

The documentation in mdadm.conf.5 seems suitably explicit:

The
.B program
line gives the name of a program to be run when
.B "mdadm --monitor"
detects potentially interesting events on any of the arrays that it
is monitoring.  This program gets run with two or three arguments, they
being the Event, the md device, and possibly the related component
device.


mdadm.8 however doesn't seem explicit at all :-(
I have added:

When passing event to program, the program is run once for each event
and is given 2 or 3 command-line arguements.  The first is the
name of the event (see below).  The second is the name of the
md device which is affected, and the third is the name of a related
device if relevant, such as a componenet device that has failed.

just after


The result of monitoring the arrays is the generation of events.
These events are passed to a separate program (if specified) and may
be mailed to a given E-mail address.


Thanks,
NeilBrown

  reply	other threads:[~2002-05-17  6:59 UTC|newest]

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

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=15588.43603.518843.477359@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).