-
16th May 2006, 02:30 PM
#1
mdadm email alerts - probably a really dumb question
hi
i've got mdadm 2.3.1 monitoring my RAID 1 array
[root@localhost ~]# mdadm -Q --detail /dev/md1
/dev/md1:
Version : 00.90.03
Creation Time : Mon May 15 23:41:35 2006
Raid Level : raid1
Array Size : 195101312 (186.06 GiB 199.78 GB)
Device Size : 195101312 (186.06 GiB 199.78 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue May 16 14:21:35 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 06947d7f:be3d43d3:c7da6383:ed9a96c8
Events : 0.7666
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
no problems as far as i can see
i've got a single LVG with 3 LVs sitting on top of the RAID
i can't get email alerts generated !
i've got myemail@myISP.com in mdadm.conf - there is no internal email server on the network and this RAID sits in a PDC/fileserver which will run headless in due course, so alerts need to go out via my ISP
by my reckoning:
mdadm -monitor /dev/md1 --test
should generate a test email - nothing doing
terminal just hangs with
mdadm: Monitor using email address "lmyemail@myISP.com" from config file
and i lose the # prompt
email works fine in evolution - send and receive no probs
am i doing something REALLY dim ????
help
-
17th May 2006, 03:02 PM
#2
fixed it - added my email to /etc/aliases !
-
17th May 2006, 03:18 PM
#3
Just to test I ran:
mdadm --monitor -1 -m myname@myisp.com /dev/md0 -t
Which sends a test message to my mailbox.
Without the -1 (which means run once) mdadm --monitor will keep running until it is killed (or sent an interupt signal), but it still sends an email periodically.
I suggest you put the something like this in your crontab:
0,20,40 * * * * mdadm --monitor -1 -m yourname@yourisp.com -scan
To have a scan performed every 20 minutes.
-
17th May 2006, 03:38 PM
#4
Originally Posted by
pjfg
Just to test I ran:
mdadm --monitor -1 -m
myname@myisp.com /dev/md0 -t
Which sends a test message to my mailbox.
Without the -1 (which means run once) mdadm --monitor will keep running until it is killed (or sent an interupt signal), but it still sends an email periodically.
I suggest you put the something like this in your crontab:
0,20,40 * * * * mdadm --monitor -1 -m
yourname@yourisp.com -scan
To have a scan performed every 20 minutes.
yes - when i added --daemonise to my command it spawns a child process and i get the # back
all good learning
i'm working with my ISP to try to get around the 'spam killing' they have set up that prevents them directing mail from localhost.localdomain
thanks
Similar Threads
-
By xtian in forum Installation, Upgrades and Live Media
Replies: 4
Last Post: 9th October 2009, 10:37 PM
-
By 33r0 in forum Security and Privacy
Replies: 2
Last Post: 8th July 2007, 06:29 PM
-
By CrackedLCD in forum Using Fedora
Replies: 2
Last Post: 9th June 2007, 10:33 PM
-
By LPCG in forum Gamers' Lounge
Replies: 4
Last Post: 5th May 2007, 12:29 AM
-
By billquinn in forum Using Fedora
Replies: 2
Last Post: 29th August 2005, 03:20 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]