git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location')
-rw-r--r--nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location20
1 files changed, 20 insertions, 0 deletions
diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location b/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location
new file mode 100644
index 0000000..feb3e23
--- /dev/null
+++ b/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_nfsmounts/nfs_write_location
@@ -0,0 +1,20 @@
+--- a/check_nfsmounts/check_nfsmounts
++++ b/check_nfsmounts/check_nfsmounts
+@@ -45,6 +45,7 @@
+ }
+
+ use Time::HiRes qw{time alarm};
++use Sys::Hostname;
+ use Getopt::Long;
+ use strict;
+
+@@ -129,7 +130,8 @@
+ if($pid==0) {
+ chdir $dir or &bad_mount($dir,$!);
+ if($writemode and exists($mountmodes{$dir}->{"rw"})) {
+- open X,"> $dir/.nfscheck" or exit $?;
++ my $check_filename="$dir/.nfscheck_" . hostname;
++ open X,"> $check_filename" or exit $?;
+ print X $ENV{HOSTNAME}."\n".localtime()."\n"; # XXX Full disk may fail..
+ close X or exit $?;
+ }