On Friday March 31, paul.clements@xxxxxxxxxxxx wrote: > > I've been looking at the mdadm monitor, and thought it might be useful > if it allowed extra context information (in the form of command line > arguments) to be sent to the event program, so instead of just: > > # mdadm -F /dev/md0 -p "md_event" > > you could do something like: > > # mdadm -F /dev/md0 -p "md_event -i <some_info>" > > And the "-i <some_info>" will be passed on the command line to the event > program. Of course you can usually figure out what the extra context > should be in the event program itself, but it may take more work. I would recommend the use of environment variables for this: md_event_context=<some_info> mdadm -F /dev/md0 -p md_event It is true that this cannot be specified in mdadm.conf, but I don't think you really need it at all in that context. The <some_info> can be explicit in the script rather than in mdadm.conf. Does that work for you? NeilBrown - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html