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.

Notifications when array stops or starts?

Featured Replies

I've been having an issue with one of my unraid servers that I suspect is rebooting, but I have been unable to catch it in the act. I've tried to find a way to setup notifications to be sent when the array starts and/or stops, or even just when the server first boots, but there doesn't seem to be any support for that using the built in notification system. I've looked for custom user scripts that might enable a feature like this, but haven't found anything yet.

 

Does anyone know of a way to do this? Or maybe a way to at least log these events on the system so I can try to find out what is happening and debug.

 

Thanks!

Solved by itimpi

  • Community Expert
  • Solution

The User Scripts allows you to run scripts at array stop/start/first start so you can easily make a custom script.

 

if you want to send a notification you can use the /usr/local/emhttp/webGui/scripts/notify command.   If you want to simply write to the syslog then you can call the ‘logger’ command.  Run either of these from a command line with —help to get the options supported.

  • Author

That works perfectly!

The notify script itself didn't return anything with the --help or -h commands on my system, but I just opened /usr/local/emhttp/webGui/scripts/notify in nano and the flags and commands were in there. 

Super easy - thanks for the help!!!

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.