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.

Email notification on NAS reboot

Featured Replies

Hello. I would like to get an email "Missing key" when someone reset NAS and I need to enter key password to boot.

But looks like there is no settings for this. How can I configure it?

Edited by IGHOR

  • Community Expert

I find your request confusing.   (Is English your first language?)   From what you seem to be saying, you seem to be requiring  a password to start the boot process.  I can only assume that this is a setting somewhere in the Motherboard BIOS.  Why have you set the server up to require this action?  How to you expect unRAID to send an E-mail when it is not even running?  

  • Author
18 minutes ago, Frank1940 said:

I find your request confusing.   (Is English your first language?)   From what you seem to be saying, you seem to be requiring  a password to start the boot process.  I can only assume that this is a setting somewhere in the Motherboard BIOS.  Why have you set the server up to require this action?  How to you expect unRAID to send an E-mail when it is not even running?  

 

Right, English is not my first language. I'm using xfs+encryption with password, and when unRAID boots up it won't start until I enter disk password. It exactly what I want, but I would like to be notified that unRAID was restarted and waiting decryption password. 

When there are encrypted disks in the array, it requires a key to start the array.

This key is entered via the GUI, which shows the message missing key when the system is restarted and an attempt is done to start the array without the key being present.

There is no notification sent when the missing key event occurs, neither is there a setting to enable this.

 

You may be able to send a notification using the user scripts plugin or write a custom script which is triggered on the array "starting" event.

 

  • Author
3 minutes ago, bonienl said:

When there are encrypted disks in the array, it requires a key to start the array.

This key is entered via the GUI, which shows the message missing key when the system is restarted and an attempt is done to start the array without the key being present.

There is no notification sent when the missing key event occurs, neither is there a setting to enable this.

 

You may be able to send a notification using the user scripts plugin or write a custom script which is triggered on the array "starting" event.

 

 

Yes, I can do script that login to SMTP or Telegram and send notification. I had hope that it possible via GUI options. I just need to know when I should login via web to enter disk password, this feature should be implemented to be used by users who can't code scripts.

Thanks for the answer.

  • Community Expert
Just now, wgstarks said:

You can submit this as a feature request if there isn’t one already.

 

+1!!!  You will not be the only one who would like to see such a feature.  

  • Author

Ok I did it 

If there is mistakes in English please let me know and I'll fix it.

 

5 minutes ago, IGHOR said:

If there is mistakes in English please let me know and I'll fix it.

You might want to provide a link in that request thread back to this one just for clarity.

  • Author
1 minute ago, wgstarks said:

You might want to provide a link in that request thread back to this one just for clarity.

ok

  • 11 months later...

Had anyone created a script to email after reboot they could share

  • 2 years later...

+1
 

Best thing would be to get it as part of the regular notification settings, as I'm usually using the pushover interface to get msg about server issues. 

 

Edit: just noted that was May 2019. 😄  Anyway, does anyone know if there was an outcome? So far I couldn't find any settings allowing for notification in case of reboot. 

Edited by Tjareson
2019

  • Community Expert

You can run a script on boot with the User Scripts plugin, and have that script send notification.

 

But this only offers the "at startup of array" event. My array is encrypted, so needs a password to start. So is this event fired already, if array is waiting for password?
(couldn't test that yet myself right now)

So, I could test it today. And it doesn't work. The script is only executed by the time when the array is actually up and running, not if the start sequence of the array is waiting for the password or key file. I couldn't see any other start option which would make sense here. 
The crontab syntax @reboot is also not supported.
 

Any other ideas anyone? 

 

Edited by Tjareson
typo

  • Community Expert

You can add a notification to the go file, e.g.:


 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
/usr/local/emhttp/webGui/scripts/notify -i normal -s "Boot complete"

 

Ok, cool. That worked. 🙂 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.