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
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