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
22990
Files:
FileDescription
check_nfs_export.plcheck_nfs_export.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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