Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
Verifies the current mounts correspond to those defined in /etc/fstab. Return 0 [OK] if true, 1 [WARNING] if mounted but has no matching entry in /etc/fstab and 2 [CRITICAL] if an /etc/fstab entry is not currently mounted. Supports: NFS3, NFS4, CIFS, SMBFS and S3FS mounts. Sample usage: $ ./check_mounts.sh OUTPUT: /etc/fstab and /proc/mounts are not identical :( Critical: these are not mounted but do appear in /etc/fstab: +//10.0.0.3/my_vol /mnt/my_vol
Current Version
0.4
Last Release Date
2012-11-02
Owner
Jess Portnoy
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2011/07/check_mounts.sh
License
GPL
Verifies the current mounts correspond to those defined in /etc/fstab. Return 0 [OK] if true, 1 [WARNING] if mounted but has no matching entry in /etc/fstab and 2 [CRITICAL] if an /etc/fstab entry is not currently mounted. Supports: NFS3, NFS4, CIFS, SMBFS and S3FS mounts.
Sample usage: $ ./check_mounts.sh
OUTPUT: /etc/fstab and /proc/mounts are not identical :(
Critical: these are not mounted but do appear in /etc/fstab: +//10.0.0.3/my_vol /mnt/my_vol
CHANGELOG: 04/19/2012 04:56:00 PM EDT: - Added support for nfs4 [patch by Michael Hübner [email protected]] 11/02/2012 05:07:00 PM EDT: - Added support for s3fs 12/08/2013 06:21:00 PM EDT: - Added test to touch a file in the mount, will only be checked if timeout util exists - Fixed EOL prints
You must be logged in to submit a review.
To:
From: