July 4, 201016 yr What I am looking for is a way to have the Unraid, either with built in interface or 3rd party, email or send some sort of notification of failed drive or errors? Does anyone know if this is possible? I am not looking for a VNC or remote desktop in and launch the web interface. I am looking for a more automated solution if it exists. Thanks.
July 4, 201016 yr Yes it is possible. Have a look at unmenu: http://lime-technology.com/forum/index.php?topic=5568.0
July 4, 201016 yr Yes used UnMENU and check out this particular post. http://lime-technology.com/forum/index.php?topic=5568.msg66479#msg66479 Basically you install once the InfoZip and the compiler. However do not set them to reinstall on reboot. After you install those install [mail and ssmtp] and [unRAID Status Alert sent hourly by e-mail] which of course you have to make sure after you install them set up their settings and make sure you click the Install after reboot. After you get everything setup in the command line basically copy and paste this and it will give you a test message to your email account that you setup. echo -e "Subject: a test\n\nThis is the email body." | ssmtp -d root If you use a gmail account the email settings are basically setup for that already. Just change your account info and leave everything else as is. I think in the Send email every hour I set it to NO because I didn't want a status OK every hour at :47 after the hour.
July 4, 201016 yr Author Does anyone know what variables trigger an email to be sent if 'state is not normal'? Will a failed drive trigger this? Send mail even if status is normal?(YES/NO/NN): If set to YES, an e-mail will be sent hourly stating status is OK, if NO, no OK status will be sent, if set to a numeric string, OK status will be sent only on those hours. 06 will send an OK status at 6:47 AM, 08 16 00 will send an OK status 3 times a day, at 08:47, 16:47, and 00:47. Thanks
July 4, 201016 yr Does anyone know what variables trigger an email to be sent if 'state is not normal'? Will a failed drive trigger this? Failed drive is not "normal", so yes, it will trigger an email.
July 4, 201016 yr Author I realize that, but are you 100% sure it will work? Do you know what values it is looking out to kick out a 'not normal' email? Thanks
July 4, 201016 yr I realize that, but are you 100% sure it will work? Do you know what values it is looking out to kick out a 'not normal' email? Thanks Any drive that is disabled in the output of /root/mdcmd status | strings
July 4, 201016 yr I was running a parity check and every hour for at least 3 or 4 hours right at :47 I received an email telling me it was running it. I mean if that isn't normal I had to see what it does when a drive turns red on the screen.
July 4, 201016 yr I was running a parity check and every hour for at least 3 or 4 hours right at :47 I received an email telling me it was running it. I mean if that isn't normal I had to see what it does when a drive turns red on the screen. A failed disk is easy to simulate. But you'll lose parity protection while it does. Just Stop the array, un-assign a disk, and re-start the array. The un-assigned disk is treated exactly like a failed disk. You'll get alert email. Then, stop the array once more, re-assign the disk you un-assigned, start the array once more. You'll get messages while parity and the other disks re-construct it. The unMENU packages are readable. You can use the config View/Edit feature of unMENU to look in them. Most are commented, basically they are shell scripts. Joe L.
July 15, 201015 yr I have had the email alerts working in the resent past. I noticed the alerts did not come for the last couple of parity checks. When I started trouble shooting I see I have an error response of "send-mail: 501 : domain missing or malformed" in unMENU. I contacted my service provider and they verified my unMENU setup is OK. Any idea of what the error code or script means? Thanks
Archived
This topic is now archived and is closed to further replies.