Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

NFS Check

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2016-07-01
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
BSD
Hits
8478
Files:
FileDescription
count_nfs_opfiles.shcount_nfs_opfiles.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
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.