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.

(SOLVED) Alert for fan failures?

Featured Replies

Hi,

I tried to search the forum but did not find a topic for this. So, is there a way to set Unraid to raise a notification (alert / warning) if a fan fails (i.e., the speed gets lower than a configurable limit)?

Thanks!

 

>>>

 

Made a script (User Scripts plugin) that gets the fan speeds using 'sensors' command and parses the output. If a fan speed is lower than limit set for that fan, a notification is initiated. Works for my needs.

 

Marking the issue solved.

 

Edited by Ruato

Do you mind sharing said script?  That would be very useful.

  • Author
On 8/16/2019 at 11:17 PM, RockDawg said:

Do you mind sharing said script?  That would be very useful.

Yes, you can find it attached.

 

A bit of a disclaimer. This was my first bash script, so most probably something is written "uncleanly and/or in a stupid way". Anyway, you can use the script but of course, I cannot guarantee that it works for somebody else than me. At least, you need to edit it based on the output of the sensors -command in your server. Please, feel free to ask any questions regarding the script.

 

A side note. I found a bug in the notify -functionality. That is, if one gives too long description with the "-d" -parameter the webgui notifications stop to function. Emails are still sent. It seems that there should be a check for too long description and the excess texts should be cut off. I will generate a bug report for this.

checkFansAndTemps.txt

Edited by Ruato
Fixed a typo (i.e., notify parameter "-m" -> "-d".

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.