Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Are email alerts possible?

Featured Replies

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.

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.

  • Author

EDIT: Figured it out

  • 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

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.

 

  • 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

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

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. ;)

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.

 

  • 2 weeks later...

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.