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.
A perl script that checks all local NFS mounts by forking itself and trying to chdir to it and (optionally) writing to a file. It includes performance data and allows warnings based on thresholds.
Current Version
Last Release Date
June 17, 2009
Owner
Nagios Exchange
Website
http://www.adicio.com/
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2009/06/check_nfsmounts
Perl script
just a two characters fix to make this work with nfsv4 mounts: --- check_nfsmounts.old 2025-04-24 12:38:37.030645151 +0200 +++ check_nfsmounts 2025-04-24 12:32:30.676912073 +0200 @@ -79,7 +79,7 @@ my @dirs=(); my %mountmodes=(); while(my $line=) { - if($line =~ /^[^ ]+ [^ ]+ nfs /) { + if($line =~ /^[^ ]+ [^ ]+ nfs.? /) { my @fields=split(/s+/,$line); my $mountpoint=$fields[1]; push(@dirs,$mountpoint); and it works for me on nrpe, but it needed root priviliges, so added sudo to the command in nrpe.conf and edited /etc/sudoers
Indeed it works only in command line. To work with nrpe I had to add the line bellow before all "use" lines: use lib "/usr/lib/nagios/plugins";
This plugin works great commandline but wont work with NRPE.
Out of several plugins for checking whether nfs mounts are working, this is the best I've found. It actually tests whether the mount can be accessed, not just whether mtab or showmount report it as mounted. It does not freeze if the mount becomes unavailable.
You must be logged in to submit a review.
To:
From: