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.

Drive StandBy Monitor - Plugin Support

Featured Replies

  • Author
4 hours ago, bombz said:

Hello,

 

Using the 'edit' button and hiding the disk function works. However if you leave the page or refresh the page, the drive/disk reappears again.
Thought I'd let you know.

Cheers.

I'm not seeing that behavior, do be aware that this does use cookies to store the information. Perhaps you have cookies disabled? Try it in "in-private or incognito" mode with your browser and let me know what happens.

  • Replies 54
  • Views 12.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • EldonMcGuinness
    EldonMcGuinness

    @sonic6 I am uploading a fix for this right now, it looks like the plugin installer does not overwrite old files when the file is made via a <FILE></FILE> tag.   Version 2023.11.

  • EldonMcGuinness
    EldonMcGuinness

    Will do!

  • EldonMcGuinness
    EldonMcGuinness

    Thanks for the heads up, I will put in the next update. I hope to have it out by this weekend.

Posted Images

20 hours ago, EldonMcGuinness said:

I'm not seeing that behavior, do be aware that this does use cookies to store the information. Perhaps you have cookies disabled? Try it in "in-private or incognito" mode with your browser and let me know what happens.

 

Hello, 
Attempted that previously too. Deleted cookies, attempted incog. mode same concern occurs.
Select > Edit > un-check eye ball > disable edit

  • The disk disappears 

Upon changes menu sections, or refreshing the page, the disk reappears.

 

Thanks.

Edited by bombz

  • 1 month later...

For some reason I have found this plugin gone twice after a reboot

  • Author
55 minutes ago, fr500 said:

For some reason I have found this plugin gone twice after a reboot

 

What version of Unraid are you running?

6.12.6, and yup rebooted my server again and it's gone again

You might know this already, while `smartctl --nocheck standby` won't wake a HDD, it will stop a HDD going to sleep when you poll it because it counts as activity.  ie. if you set a hdd to sleep after 60 minutes of activity but you use `smartctl --nocheck standby` to poll the HDD every 30 minutes, then the HDD will never go to sleep.

Thanks for the plugin.

 

Can I suggest if you click on a drive it brings up a popup showing individual data for last 7 days, then total data for last 7 days / 30 days / all-time.  (or something similar).

 

/sda

Percentage Sleep: 30%     97% ...
Spin up counts:    53       3 ...
Spin down counts:  52       4 ...
Date:           2 Jan   1 Jan ...   Last 7 days    Last 30 days   Alltime



/sdb

Percentage Sleep: 40%     92% ...   
Spin up counts:    33       2 ...
Spin down counts:  34       2 ...
Date:           2 Jan   1 Jan ...   Last 7 days    Last 30 days   Alltime

 

The main thing I'm interested in personally is just data on how often the drives are spinning up and down.

Edited by kiwijunglist

  • 2 weeks later...
  • Author
On 1/21/2024 at 2:52 PM, kiwijunglist said:

Thanks for the plugin.

 

Can I suggest if you click on a drive it brings up a popup showing individual data for last 7 days, then total data for last 7 days / 30 days / all-time.  (or something similar).

 

/sda

Percentage Sleep: 30%     97% ...
Spin up counts:    53       3 ...
Spin down counts:  52       4 ...
Date:           2 Jan   1 Jan ...   Last 7 days    Last 30 days   Alltime



/sdb

Percentage Sleep: 40%     92% ...   
Spin up counts:    33       2 ...
Spin down counts:  34       2 ...
Date:           2 Jan   1 Jan ...   Last 7 days    Last 30 days   Alltime

 

The main thing I'm interested in personally is just data on how often the drives are spinning up and down.

 

@kiwijunglist I would love to add this to the plug-in as well as a few other things, perhaps I will have some more time soon. At the risk of sounding like a mad capitalist, donations towards getting features added are always nice and will definitely help to move things along. If you're interested, you can do so on the github repo.

 

On 1/21/2024 at 2:27 AM, kiwijunglist said:

You might know this already, while `smartctl --nocheck standby` won't wake a HDD, it will stop a HDD going to sleep when you poll it because it counts as activity.  ie. if you set a hdd to sleep after 60 minutes of activity but you use `smartctl --nocheck standby` to poll the HDD every 30 minutes, then the HDD will never go to sleep.

 

@kiwijunglistI have moved away from manual polling and instead use the built-in polling that is part of unraid, this should not be an issue any longer.

 

On 1/20/2024 at 11:16 PM, fr500 said:

6.12.6, and yup rebooted my server again and it's gone again

 

@fr500 I'm not sure on this one, I'm running the latest version and am not seeing this, additionally, I have other testers that have confirmed it is not happening to them either. Perhaps this is unique to your setup?

Edited by EldonMcGuinness

  • 1 month later...

For some reason I have found this plugin gone twice after a reboot

  • Author
15 minutes ago, maTTi said:

For some reason I have found this plugin gone twice after a reboot

Is it happening after every reboot or only some reboots?

14 minutes ago, EldonMcGuinness said:

Is it happening after every reboot or only some reboots?

So far I did one reboot, let you know after the next one 

  • 2 weeks later...

Ok after next reboot plugin disappeared again. How can I provide you a logs to debug?

  • 4 weeks later...

On my Unraid 6.12.8 plugin also gone. Moreover I can't install plugin again. 

I have noticed this with this plugin and the VM backup plugin

It seems both download something when installing? my unraid has a VM for my firewall and until after everything starts there is no connection.

 

 

On 4/19/2024 at 2:26 AM, Gobblerpl said:

On my Unraid 6.12.8 plugin also gone. Moreover I can't install plugin again. 

 

Quote

If the plugin is still stuck "Pending", you can open a web terminal and run:

rm /tmp/plugins/pluginPending

 

That does the trick for me

@Gobblerpl @Vitek does your unraid server also act as a firewall for you?

2 hours ago, fr500 said:

@Gobblerpl @Vitek does your unraid server also act as a firewall for you?

No, directly connected to router 

No, directly connected to router 

I think it's fixed now. 

Edit: No it's not

Edited by Gobblerpl
its not

I found serious problem. This plugin cause flash backup every 15 minutes!

 

Quote

May  4 00:30:12 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 00:45:33 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 01:00:33 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 01:15:34 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 01:30:35 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 01:45:35 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 02:00:36 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 02:15:37 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 02:30:38 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update
May  4 02:45:39 Sowia flash_backup: adding task: /usr/local/emhttp/plugins/dynamix.my.servers/scripts/UpdateFlashBackup update

 

Quote

Config change

 config/plugins/DriveStandbyMonitor/monitor.db | Bin 163840 -> 163840 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

commit db26d3a46154c1166cee364e3e6143caee8e9ab5
Author: gitbot <[email protected]>
Date:   Thu May 2 21:46:14 2024 +0200

    Config change

 config/plugins/DriveStandbyMonitor/monitor.db | Bin 163840 -> 163840 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

commit a1780148ce23e4b7470ee6f1a0db8f7bf822c265
Author: gitbot <[email protected]>
Date:   Thu May 2 21:31:12 2024 +0200

    Config change

 config/plugins/DriveStandbyMonitor/monitor.db | Bin 163840 -> 163840 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

commit ab72912a91694156a0f5d8c27ae645a2c009bdc9
Author: gitbot <[email protected]>
Date:   Thu May 2 21:16:13 2024 +0200

    Config change

 config/plugins/DriveStandbyMonitor/monitor.db | Bin 163840 -> 163840 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

commit f7cccf1979041891d4077d911fe5fe727e3fe951
Author: gitbot <[email protected]>
Date:   Thu May 2 21:01:13 2024 +0200

    Config change

 config/plugins/DriveStandbyMonitor/monitor.db | Bin 163840 -> 163840 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

 

@EldonMcGuinness please add this file to the plugin to stop Unraid Connect from backing up monitor.db every 15 minutes:

echo "monitor.db" > /boot/config/plugins/DriveStandbyMonitor/.gitignore

 

Here is an example of how the rclone plugin distributes a similar file:
https://github.com/Waseh/rclone-unraid/blob/6ed5f0ecf8cf1077795ecf7831aa84fd54408096/plugin/rclone.plg#L241 

 

Note: initially this will only take effect on new plugin installs. The next release of the Connect plugin will make sure existing systems obey that .gitignore file too, without anyone having to do anything at the command line.

 

This does mean that Unraid Connect Flash Backup will stop backing up this file. If you think it should be backed up occasionally, you could have the plugin copy it to a new file name perhaps once a day or once every few days.  The main goal here is to avoid the write amplifications that flash backup causes when this file changes every 15 minutes.

  • Author
2 hours ago, ljm42 said:

@EldonMcGuinness please add this file to the plugin to stop Unraid Connect from backing up monitor.db every 15 minutes:

echo "monitor.db" > /boot/config/plugins/DriveStandbyMonitor/.gitignore

 

Here is an example of how the rclone plugin distributes a similar file:
https://github.com/Waseh/rclone-unraid/blob/6ed5f0ecf8cf1077795ecf7831aa84fd54408096/plugin/rclone.plg#L241 

 

Note: initially this will only take effect on new plugin installs. The next release of the Connect plugin will make sure existing systems obey that .gitignore file too, without anyone having to do anything at the command line.

 

This does mean that Unraid Connect Flash Backup will stop backing up this file. If you think it should be backed up occasionally, you could have the plugin copy it to a new file name perhaps once a day or once every few days.  The main goal here is to avoid the write amplifications that flash backup causes when this file changes every 15 minutes.

Will do!

Hey @EldonMcGuinness, got another one for you :)  I am seeing this PHP warning show up in my log:

 

[07-May-2024 17:15:01 America/Phoenix] PHP Warning:  Undefined array key "type" in /usr/local/emhttp/plugins/DriveStandbyMonitor/includes/page.php on line 47

 

Even though it is just a warning, we try to clean these sorts of things up.

 

To see these warnings, go to Tools -> PHP Settings and enable "All Categories".  Then press View Log.  As you interact with the server you will see any PHP errors or warning in the log.

  • Author
On 5/7/2024 at 8:26 PM, ljm42 said:

Hey @EldonMcGuinness, got another one for you :)  I am seeing this PHP warning show up in my log:

 

[07-May-2024 17:15:01 America/Phoenix] PHP Warning:  Undefined array key "type" in /usr/local/emhttp/plugins/DriveStandbyMonitor/includes/page.php on line 47

 

Even though it is just a warning, we try to clean these sorts of things up.

 

To see these warnings, go to Tools -> PHP Settings and enable "All Categories".  Then press View Log.  As you interact with the server you will see any PHP errors or warning in the log.

Thanks for the heads up, I will put in the next update. I hope to have it out by this weekend.

  • 2 weeks later...

Is it possible to expose data to mqtt or anything else to access it via homeassistant? Or maybe have a on/off timeline per disk in unraid?

  • Author

That all just depends on how your service can access the data. It is just an SQLite database file that resides on your thumb drive. If your service in question can read from the file, you're welcome to pull data right from there. 

 

As for a graph, I highly doubt I'll be adding anything of that nature as it just seems overkill. The point of this was just to get a running idea of how often your drives are awake or asleep. I'm not adverse to somebody proposing a pull request to add this feature though. 😉

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.