summaryrefslogtreecommitdiffstats
path: root/web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch')
-rw-r--r--web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch11
1 files changed, 11 insertions, 0 deletions
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 @@
1--- check_oracle 2011-08-09 20:28:19.000000000 +0200
2+++ /check_oracle_tns_stringmatchfixed 2011-08-09 20:28:14.000000000 +0200
3@@ -133,7 +133,7 @@
4 tnschk=` tnsping $2`
5 tnschk2=` echo $tnschk | grep -c OK`
6 if [ ${tnschk2} -eq 1 ] ; then
7- tnschk3=` echo $tnschk | sed -e 's/.*(//' -e 's/).*//'`
8+ tnschk3=${tnschk##*(}; tnschk3=${tnschk3%)*}
9 echo "OK - reply time ${tnschk3} from $2"
10 exit $STATE_OK
11 else