IGHOR Posted May 21, 2018 Share Posted May 21, 2018 (edited) 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 May 21, 2018 by IGHOR Quote Link to comment
Frank1940 Posted May 21, 2018 Share Posted May 21, 2018 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? Quote Link to comment
IGHOR Posted May 21, 2018 Author Share Posted May 21, 2018 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. Quote Link to comment
bonienl Posted May 21, 2018 Share Posted May 21, 2018 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. Quote Link to comment
IGHOR Posted May 21, 2018 Author Share Posted May 21, 2018 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. Quote Link to comment
wgstarks Posted May 21, 2018 Share Posted May 21, 2018 You can submit this as a feature request if there isn’t one already. Quote Link to comment
Frank1940 Posted May 21, 2018 Share Posted May 21, 2018 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. Quote Link to comment
IGHOR Posted May 21, 2018 Author Share Posted May 21, 2018 Ok I did it If there is mistakes in English please let me know and I'll fix it. Quote Link to comment
wgstarks Posted May 21, 2018 Share Posted May 21, 2018 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. Quote Link to comment
IGHOR Posted May 21, 2018 Author Share Posted May 21, 2018 1 minute ago, wgstarks said: You might want to provide a link in that request thread back to this one just for clarity. ok Quote Link to comment
Fiservedpi Posted May 16, 2019 Share Posted May 16, 2019 Had anyone created a script to email after reboot they could share Quote Link to comment
Tjareson Posted May 14, 2022 Share Posted May 14, 2022 (edited) +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 May 14, 2022 by Tjareson 2019 Quote Link to comment
trurl Posted May 14, 2022 Share Posted May 14, 2022 You can run a script on boot with the User Scripts plugin, and have that script send notification. Quote Link to comment
Tjareson Posted May 14, 2022 Share Posted May 14, 2022 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) Quote Link to comment
Tjareson Posted May 15, 2022 Share Posted May 15, 2022 (edited) 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 May 15, 2022 by Tjareson typo Quote Link to comment
JorgeB Posted May 16, 2022 Share Posted May 16, 2022 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" Quote Link to comment
Tjareson Posted May 16, 2022 Share Posted May 16, 2022 Ok, cool. That worked. 🙂 1 Quote Link to comment
Recommended Posts
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.