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. --- .../420708-check_oracle_1.4.15_tnsstringmatchfix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch (limited to 'web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch') diff --git a/web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch b/web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch new file mode 100644 index 0000000..47d42c6 --- /dev/null +++ b/web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch @@ -0,0 +1,11 @@ +--- check_oracle 2011-08-09 20:28:19.000000000 +0200 ++++ /check_oracle_tns_stringmatchfixed 2011-08-09 20:28:14.000000000 +0200 +@@ -133,7 +133,7 @@ + tnschk=` tnsping $2` + tnschk2=` echo $tnschk | grep -c OK` + if [ ${tnschk2} -eq 1 ] ; then +- tnschk3=` echo $tnschk | sed -e 's/.*(//' -e 's/).*//'` ++ tnschk3=${tnschk##*(}; tnschk3=${tnschk3%)*} + echo "OK - reply time ${tnschk3} from $2" + exit $STATE_OK + else -- cgit v1.2.3-74-g34f1