dansushi Posted November 28, 2023 Share Posted November 28, 2023 Is there a way to get notifications as UnRaid shuts down and also when it finishes its boot-up process? I'm using Pushover specifically though I imagine it's the same for all other notification agents. Quote Link to comment
itimpi Posted November 28, 2023 Share Posted November 28, 2023 Nothing is built in, but you could add an entry to config/go file to log something on startup, and the config/stop file (you may have to create this file) to log something on shutdown. However the shutdown one may never get out in time before the shutdown completes. Quote Link to comment
dansushi Posted November 28, 2023 Author Share Posted November 28, 2023 Sorry for my ignorance, but what kind of text would I have to put in the config/go file to have it create a notification? Is there documentation for this somewhere? Thanks, Quote Link to comment
itimpi Posted November 28, 2023 Share Posted November 28, 2023 1 hour ago, dansushi said: Sorry for my ignorance, but what kind of text would I have to put in the config/go file to have it create a notification? Is there documentation for this somewhere? Thanks, There is the command line tool /usr/local/emhttp/webGui/scripts/notify. Run it with no parameters to see the options it takes. Quote Link to comment
dansushi Posted December 1, 2023 Author Share Posted December 1, 2023 On 11/28/2023 at 6:27 PM, itimpi said: There is the command line tool /usr/local/emhttp/webGui/scripts/notify. Run it with no parameters to see the options it takes. You're the best! It worked like a charm. For any others who want to do the same, here's what I've done below. I've added the following line to the /boot/config/go file: /usr/local/emhttp/webGui/scripts/notify -i "alert" -s "Bootup" -d "Unraid is fully booted up" and created a file at /boot/config/stop with the following code: #!/bin/bash /usr/local/emhttp/webGui/scripts/notify -i "alert" -s "Shutdown" -d "Unraid is shutting down" Despite itimpi's concern that the shutdown notification might not get sent, it in fact does work! 2 Quote Link to comment
sittingmongoose Posted January 4 Share Posted January 4 In case anyone else needs this, I was a little confused by the directions. To get it to work, the shutdown part should not be in the go file. You should create a new file in the /boot/config folder. So /boot/config/alert.bin with the code above. Doing this worked for me, it alerts me when a reboot or shutdown is initialized. 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.