Build precise queries to find exactly what you need
Press ESC to close
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/
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:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!