Here's the query - sorry, that took too long :(
SQLv2.exe "-dbuser=DB_USER" "-dbpass=DB_PASSWORD" "-host=DB_HOST" "-dbauth=1" "-database=SID=DB_SID" "-timeout=60" "-server=Oracle" "-handledbnull=1" "-querytype=ReadData" "-transaction=noTransaction" "-selectvalue=ColumnName" "-channelids=3|4|5|6|7|8|9|10" "-selectors=online_status|status|free|free_perc|blocks_free|blocks_free_perc|used|disk_used" "-isdif=0|0|0|0|0|0|0|0" "-query=SELECT max( CASE WHEN t.online_status = 'ONLINE' THEN 0 WHEN t.online_status = 'SYSTEM' THEN 1 WHEN t.online_status = 'RECOVER' THEN 2 WHEN t.online_status = 'SYSOFF' THEN 3 WHEN t.online_status = 'OFFLINE' THEN 4 ELSE 100 END) online_status, max( CASE WHEN t.status = 'AVAILABLE' THEN 0 WHEN t.status = 'INVALID' THEN 1 ELSE 100 END ) status, SUM(t.maxbytes) - SUM(t.bytes) free, trunc(100 * (SUM(t.maxbytes) - SUM(t.bytes)) / SUM(t.maxbytes), 12) free_perc, SUM(t.maxblocks) - SUM(t.blocks) blocks_free, trunc(100 * (SUM(t.maxblocks) - SUM(t.blocks)) / SUM(t.maxblocks), 12) blocks_free_perc, SUM(t.bytes) used, SUM(t.disk_bytes) disk_used FROM ( SELECT a.tablespace_name, a.file_name, a.online_status, a.status, CASE WHEN a.AUTOEXTENSIBLE = 'NO' THEN a.BYTES ELSE a.MAXBYTES END maxbytes, ( SELECT a.BYTES - NVL(SUM(b.BYTES), 0) FROM dba_free_space b WHERE b.FILE_ID = a.FILE_ID ) bytes, a.BYTES disk_bytes, CASE WHEN a.AUTOEXTENSIBLE = 'NO' THEN a.BLOCKS ELSE a.MAXBLOCKS END maxblocks, ( SELECT a.BLOCKS - NVL(SUM(b.BLOCKS), 0) FROM dba_free_space b WHERE b.FILE_ID = a.FILE_ID ) blocks FROM dba_data_files a ) t WHERE t.tablespace_name = 'USERS'"
Navigate to C:\Program Files(x86)\PRTG Network Monitor\Sensor System\ via cmd and execute it, then provide us with the output. Thanks!
PRTG Scheduler |
PRTGapi |
Feature Requests |
WMI Issues |
SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Add comment