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