Announcement

Collapse
No announcement yet.

mdadm email alert question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mdadm email alert question

    Hi There,

    I have two software RAIDs working perfectly fine, these are:
    Code:
    cat /proc/mdstat
    Personalities : [raid1]
    md1 : active raid1 sdc7[1] sdb7[0]
       238340224 blocks [2/2] [UU]
    
    md0 : active raid1 sdb6[0] sdc6[1]
       244139648 blocks [2/2] [UU]
    
    unused devices: <none>
    root@reg-desktop:/mnt/media/Albums#
    They seem to work fine but i can't get the email alert going that I would like to get when something goes wrong and on a regular basis (once a week would be fine!). I've done some googling but I haven't gotten further than adding my email to mdadm.conf like
    Code:
    MAILADDR [email]my.email@gmail.com[/email]
    Then when I try to make a test I get following:
    Code:
    mdadm --monitor --scan --test
    mdadm: excess address on MAIL line: [email]ron.eggler@gmail.com[/email] - ignored
    sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
    sendmail: fatal: open /etc/postfix/main.cf: No such file or directory
    How do I get things going?

    Thanks,
    Ron
    roN

    http://www.inetgate.biz

    #2
    Re: mdadm email alert question

    Do you have postfix installed and configured?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: mdadm email alert question

      Originally posted by Snowhog
      Do you have postfix installed and configured?
      installed yes, configured no - trying to figure out how i can do this the easiest way - any suggestions?
      roN

      http://www.inetgate.biz

      Comment


        #4
        Re: mdadm email alert question

        Postfix Documentatin
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: mdadm email alert question

          Originally posted by Snowhog
          Well, I've tried to follow this how to: https://help.ubuntu.com/community/Postfix but
          Code:
          dpkg-reconfigure postfix
          gives me differenrt options than mentioned in this tutorial... diving into above docu now...
          roN

          http://www.inetgate.biz

          Comment

          Working...
          X