[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 10/13: check_nfsmount: nfs4 support
Bernd Zeimetz
bernd at bzed.de
Tue Jan 3 13:12:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit 1ade7ce39cb6c0ba85c8482ba3e9be764679264a
Author: Bernd Zeimetz <bernd at bzed.de>
Date: Tue Jan 3 13:51:52 2017 +0100
check_nfsmount: nfs4 support
Resolves #73
Thanks: gvogets
---
debian/patches/check_nfsmounts/nfs4_support | 11 +++++++++++
debian/patches/series | 1 +
2 files changed, 12 insertions(+)
diff --git a/debian/patches/check_nfsmounts/nfs4_support b/debian/patches/check_nfsmounts/nfs4_support
new file mode 100644
index 0000000..482541f
--- /dev/null
+++ b/debian/patches/check_nfsmounts/nfs4_support
@@ -0,0 +1,11 @@
+--- a/check_nfsmounts/check_nfsmounts
++++ b/check_nfsmounts/check_nfsmounts
+@@ -101,7 +101,7 @@
+ my @dirs=();
+ my %mountmodes=();
+ while(my $line=<MTAB>) {
+- if($line =~ /^[^ ]+ [^ ]+ nfs /) {
++ if($line =~ /^[^ ]+ [^ ]+ nfs4? /) {
+ my @fields=split(/\s+/,$line);
+ my $mountpoint=$fields[1];
+ push(@dirs,$mountpoint);
diff --git a/debian/patches/series b/debian/patches/series
index e230d8c..b396bbe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -47,3 +47,4 @@ dsa/epn
dsa/check_packages_,_fix
check_cups/ParseDateDelta
check_printer/epn
+check_nfsmounts/nfs4_support
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git
More information about the Pkg-nagios-changes
mailing list