Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Shell script that checks to ensure NFS mounted directory is writable and lists current open files in that directory. Mimics the behavior of lsof -N but does not use lsof as listing the files in /proc/*/pd/* returned faster. Would work for any path really, but was built for NFS mounts in mind.
Current Version
1.0
Last Release Date
2016-07-01
Owner
Kirk Hammond
License
BSD
Compatible With
Checks NFS or other path for being writable and returns a count of files currently open to that directory / path. Script was intended to notify admins of high NFS mount usage.
Does not include a check that the NFS drive is mounted, so could in theory check the empty directory where the mount should be without an error. You will need to monitor that the NFS mounts exist using another agent.
Very simple script, feel free to modify , edit and re-use as needed. Please provide credit if and when appropriate.
You must be logged in to submit a review.
To:
From: