Open Files Alert package


bubbaQ

Recommended Posts

Here is a little something I have been using for a long time that alerts me when there are open files on the unRAID array that will (likely) prevent shutdown.  I haven't had time to change it to a .plg plugin so I thought I'd throw it out there for whoever wanted it.

 

It has saved my bacon several times when I went to do a shutdown and something I forgot was running had files open on the array.

 

It will also show you the name of the application that has the files open and permit you to kill the process if necessary.

 

It adds a new tab called "Alerts" to the Main display with an icon that changes if there are any open files that may block shutdown.

 

Ultimately I'd like to add an alert on the Array Actions Operation page and require an extra click-through when stopping the array if files blocking dismount are open.

 

Unzip and use installpkg.

 

Enjoy.

OpenFileAlert-0.5.0-unraid-bubba.zip

Image2.jpg.09d5dd31b3053a1e8e0fc7caf43ee32c.jpg

Image3.jpg.f57c3c7f6627706061a1d7f554565733.jpg

Image4.jpg.dca468dc7ceea0be2bf4c73ac32c75c5.jpg

Link to comment

Other than the support for the Alerts tab is not all this functionality already available via Dynamix Active Streams plugin?    If so might a better (and easier) way forward might be to see if a request to add the alerts tab (or some other equivalent) to that plugin would be accepted.

 

The Dynamix Active streams plugin already shows on the Dashboard if there are streams open so gives an indication that shutdown might be an issue, and more details via Tools->Active Streams so it seems everything essential might already be there.

 

Also, since the current GUI is based on Dynamix that might mean there is more chance of the functionality being integrated into the standard build?

Link to comment

I am considering turning this into a plugin to help those that can't figure out why their server isn't shutting down cleanly.  Can I get your permission to do that?

 

Sure... go ahead.

 

This has features that are not in Active Streams.... such as interactively identifying and killing processes, as well as identifying loopback mounts.  It uses at the core:

 

lsof -F facn /mnt/disk* /mnt/user* /dev/loop* /dev/md* /mnt/cache

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.