summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6728e60)
raw | patch | inline | side by side (parent: 6728e60)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 26 Oct 2006 21:10:20 +0000 (21:10 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 26 Oct 2006 21:10:20 +0000 (21:10 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1529 f882894a-f735-0410-b71e-b25c423dba1c
THANKS.in | patch | blob | history | |
plugins-scripts/check_oracle.sh | patch | blob | history |
diff --git a/THANKS.in b/THANKS.in
index 2e0ad4b8d99c7a3d3f5934a5f35fadddb08023f8..591ae545c509f0418b01aec3dc7f293d6f1f37f5 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Robby Giffin
Henning Schmiedehausen
Markus Baertschi
+Florian Gleixner
index 99564917a9831950e9b0161e35f806ab43885f76..02ca11147b86cefde247b098cfca1486483223ce 100755 (executable)
result=`sqlplus -s ${3}/${4}@${2} << EOF
set pagesize 0
set numf '9999999.99'
-select b.free,a.total,100 - trunc(b.free/a.total * 1000) / 10 prc
+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,
+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
-where a.tablespace_name=b.tablespace_name and a.tablespace_name='${5}';
+ON a.tablespace_name=b.tablespace_name WHERE a.tablespace_name='${5}';
EOF`
if [ -n "`echo $result | grep ORA-`" ] ; then