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

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
3514
Files:
FileDescription
count_nfs_opfiles.shcount_nfs_opfiles.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.