From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/320396-nagios-plugins-subst.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 web/attachments/320396-nagios-plugins-subst.txt (limited to 'web/attachments/320396-nagios-plugins-subst.txt') diff --git a/web/attachments/320396-nagios-plugins-subst.txt b/web/attachments/320396-nagios-plugins-subst.txt new file mode 100644 index 0000000..b04dea5 --- /dev/null +++ b/web/attachments/320396-nagios-plugins-subst.txt @@ -0,0 +1,22 @@ +--- nagios-plugins-1.4.13/plugins-scripts/subst.in.orig 2009-03-31 13:59:58.000000000 +1100 ++++ nagios-plugins-1.4.13/plugins-scripts/subst.in 2009-03-31 14:01:30.000000000 +1100 +@@ -62,11 +62,14 @@ + # subst will replace the fully qualified command with whatever is + # returned from the which subroutine + # +-/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { +- match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); +- c=substr($0,RSTART,RLENGTH); +- sub(c,which(c,path)); +-} ++# REMOVED: had collateral dammage of also replacing library paths: ++# use lib "/usr/lib/nagios/plugins" ==> use lib "nagios/plugins", ++# this is wrong, and provides no real benefit for executables ++#/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// { ++# match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/); ++# c=substr($0,RSTART,RLENGTH); ++# sub(c,which(c,path)); ++#} + + { + print; -- cgit v1.2.3-74-g34f1