diff options
Diffstat (limited to 'web/attachments/262608-check_oracle.sh-1.4.11.patch')
-rw-r--r-- | web/attachments/262608-check_oracle.sh-1.4.11.patch | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | diff -u -r nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh | ||
2 | --- nagios-plugins-1.4.11\plugins-scripts\check_oracle.sh Sat Jul 07 13:40:30 2007 | ||
3 | +++ nagios-plugins-1.4.11-patch\plugins-scripts\check_oracle.sh Thu Jan 17 13:47:50 2008 | ||
4 | @@ -247,13 +247,10 @@ | ||
5 | set pagesize 0 | ||
6 | set numf '9999999.99' | ||
7 | select NVL(b.free,0.0),a.total,100 - trunc(NVL(b.free,0.0)/a.total * 1000) / 10 prc | ||
8 | -from ( | ||
9 | -select tablespace_name,sum(bytes)/1024/1024 total | ||
10 | -from dba_data_files group by tablespace_name) A | ||
11 | -LEFT OUTER JOIN | ||
12 | -( select tablespace_name,sum(bytes)/1024/1024 free | ||
13 | -from dba_free_space group by tablespace_name) B | ||
14 | -ON a.tablespace_name=b.tablespace_name WHERE a.tablespace_name='${5}'; | ||
15 | +from | ||
16 | + ( select tablespace_name,sum(bytes)/1024/1024 total from dba_data_files group by tablespace_name) A | ||
17 | +, ( select tablespace_name,sum(bytes)/1024/1024 free from dba_free_space group by tablespace_name) B | ||
18 | +WHERE a.tablespace_name(+)=b.tablespace_name AND a.tablespace_name='${5}'; | ||
19 | EOF` | ||
20 | |||
21 | if [ -n "`echo $result | grep ORA-`" ] ; then | ||