Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mdadm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
calubro
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 112
Location: vienna

PostPosted: Fri May 05, 2006 10:45 am    Post subject: mdadm Reply with quote

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
View user's profile Send private message
pivertd
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 185
Location: Arlon, Belgium

PostPosted: Fri May 05, 2006 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
calubro
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 112
Location: vienna

PostPosted: Sat May 06, 2006 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum