summaryrefslogtreecommitdiffstats
path: root/web/attachments/420708-check_oracle_1.4.15_tnsstringmatchfix.patch
diff options
context:
space:
mode:
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