检查项目中加入,dbfilesize,dbsize ,如下图所示:vi /opt/orabbix/conf/query.props
dbfilesize.Query=select to_char(sum(bytes/1024/1024/10), 'FM99999999999999990') retvalue from dba_data_files
dbsize.Query=SELECT to_char(sum( NVL(a.bytes/1024/1024/10 - NVL(f.bytes/1024/1024/10, 0), 0)), 'FM99999999999999990') retvalue /
FROM sys.dba_tablespaces d, /
(select tablespace_name, sum(bytes) bytes from dba_data_files group by tablespace_name) a, /
(select tablespace_name, sum(bytes) bytes from dba_free_space group by tablespace_name) f /
WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+) /
AND NOT (d.extent_management like 'LOCAL' AND d.contents like 'TEMPORARY')