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

check_nfs_export

Rating
0 votes
Favoured:
0
Current Version
0.10
Last Release Date
2014-04-08
License
GPL
Hits
23396
Files:
FileDescription
check_nfs_export.plcheck_nfs_export.pl
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!
I threw this together quick, it uses the local output of showmount -e to verify a specific filesystem is exported.
Does NOT check if portmapper is running
Does NOT check what hosts have permission to the mountpoint
ONLY tested on CentOS 6.4 currently but I don't expect issues on other OSes

check_nfs_export.pl -H -p [-t timeout][-c ]
-H hostname to check
-p path that is supposed to be exported
-t timeout
-c showmount command, defaults to /usr/sbin/showmount

Version 0.10


added timeout, if no path is set, default to /.* to match any export