Jump to content

Drive StandBy Monitor - Plugin Support


Recommended Posts

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.

Link to comment
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
Link to comment
  • 1 month later...

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.

Link to comment

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
Link to comment
  • 2 weeks later...
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
Link to comment
  • 1 month later...
  • 2 weeks later...
  • 4 weeks later...

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

Link to comment

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(-)

 

Link to comment

@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.

Link to comment
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!

  • Like 1
Link to comment

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.

Link to comment
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.

  • Like 1
Link to comment
  • 2 weeks later...

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. 😉

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...