View previous topic :: View next topic |
Author |
Message |
calubro Tux's lil' helper
Joined: 14 May 2005 Posts: 112 Location: vienna
|
Posted: Fri May 05, 2006 10:45 am Post subject: mdadm |
|
|
aloa,
can anybody tell me in which file it is possible to edit the content of the mdadm's email notification on "events" (errors)?
now i get the standart mail:
Quote: | This is an automatically generated mail message from mdadm
running on xxxx
A FailSpare event had been detected on md device /dev/md2.
It could be related to component device /dev/hdk5.
Faithfully yours, etc. |
thanks, calubro _________________ «calubro is the sound of the future.» |
|
Back to top |
|
|
pivertd Apprentice
Joined: 08 Feb 2004 Posts: 185 Location: Arlon, Belgium
|
Posted: Fri May 05, 2006 7:40 pm Post subject: |
|
|
Hello,
This is hardcoded...
So you need to edit the sources, and recompile your mdadm :
Here is the begining (I use the version 1.12.0)
Code: |
ebuild /usr/portage/sys-fs/mdadm/mdadm-1.12.0.ebuild unpack
cd /var/tmp/portage/mdadm-1.12.0/work/mdadm-1.12.0
|
Then edit the Monitor.c file and change the messages to your needs. You can find the fprintf at the end of the Monitor.c file.
Code: |
serveur mdadm-1.12.0 # ebuild /usr/portage/sys-fs/mdadm/mdadm-1.12.0.ebuild compile
|
You can test the mdadm executable with a test message.
Then to install :
Code: |
serveur mdadm-1.12.0 # ebuild /usr/portage/sys-fs/mdadm/mdadm-1.12.0.ebuild install
serveur mdadm-1.12.0 # ebuild /usr/portage/sys-fs/mdadm/mdadm-1.12.0.ebuild qmerge
|
Hope it helps. |
|
Back to top |
|
|
calubro Tux's lil' helper
Joined: 14 May 2005 Posts: 112 Location: vienna
|
Posted: Sat May 06, 2006 1:13 pm Post subject: |
|
|
hm
thank you, will not recompile it, i think i will create my own email - i recognized that is also possible to start a programm and give it the necessary arguments, i'll give this a try _________________ «calubro is the sound of the future.» |
|
Back to top |
|
|
|