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/262608-check_oracle.sh-1.4.11.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/attachments/262608-check_oracle.sh-1.4.11.patch (limited to 'web/attachments/262608-check_oracle.sh-1.4.11.patch') diff --git a/web/attachments/262608-check_oracle.sh-1.4.11.patch b/web/attachments/262608-check_oracle.sh-1.4.11.patch new file mode 100644 index 0000000..720445c --- /dev/null +++ b/web/attachments/262608-check_oracle.sh-1.4.11.patch @@ -0,0 +1,21 @@ +diff -u -r nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh +--- nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh Sat Jul 07 13:40:30 2007 ++++ nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh Thu Jan 17 13:47:50 2008 +@@ -247,13 +247,10 @@ + set pagesize 0 + set numf '9999999.99' + select NVL(b.free,0.0),a.total,100 - trunc(NVL(b.free,0.0)/a.total * 1000) / 10 prc +-from ( +-select tablespace_name,sum(bytes)/1024/1024 total +-from dba_data_files group by tablespace_name) A +-LEFT OUTER JOIN +-( select tablespace_name,sum(bytes)/1024/1024 free +-from dba_free_space group by tablespace_name) B +-ON a.tablespace_name=b.tablespace_name WHERE a.tablespace_name='${5}'; ++from ++ ( select tablespace_name,sum(bytes)/1024/1024 total from dba_data_files group by tablespace_name) A ++, ( select tablespace_name,sum(bytes)/1024/1024 free from dba_free_space group by tablespace_name) B ++WHERE a.tablespace_name(+)=b.tablespace_name AND a.tablespace_name='${5}'; + EOF` + + if [ -n "`echo $result | grep ORA-`" ] ; then -- cgit v1.2.3-74-g34f1