-
Problem report
-
Resolution: Fixed
-
Major
-
None
-
None
-
Sprint 95 (Dec 2022), Sprint 96 (Jan 2023)
-
1
For the Oracle Agent2 plugin: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/plugins/oracle/handler_tablespaces.go
Plugin is using this query
ROUND(DECODE(SUM(df.MAX_BYTES), 0, 0, (SUM(df.BYTES) / SUM(df.MAX_BYTES) * 100)), 2) AS USED_PCT_MAX,
Should use this query
ROUND(DECODE(SUM(df.MAX_BYTES), 0, 0, ((SUM(df.BYTES)-SUM(f.FREE)) / SUM(df.MAX_BYTES) * 100)), 2) AS USED_PCT_MAX,