Home Directory Plugins Operating Systems Linux check nfs mountpoints

check nfs mountpoints

Bookmark and Share

Rating
1 vote
Favoured:
0
Hits
139183
Files:
FileDescription
check_mountpoints.pycheck_mountpoints.py
Compares /etc/fstab and /proc/mounts
Simple python-Script that parses and compares /etc/fstab and /proc/mounts and checks if all nfs-Partitions are mounted(Doesn't check for sanity or mount-options like noauto). Could be easily extended to check other types too...
Reviews (1)
bypescobar, November 3, 2011
simple and works....

I just modified line 20 to this:

if 'nfs' in fstabtype and 'nfs' in proctype:

this way works for both nfs3 and nfs4 machines