summaryrefslogtreecommitdiffstats
path: root/web/attachments/274975-check_oracle.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/274975-check_oracle.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/274975-check_oracle.patch')
-rw-r--r--web/attachments/274975-check_oracle.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/web/attachments/274975-check_oracle.patch b/web/attachments/274975-check_oracle.patch
new file mode 100644
index 0000000..98eeced
--- /dev/null
+++ b/web/attachments/274975-check_oracle.patch
@@ -0,0 +1,24 @@
1--- plugins-scripts/check_oracle.sh.old 2008-04-17 15:59:40.807652000 -0400
2+++ plugins-scripts/check_oracle.sh 2008-04-17 16:15:15.641727000 -0400
3@@ -37,7 +37,7 @@
4 echo "--db SID"
5 echo " Check local database (search /bin/ps for PMON process) and check"
6 echo " filesystem for sgadefORACLE_SID.dbf"
7- echo "--login SID"
8+ echo "--login SID|<IP or hostname> SID"
9 echo " Attempt a dummy login and alert if not ORA-01017: invalid username/password"
10 echo "--cache"
11 echo " Check local database for library and buffer cache hit ratios"
12@@ -176,7 +176,11 @@
13 fi
14 ;;
15 --login)
16- loginchk=`sqlplus dummy/user@$2 < /dev/null`
17+ if [ -n "$3" ]; then
18+ loginchk=`sqlplus dummy/user@$2/$3 < /dev/null`
19+ else
20+ loginchk=`sqlplus dummy/user@$2 < /dev/null`
21+ fi
22 loginchk2=` echo $loginchk | grep -c ORA-01017`
23 if [ ${loginchk2} -eq 1 ] ; then
24 echo "OK - dummy login connected"