<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
   <version>5.0</version>
   <date>2021-02-10T14:35:58Z</date>
   <groups>
      <group>
         <name>Templates/Databases</name>
      </group>
   </groups>
   <templates>
      <template>
         <template>Template DB Oracle by ODBC</template>
         <name>Template DB Oracle by ODBC</name>
         <description>1. Create an Oracle user for monitoring.&#13;
&#13;
2. Set the user name and password in host macros ({$ORACLE.USER} and {$ORACLE.PASSWORD}).&#13;
  Do not forget to install the Microsoft ODBC driver on the Zabbix server or the Zabbix proxy.&#13;
  See Oracle documentation for instructions: https://www.oracle.com/database/technologies/releasenote-odbc-ic.html.&#13;
&#13;
  Note! Credentials in the odbc.ini do not work for Oracle.&#13;
  Note! Be sure that ODBC connects to Oracle with session parameter NLS_NUMERIC_CHARACTERS= '.,' It is important for correct display float numbers in Zabbix.&#13;
The "Service's TCP port state" item uses {HOST.CONN} and {$ORACLE.PORT} macros to check the availability of the listener.&#13;
&#13;
&#13;
Template tooling version used: 0.38</description>
         <groups>
            <group>
               <name>Templates/Databases</name>
            </group>
         </groups>
         <applications>
            <application>
               <name>Oracle</name>
            </application>
            <application>
               <name>Zabbix raw items</name>
            </application>
         </applications>
         <items>
            <item>
               <name>Oracle: Get archive log info</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_archivelog_stat,"{$ORACLE.DSN}"]</key>
               <delay>5m</delay>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT
d.dest_name, DECODE (d.status, 'VALID',3, 'DEFERRED', 2, 'ERROR', 1, 0) AS status,
d.log_sequence,
d.error
FROM v$archive_dest d , v$database db
WHERE d.status != 'INACTIVE' AND db.log_mode = 'ARCHIVELOG';</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get ASM stats</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_asm_stat,"{$ORACLE.DSN}"]</key>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT
name AS dg_name,
ROUND(total_mb / DECODE(TYPE, 'NORMAL', 2, 'HIGH', 3, 'EXTERN', 1)*1024*1024) AS size_byte,
ROUND(usable_file_mb*1024*1024 ) AS free_size_byte,
ROUND(100-(usable_file_mb /(total_mb / DECODE(TYPE, 'NORMAL', 2, 'HIGH', 3, 'EXTERN', 1)))* 100, 2) AS used_percent
FROM v$asm_diskgroup ;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>Get ASM disk groups stats.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get CDB and No-CDB info</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_cdb_info,"{$ORACLE.DSN}"]</key>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT name as DBNAME,
DECODE(open_mode, 'MOUNTED', 1, 'READ ONLY', 2, 'READ WRITE', 3, 'READ ONLY WITH APPLY', 4, 'MIGRATE', 5, 0) AS open_mode,
DECODE(database_role, 'SNAPSHOT STANDBY', 1, 'LOGICAL STANDBY', 2, 'PHYSICAL STANDBY', 3, 'PRIMARY', 4, 'FAR SYNC', 5, 0) AS ROLE,
DECODE(force_logging, 'YES',1,'NO',0,0) AS force_logging,
DECODE(log_mode, 'MANUAL',2 ,'ARCHIVELOG',1,'NOARCHIVELOG',0,0) AS log_mode
FROM v$database</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>Get info about CDB and  No-CDB databases on instansce.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get instance state</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT
INSTANCE_NAME,
HOST_NAME,
VERSION || '-' || EDITION AS VERSION,
floor((SYSDATE - startup_time)*60*60*24) AS UPTIME,
decode(status,'STARTED',1,'MOUNTED',2,'OPEN',3,'OPEN MIGRATE',4, 0) AS STATUS,
decode(archiver,'STOPPED',1,'STARTED',2,'FAILED',3, 0) AS  ARCHIVER,
decode(instance_role,'PRIMARY_INSTANCE',1,'SECONDARY_INSTANCE',2, 0) AS  INSTANCE_ROLE
FROM v$instance;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>The item gets state of the current instance.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get PDB info</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_pdb_info,"{$ORACLE.DSN}"]</key>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT
name as DBNAME,
DECODE(open_mode, 'MOUNTED', 1, 'READ ONLY', 2, 'READ WRITE', 3, 'READ ONLY WITH APPLY', 4, 'MIGRATE', 5, 0) AS open_mode
FROM v$pdbs;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>Get info about PDB databases on instansce.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get system metrics (1)</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               <delay>0;m0-59</delay>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT 'SYS::' || METRIC_NAME AS METRIC, ROUND(VALUE,3) AS VALUE
 FROM V$SYSMETRIC WHERE GROUP_ID = 2
UNION
  SELECT 'SYSPARAM::' || INITCAP(NAME), to_number(VALUE)
  FROM V$SYSTEM_PARAMETER WHERE NAME IN ('sessions', 'processes', 'db_files')
UNION
 SELECT 'SESSION::Long time locked' ,count(*) FROM V$SESSION s WHERE s.BLOCKING_SESSION IS NOT NULL AND s.BLOCKING_SESSION_STATUS='VALID' AND s.SECONDS_IN_WAIT &gt; {$ORACLE.SESSION.LOCK.MAX.TIME}
UNION
SELECT 'SESSION::Lock rate' ,(cnt_block / cnt_all)* 100 pct
FROM ( SELECT COUNT(*) cnt_block FROM v$session WHERE blocking_session IS NOT NULL), ( SELECT COUNT(*) cnt_all FROM v$session)
UNION
 SELECT 'SESSION::Total', COUNT(*) FROM V$SESSION
UNION
SELECT 'SESSION::' || INITCAP(STATUS)|| ' ' || INITCAP(TYPE), COUNT(*) FROM V$SESSION GROUP BY STATUS, TYPE
UNION
SELECT 'SESSION::Concurrency rate', NVL(ROUND(SUM(duty_act.cnt*100 / num_cores.val)), 0)
FROM
( SELECT DECODE(session_state, 'ON CPU', 'CPU', wait_class) wait_class, ROUND(COUNT(*)/(60 * 15), 1) cnt
FROM v$active_session_history sh
WHERE sh.sample_time &gt;= SYSDATE - 15 / 1440 AND DECODE(session_state, 'ON CPU', 'CPU', wait_class) IN('Concurrency')
GROUP BY DECODE(session_state, 'ON CPU', 'CPU', wait_class)) duty_act,
( SELECT SUM(value) val FROM v$osstat WHERE stat_name = 'NUM_CPU_CORES') num_cores
UNION
 SELECT 'PGA::' || INITCAP(NAME), VALUE FROM V$PGASTAT
 UNION
SELECT 'PROC::Procnum', COUNT(*) FROM v$process
UNION
SELECT 'DATAFILE::Count', COUNT(*) FROM v$datafile;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>The item gets system metric values.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get system metrics (2)</name>
               <type>ODBC</type>
               <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               <delay>0;m0-59</delay>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT 'SGA::' || INITCAP(pool) AS METRIC , SUM(bytes) AS VALUE FROM V$SGASTAT
WHERE pool IN ( 'java pool', 'large pool' ) GROUP BY pool
UNION
SELECT 'SGA::Shared Pool', SUM(bytes) FROM V$SGASTAT
WHERE pool = 'shared pool' AND name NOT IN ('library cache', 'dictionary cache', 'free memory', 'sql area')
UNION
SELECT 'SGA::' || INITCAP(name), bytes FROM V$SGASTAT
WHERE pool IS NULL AND name IN ('log_buffer', 'fixed_sga')
UNION
SELECT 'SGA::Buffer_Cache', SUM(bytes) FROM V$SGASTAT
WHERE pool IS NULL AND name IN ('buffer_cache', 'db_block_buffers')
UNION
SELECT 'REDO::Available', count(*) from v$log t where t.status in ('INACTIVE', 'UNUSED')
UNION
SELECT 'USER::Expire password', ROUND(DECODE(SIGN(NVL(u.expiry_date, SYSDATE + 999) - SYSDATE),-1, 0, NVL(u.expiry_date, SYSDATE + 999) - SYSDATE)) exp_passwd_days_before
FROM dba_users u WHERE username = UPPER('{$ORACLE.USER}')
UNION
 SELECT 'FRA::Space Limit', space_limit FROM V$RECOVERY_FILE_DEST
UNION
 SELECT 'FRA::Space Used', space_used FROM V$RECOVERY_FILE_DEST
UNION
 SELECT 'FRA::Space Reclaimable', space_reclaimable FROM V$RECOVERY_FILE_DEST
UNION
 SELECT 'FRA::Number Of Files', number_of_files FROM V$RECOVERY_FILE_DEST
UNION
 SELECT 'FRA::Usable Pct', DECODE(space_limit, 0, 0,(100-(100 *(space_used-space_reclaimable)/ space_limit))) AS VALUE FROM V$RECOVERY_FILE_DEST
UNION
 SELECT 'FRA::Restore Point', COUNT(*) FROM V$RESTORE_POINT;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>The item gets system metric values.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Get tablespaces stats</name>
               <type>ODBC</type>
               <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
               <history>0</history>
               <trends>0</trends>
               <value_type>TEXT</value_type>
               <params>SELECT df.tablespace_name AS TABLESPACE, df.type AS TYPE, NVL(SUM(df.BYTES), 0) AS FILE_BYTES, NVL(SUM(df.MAX_BYTES), 0) AS MAX_BYTES, NVL(SUM(f.FREE), 0) AS FREE_BYTES, SUM(df.BYTES)-SUM(f.FREE) AS USED_BYTES, ROUND(DECODE(SUM(df.MAX_BYTES), 0, 0, (SUM(df.BYTES) / SUM(df.MAX_BYTES) * 100)), 2) AS USED_PCT_MAX, ROUND(DECODE(SUM(df.BYTES), 0, 0,(SUM(df.BYTES)-SUM(f.FREE))/ SUM(df.BYTES)* 100), 2) AS USED_FILE_PCT, DECODE(df.STATUS, 'ONLINE', 1, 'OFFLINE', 2, 'READ ONLY', 3, 0) AS STATUS FROM ( SELECT ddf.file_id, dt.contents AS TYPE, dt.STATUS , ddf.file_name, ddf.tablespace_name, TRUNC(ddf.bytes) AS bytes, TRUNC(GREATEST(ddf.bytes, ddf.maxbytes)) AS max_bytes FROM dba_data_files ddf, dba_tablespaces dt WHERE ddf.tablespace_name = dt.tablespace_name ) df, ( SELECT TRUNC(SUM(bytes)) AS FREE, file_id FROM dba_free_space GROUP BY file_id ) f WHERE df.file_id = f.file_id (+) GROUP BY df.tablespace_name, df.TYPE, df.status UNION ALL SELECT Y.name AS TABLESPACE, Y.type AS TYPE, NVL(SUM(Y.BYTES), 0) AS FILE_BYTES, NVL(SUM(Y.MAX_BYTES), 0) AS MAX_BYTES, NVL(MAX(NVL(Y.FREE_BYTES, 0)), 0) AS FREE, SUM(Y.BYTES)-SUM(Y.FREE_BYTES) AS USED_BYTES, ROUND(DECODE(SUM(Y.MAX_BYTES), 0, 0, (SUM(Y.BYTES) / SUM(Y.MAX_BYTES) * 100)), 2) AS USED_PCT_MAX, ROUND(DECODE(SUM(Y.BYTES), 0, 0,(SUM(Y.BYTES)-SUM(Y.FREE_BYTES))/ SUM(Y.BYTES)* 100), 2) AS USED_FILE_PCT, DECODE(Y.TBS_STATUS, 'ONLINE', 1, 'OFFLINE', 2, 'READ ONLY', 3, 0) AS STATUS FROM ( SELECT dtf.tablespace_name AS name, dt.contents AS TYPE, dt.STATUS AS tbs_status, dtf.status AS status, dtf.bytes AS bytes, (SELECT ((f.total_blocks - s.tot_used_blocks)* vp.value) FROM ( SELECT tablespace_name, SUM(used_blocks) tot_used_blocks FROM gv$sort_segment WHERE tablespace_name != 'DUMMY' GROUP BY tablespace_name) s, ( SELECT tablespace_name, SUM(blocks) total_blocks FROM dba_temp_files WHERE tablespace_name != 'DUMMY' GROUP BY tablespace_name) f, ( SELECT value FROM v$parameter WHERE name = 'db_block_size') vp WHERE f.tablespace_name = s.tablespace_name AND f.tablespace_name = dtf.tablespace_name ) AS free_bytes, CASE WHEN dtf.maxbytes = 0 THEN dtf.bytes ELSE dtf.maxbytes END AS max_bytes FROM sys.dba_temp_files dtf, sys.dba_tablespaces dt WHERE dtf.tablespace_name = dt.tablespace_name ) Y GROUP BY Y.name, Y.TYPE, Y.tbs_status;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>Get tablespaces stats.</description>
               <applications>
                  <application>
                     <name>Zabbix raw items</name>
                  </application>
               </applications>
            </item>
            <item>
               <name>Oracle: Service's TCP port state</name>
               <key>net.tcp.service[tcp,{HOST.CONN},{$ORACLE.PORT}]</key>
               <delay>30s</delay>
               <history>7d</history>
               <description>Test the availability of Oracle on TCP port.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <valuemap>
                  <name>Service state</name>
               </valuemap>
               <preprocessing>
                  <step>
                     <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                     <params>10m</params>
                  </step>
               </preprocessing>
            </item>
            <item>
               <name>Oracle: Active parallel sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.active_parallel_sessions</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The number of active parallel sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Active Parallel Sessions')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Active serial sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.active_serial_sessions</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The number of active serial sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Active Serial Sessions')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Average active sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.active_sessions</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The average active sessions at a point in time. It is the number of sessions that are either working or waiting.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Average Active Sessions')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Archiver state</name>
               <type>DEPENDENT</type>
               <key>oracle.archiver_state</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Automatic archiving status.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <valuemap>
                  <name>Oracle archiver state</name>
               </valuemap>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..ARCHIVER.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Buffer cache hit ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.buffer_cache_hit_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Ratio of buffer cache hits. (LogRead - PhyRead)/LogRead</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Buffer Cache Hit Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Global cache blocks corrupted</name>
               <type>DEPENDENT</type>
               <key>oracle.cache_blocks_corrupt</key>
               <delay>0</delay>
               <history>7d</history>
               <description>The number of blocks that encountered a corruption or checksum failure during interconnect.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Global Cache Blocks Corrupted')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Global cache blocks lost</name>
               <type>DEPENDENT</type>
               <key>oracle.cache_blocks_lost</key>
               <delay>0</delay>
               <history>7d</history>
               <description>The number of global cache blocks lost</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Global Cache Blocks Lost')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Cursor cache hit ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.cursor_cache_hit_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Ratio of cursor cache hits. CursorCacheHit/SoftParse</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Cursor Cache Hit Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Database CPU time ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.database_cpu_time_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Calculated by dividing the total CPU used by the database by the Oracle time model statistic DB time.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Database CPU Time Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Database wait time ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.database_wait_time_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Wait time: the time that the server process spends waiting for available shared resources (to be released by other server processes) such as latches, locks, data buffers, and so on</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Database Wait Time Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Datafiles count</name>
               <type>DEPENDENT</type>
               <key>oracle.db_files_count</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Current number of datafile.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='DATAFILE::Count')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Datafiles limit</name>
               <type>DEPENDENT</type>
               <key>oracle.db_files_limit</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Max allowable number of  datafile.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYSPARAM::Db_Files')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Disk sort per second</name>
               <type>DEPENDENT</type>
               <key>oracle.disk_sorts</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>The number of sorts going to disk per second</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Disk Sort Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Enqueue timeouts per second</name>
               <type>DEPENDENT</type>
               <key>oracle.enqueue_timeouts_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>Enqueue timeouts per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Enqueue Timeouts Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Number of files</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_number_of_files</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Number of files in the fast recovery area</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Number Of Files')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Number of restore points</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_restore_point</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Restore Point')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Space limit</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_space_limit</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Maximum amount of disk space (in bytes) that the database can use for the fast recovery area.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Space Limit')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Space reclaimable</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_space_reclaimable</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Total amount of disk space (in bytes) that can be created by deleting obsolete, redundant, and other low priority files from the fast recovery area.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Space Reclaimable')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Used space</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_space_used</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Amount of disk space (in bytes) used by fast recovery area files created in current and all previous fast recovery areas.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Space Used')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: FRA, Usable space in %</name>
               <type>DEPENDENT</type>
               <key>oracle.fra_usable_pct</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='FRA::Usable Pct')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: GC CR block received per second</name>
               <type>DEPENDENT</type>
               <key>oracle.gc_cr_block_received_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>GC CR block received per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::GC CR Block Received Per Second')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Instance hostname</name>
               <type>DEPENDENT</type>
               <key>oracle.instance_hostname</key>
               <delay>0</delay>
               <history>7d</history>
               <trends>0</trends>
               <value_type>CHAR</value_type>
               <description>Name of the host machine.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..HOST_NAME.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{diff()}=1 and {strlen()}&gt;0</expression>
                     <name>Oracle: Instance hostname has changed (new hostname received: {ITEM.VALUE})</name>
                     <priority>INFO</priority>
                     <description>Oracle DB Instance hostname has changed. Ack to close.</description>
                     <manual_close>YES</manual_close>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Instance name</name>
               <type>DEPENDENT</type>
               <key>oracle.instance_name</key>
               <delay>0</delay>
               <history>7d</history>
               <trends>0</trends>
               <value_type>CHAR</value_type>
               <description>Name of the instance.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..INSTANCE_NAME.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{diff()}=1 and {strlen()}&gt;0</expression>
                     <name>Oracle: Instance name has changed (new name received: {ITEM.VALUE})</name>
                     <priority>INFO</priority>
                     <description>Oracle DB Instance name has changed. Ack to close.</description>
                     <manual_close>YES</manual_close>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Instance status</name>
               <type>DEPENDENT</type>
               <key>oracle.instance_status</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Status of the instance.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <valuemap>
                  <name>Oracle instance status</name>
               </valuemap>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..STATUS.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Instance role</name>
               <type>DEPENDENT</type>
               <key>oracle.instance.role</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Indicates whether the instance is an active instance or an inactive secondary instance.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <valuemap>
                  <name>Oracle instance role</name>
               </valuemap>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..INSTANCE_ROLE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Library cache hit ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.library_cache_hit_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Ratio of library cache hits. Hits/Pins</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Library Cache Hit Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Logons per second</name>
               <type>DEPENDENT</type>
               <key>oracle.logons_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>The number of logon attempts.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Logons Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Long table scans per second</name>
               <type>DEPENDENT</type>
               <key>oracle.long_table_scans_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>The number of long table scans per second. A table is considered 'long' if the table is not cached and if its high-water mark is greater than 5 blocks.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Long Table Scans Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Memory sorts ratio</name>
               <type>DEPENDENT</type>
               <key>oracle.memory_sorts_ratio</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>The percentage of sorts (from ORDER BY clauses or index building) that are done to disk vs in-memory.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Memory Sorts Ratio')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: PGA, Global memory bound</name>
               <type>DEPENDENT</type>
               <key>oracle.pga_global_bound</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Maximum size of a work area executed in automatic mode.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PGA::Global Memory Bound')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: PGA, Aggregate target parameter</name>
               <type>DEPENDENT</type>
               <key>oracle.pga_target</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Current value of the PGA_AGGREGATE_TARGET initialization parameter. If this parameter is not set, then its value is 0 and automatic management of PGA memory is disabled.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PGA::Aggregate Pga Target Parameter')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Physical reads bytes per second</name>
               <type>DEPENDENT</type>
               <key>oracle.physical_read_bytes_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Bps</units>
               <description>Read bytes per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Physical Read Bytes Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Physical reads per second</name>
               <type>DEPENDENT</type>
               <key>oracle.physical_reads_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>Reads per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Physical Reads Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Physical writes bytes per second</name>
               <type>DEPENDENT</type>
               <key>oracle.physical_write_bytes_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Bps</units>
               <description>Write bytes per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Physical Write Bytes Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Physical writes per second</name>
               <type>DEPENDENT</type>
               <key>oracle.physical_writes_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>Writes per second.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Physical Writes Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Number of processes</name>
               <type>DEPENDENT</type>
               <key>oracle.processes_count</key>
               <delay>0</delay>
               <history>7d</history>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PROC::Procnum')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Processes limit</name>
               <type>DEPENDENT</type>
               <key>oracle.processes_limit</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Max user processes.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYSPARAM::Processes')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Redo logs available to switch</name>
               <type>DEPENDENT</type>
               <key>oracle.redo_logs_available</key>
               <delay>0</delay>
               <history>7d</history>
               <description>Number of available for log switching inactive/unused REDO logs.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='REDO::Available')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{max(5m)} &lt; {$ORACLE.REDO.MIN.WARN}</expression>
                     <name>Oracle: Number of REDO logs available for switching is too low (less {$ORACLE.REDO.MIN.WARN} for 5 min)</name>
                     <priority>WARNING</priority>
                     <description>Number of available for log switching inactive/unused REDOs is low (Database down risk)</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Rows per sort</name>
               <type>DEPENDENT</type>
               <key>oracle.rows_per_sort</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The average number of rows per sort for all types of sorts performed.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Rows Per Sort')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SQL service response time</name>
               <type>DEPENDENT</type>
               <key>oracle.service_response_time</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>s</units>
               <description>SQL service response time in seconds.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::SQL Service Response Time')].VALUE.first()</params>
                  </step>
                  <step>
                     <type>MULTIPLIER</type>
                     <params>0.01</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Active background sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.session_active_background</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The number of active background sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Active Background')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Active user sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.session_active_user</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The number of active user sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Active User')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Sessions concurrency</name>
               <type>DEPENDENT</type>
               <key>oracle.session_concurrency_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>The percentage of concurrency. Concurrency is a DB behaviour when different transactions request to change the same resource - in case of modifying data transactions sequentially block temporarily the right to change data, the rest of the transactions are waiting for access. In the case when access for resource is locked for a long time, then the concurrency grows (like the transaction queue) and this often has an extremely negative impact on performance. A high contention value does not indicate the root cause of the problem, but is a signal to search for it.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Concurrency rate')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{min(5m)} &gt; {$ORACLE.CONCURRENCY.MAX.WARN}</expression>
                     <name>Oracle: Too high database concurrency (over {$ORACLE.CONCURRENCY.MAX.WARN}% for 5 min)</name>
                     <priority>WARNING</priority>
                     <description>Concurrency rate is over {$ORACLE.CONCURRENCY.MAX.WARN}%. A high contention value does not indicate the root cause of the problem, but is a signal to search for it. In the case of high competition, an analysis of resource consumption should be carried out, the most "heavy" queries made in the database, possibly - session tracing. All this will help determine the root cause and possible optimization points both in the database configuration and in the logic of building queries of the application itself.</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Session count</name>
               <type>DEPENDENT</type>
               <key>oracle.session_count</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>Session count.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Total')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Inactive user sessions</name>
               <type>DEPENDENT</type>
               <key>oracle.session_inactive_user</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>The number of inactive user sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Inactive User')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Sessions limit</name>
               <type>DEPENDENT</type>
               <key>oracle.session_limit</key>
               <delay>0</delay>
               <history>7d</history>
               <description>User and system sessions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYSPARAM::Sessions')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Sessions lock rate</name>
               <type>DEPENDENT</type>
               <key>oracle.session_lock_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>The percentage of locked sessions. Locks are mechanisms that prevent destructive interaction between transactions accessing the same resource—either user objects such as tables and rows or system objects not visible to users, such as shared data structures in memory and data dictionary rows.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Lock rate')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{min(5m)} &gt; {$ORACLE.SESSIONS.LOCK.MAX.WARN}</expression>
                     <name>Oracle: Too many locked sessions (over {$ORACLE.SESSIONS.LOCK.MAX.WARN}% for 5 min)</name>
                     <priority>WARNING</priority>
                     <description>Number of locked sessions is over {$ORACLE.SESSIONS.LOCK.MAX.WARN}% of the running sessions.</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s</name>
               <type>DEPENDENT</type>
               <key>oracle.session_long_time_locked</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>Count of the prolongely locked sessions. (You can change maximum session lock duration in seconds for query by {$ORACLE.SESSION.LOCK.MAX.TIME} macro. Default 600 sec)</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SESSION::Long time locked')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{min(5m)} &gt; {$ORACLE.SESSION.LONG.LOCK.MAX.WARN}</expression>
                     <name>Oracle: Too many sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s (over {$ORACLE.SESSION.LONG.LOCK.MAX.WARN} for 5 min)</name>
                     <priority>WARNING</priority>
                     <description>Number of sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME} seconds is too high. Long-term locks can negatively affect database performance, therefore, if they are detected, you should first find the most difficult queries from the database point of view and analyze possible resource leaks.</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: SGA, buffer cache</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_buffer_cache</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>The size of the cache of standard blocks.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Buffer_Cache')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SGA, fixed</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_fixed</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>The fixed SGA is an internal housekeeping area.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Fixed_Sga')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SGA, java pool</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_java_pool</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Memory is allocated from the java pool.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Java Pool')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SGA, large pool</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_large_pool</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Memory is allocated from the large pool.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Large Pool')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SGA, log buffer</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_log_buffer</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>The number of bytes allocated for the redo log buffer.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Log_Buffer')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: SGA, shared pool</name>
               <type>DEPENDENT</type>
               <key>oracle.sga_shared_pool</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Memory is allocated from the shared pool.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SGA::Shared Pool')].VALUE.first()</params>
                     <error_handler>CUSTOM_VALUE</error_handler>
                     <error_handler_params>0</error_handler_params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Shared pool free %</name>
               <type>DEPENDENT</type>
               <key>oracle.shared_pool_free</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>%</units>
               <description>Shared pool free memory percent. Free/Total</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Shared Pool Free %')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{max(5m)}&lt;{$ORACLE.SHARED.FREE.MIN.WARN}</expression>
                     <name>Oracle: Shared pool free is too low (less {$ORACLE.SHARED.FREE.MIN.WARN}% for 5m)</name>
                     <priority>WARNING</priority>
                     <description>The shared pool free memory percent has been less than {$ORACLE.SHARED.FREE.MIN.WARN}% in the last 5 minutes.</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Total sorts per user call</name>
               <type>DEPENDENT</type>
               <key>oracle.sorts_per_user_call</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <description>Total sorts per user call.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Total Sorts Per User Call')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Temp space used</name>
               <type>DEPENDENT</type>
               <key>oracle.temp_space_used</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>B</units>
               <description>Temp space used.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::Temp Space Used')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: PGA, Total allocated</name>
               <type>DEPENDENT</type>
               <key>oracle.total_pga_allocated</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Current amount of PGA memory allocated by the instance. The Oracle Database attempts to keep this number below the value of the PGA_AGGREGATE_TARGET initialization parameter. However, it is possible for the PGA allocated to exceed that value by a small percentage and for a short period of time when the work area workload is increasing very rapidly or when PGA_AGGREGATE_TARGET is set to a small value.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PGA::Total Pga Allocated')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: PGA, Total freeable</name>
               <type>DEPENDENT</type>
               <key>oracle.total_pga_freeable</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Number of bytes of PGA memory in all processes that could be freed back to the operating system.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PGA::Total Freeable Pga Memory')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: PGA, Total inuse</name>
               <type>DEPENDENT</type>
               <key>oracle.total_pga_used</key>
               <delay>0</delay>
               <history>7d</history>
               <units>B</units>
               <description>Indicates how much PGA memory is currently consumed by work areas. This number can be used to determine how much memory is consumed by other consumers of the PGA memory (for example, PL/SQL or Java).</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='PGA::Total Pga Inuse')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Uptime</name>
               <type>DEPENDENT</type>
               <key>oracle.uptime</key>
               <delay>0</delay>
               <history>7d</history>
               <trends>0d</trends>
               <units>s</units>
               <description>Oracle instance uptime in seconds.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..UPTIME.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{last()}&lt;10m</expression>
                     <name>Oracle: has been restarted (uptime &lt; 10m)</name>
                     <priority>INFO</priority>
                     <description>Uptime is less than 10 minutes</description>
                     <manual_close>YES</manual_close>
                  </trigger>
                  <trigger>
                     <expression>{nodata(5m)}=1</expression>
                     <name>Oracle: Failed to fetch info data (or no data for 5m)</name>
                     <priority>WARNING</priority>
                     <description>Zabbix has not received data for items for the last 5 minutes. The database might be unavailable for connecting.</description>
                     <dependencies>
                        <dependency>
                           <name>Oracle: Port {$ORACLE.PORT} is unavailable</name>
                           <expression>{Template DB Oracle by ODBC:net.tcp.service[tcp,{HOST.CONN},{$ORACLE.PORT}].max(#3)}=0  and {Template DB Oracle by ODBC:proc.num[,,,"tnslsnr LISTENER"].max(#3)}&gt;0</expression>
                        </dependency>
                     </dependencies>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: User '{$ORACLE.USER}' expire password</name>
               <type>DEPENDENT</type>
               <key>oracle.user_expire_password</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>days</units>
               <description>The number of days before zabbix account password expired.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='USER::Expire password')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_2,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{last()}  &lt; {$ORACLE.EXPIRE.PASSWORD.MIN.WARN}</expression>
                     <name>Oracle: Zabbix account will expire soon (under {$ORACLE.EXPIRE.PASSWORD.MIN.WARN} days)</name>
                     <priority>WARNING</priority>
                     <description>Password for zabbix user in the database will expire soon.</description>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: User rollbacks per second</name>
               <type>DEPENDENT</type>
               <key>oracle.user_rollbacks_rate</key>
               <delay>0</delay>
               <history>7d</history>
               <value_type>FLOAT</value_type>
               <units>Rps</units>
               <description>The number of times that users manually issue the ROLLBACK statement or an error occurred during a user's transactions.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$[?(@.METRIC=='SYS::User Rollbacks Per Sec')].VALUE.first()</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_system_metrics_1,"{$ORACLE.DSN}"]</key>
               </master_item>
            </item>
            <item>
               <name>Oracle: Version</name>
               <type>DEPENDENT</type>
               <key>oracle.version</key>
               <delay>0</delay>
               <history>7d</history>
               <trends>0</trends>
               <value_type>CHAR</value_type>
               <description>Oracle Server version.</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>JSONPATH</type>
                     <params>$..VERSION.first()</params>
                  </step>
                  <step>
                     <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                     <params>1d</params>
                  </step>
               </preprocessing>
               <master_item>
                  <key>db.odbc.get[get_instance_state,"{$ORACLE.DSN}"]</key>
               </master_item>
               <triggers>
                  <trigger>
                     <expression>{diff()}=1 and {strlen()}&gt;0</expression>
                     <name>Oracle: Version has changed (new version value received: {ITEM.VALUE})</name>
                     <priority>INFO</priority>
                     <description>Oracle DB version has changed. Ack to close.</description>
                     <manual_close>YES</manual_close>
                  </trigger>
               </triggers>
            </item>
            <item>
               <name>Oracle: Number of LISTENER processes</name>
               <key>proc.num[,,,"tnslsnr LISTENER"]</key>
               <delay>30s</delay>
               <history>7d</history>
               <description>Number of LISTENER processes running</description>
               <applications>
                  <application>
                     <name>Oracle</name>
                  </application>
               </applications>
               <preprocessing>
                  <step>
                     <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                     <params>10m</params>
                  </step>
               </preprocessing>
               <triggers>
                  <trigger>
                     <expression>{max(#3)}=0</expression>
                     <name>Oracle: LISTENER process is not running</name>
                     <priority>DISASTER</priority>
                  </trigger>
               </triggers>
            </item>
         </items>
         <discovery_rules>
            <discovery_rule>
               <name>Archive log discovery</name>
               <type>ODBC</type>
               <key>db.odbc.discovery[archivelog,"{$ORACLE.DSN}"]</key>
               <delay>1h</delay>
               <params>SELECT d.dest_name
FROM v$archive_dest d , v$database db WHERE d.status != 'INACTIVE' AND db.log_mode = 'ARCHIVELOG';</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>Log archive destinations.</description>
               <item_prototypes>
                  <item_prototype>
                     <name>Archivelog '{#DEST_NAME}': Error</name>
                     <type>DEPENDENT</type>
                     <key>oracle.archivelog_error["{#DEST_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <trends>0</trends>
                     <value_type>TEXT</value_type>
                     <description>Displays the error text</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle Archivelog</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DEST_NAME=='{#DEST_NAME}')].ERROR.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>1h</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_archivelog_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Archivelog '{#DEST_NAME}': Last sequence</name>
                     <type>DEPENDENT</type>
                     <key>oracle.archivelog_log_sequence["{#DEST_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Identifies the sequence number of the last archived redo log to be archived</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle Archivelog</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DEST_NAME=='{#DEST_NAME}')].LOG_SEQUENCE.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_archivelog_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Archivelog '{#DEST_NAME}': Status</name>
                     <type>DEPENDENT</type>
                     <key>oracle.archivelog_log_status["{#DEST_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Identifies the current status of the destination: 1 - 'Valid', 2 - 'Dederred',3 - 'Error', 0 - 'Unknown'</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle Archivelog</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle Archivelog status</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DEST_NAME=='{#DEST_NAME}')].STATUS.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>1h</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_archivelog_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{last()}&lt;2</expression>
                           <name>Archivelog '{#DEST_NAME}': Log Archive is not valid</name>
                           <priority>HIGH</priority>
                           <description>ARL destination not in 3 - Valid or 2 - Deferred.</description>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
               </item_prototypes>
               <host_prototypes/>
            </discovery_rule>
            <discovery_rule>
               <name>ASM disk groups discovery</name>
               <type>ODBC</type>
               <key>db.odbc.discovery[asm,"{$ORACLE.DSN}"]</key>
               <delay>1h</delay>
               <params>SELECT name AS dg_name FROM v$asm_diskgroup;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <description>ASM disk groups</description>
               <item_prototypes>
                  <item_prototype>
                     <name>ASM '{#DG_NAME}': Free size</name>
                     <type>DEPENDENT</type>
                     <key>oracle.asm_free_size["{#DG_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Free size of ASM disk group.</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle ASM</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DG_NAME=='{#DG_NAME}')].FREE_SIZE_BYTE.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_asm_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>ASM '{#DG_NAME}': Total size</name>
                     <type>DEPENDENT</type>
                     <key>oracle.asm_total_size["{#DG_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Total size of ASM disk group.</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle ASM</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DG_NAME=='{#DG_NAME}')].SIZE_BYTE.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_asm_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>ASM '{#DG_NAME}': Free size</name>
                     <type>DEPENDENT</type>
                     <key>oracle.asm_used_pct["{#DG_NAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <value_type>FLOAT</value_type>
                     <units>%</units>
                     <description>Usage percent of ASM disk group.</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle ASM</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DG_NAME=='{#DG_NAME}')].USED_PERCENT.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_asm_stat,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.ASM.USED.PCT.MAX.WARN}</expression>
                           <name>ASM '{#DG_NAME}': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.WARN}% for 5m)</name>
                           <priority>WARNING</priority>
                           <description>Usage percent of ASM disk group is over {$ORACLE.ASM.USED.PCT.MAX.WARN}</description>
                           <dependencies>
                              <dependency>
                                 <name>ASM '{#DG_NAME}': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.HIGH}% for 5m)</name>
                                 <expression>{Template DB Oracle by ODBC:oracle.asm_used_pct["{#DG_NAME}"].min(5m)}&gt;{$ORACLE.ASM.USED.PCT.MAX.HIGH}</expression>
                              </dependency>
                           </dependencies>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.ASM.USED.PCT.MAX.HIGH}</expression>
                           <name>ASM '{#DG_NAME}': Disk group usage is too high (over {$ORACLE.ASM.USED.PCT.MAX.HIGH}% for 5m)</name>
                           <priority>HIGH</priority>
                           <description>Usage percent of ASM disk group is over {$ORACLE.ASM.USED.PCT.MAX.WARN}</description>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
               </item_prototypes>
               <host_prototypes/>
               <graph_prototypes>
                  <graph_prototype>
                     <name>ASM '{#DG_NAME}': ASM disk group '{#DG_NAME}'</name>
                     <graph_items>
                        <graph_item>
                           <color>1A7C11</color>
                           <item>
                              <host>Template DB Oracle by ODBC</host>
                              <key>oracle.asm_free_size["{#DG_NAME}"]</key>
                           </item>
                        </graph_item>
                        <graph_item>
                           <sortorder>1</sortorder>
                           <color>2774A4</color>
                           <item>
                              <host>Template DB Oracle by ODBC</host>
                              <key>oracle.asm_total_size["{#DG_NAME}"]</key>
                           </item>
                        </graph_item>
                     </graph_items>
                  </graph_prototype>
               </graph_prototypes>
            </discovery_rule>
            <discovery_rule>
               <name>Database discovery</name>
               <type>ODBC</type>
               <key>db.odbc.discovery[db_list,"{$ORACLE.DSN}"]</key>
               <delay>1h</delay>
               <params>SELECT name as DBNAME, DECODE(CDB, 'YES', 'CDB', 'No-CDB') AS TYPE  FROM V$DATABASE;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <filter>
                  <evaltype>AND</evaltype>
                  <conditions>
                     <condition>
                        <macro>{#DBNAME}</macro>
                        <value>{$ORACLE.DBNAME.MATCHES}</value>
                        <formulaid>A</formulaid>
                     </condition>
                     <condition>
                        <macro>{#DBNAME}</macro>
                        <value>{$ORACLE.DBNAME.NOT_MATCHES}</value>
                        <operator>NOT_MATCHES_REGEX</operator>
                        <formulaid>B</formulaid>
                     </condition>
                  </conditions>
               </filter>
               <description>Scanning databases in DBMS.</description>
               <item_prototypes>
                  <item_prototype>
                     <name>Oracle Database '{#DBNAME}': Force logging</name>
                     <type>DEPENDENT</type>
                     <key>oracle.db_force_logging["{#DBNAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Indicates whether the database is under force logging mode (YES) or not (NO)</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#TYPE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle force log status</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DBNAME=='{#DBNAME}')].FORCE_LOGGING.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>15m</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_cdb_info,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle Database '{#DBNAME}': Log mode</name>
                     <type>DEPENDENT</type>
                     <key>oracle.db_log_mode["{#DBNAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Archive log mode, 0 - 'NOARCHIVELOG', 1 - 'ARCHIVELOG', 2 - 'MANUAL'</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#TYPE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle log mode</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DBNAME=='{#DBNAME}')].LOG_MODE.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>15m</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_cdb_info,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle Database '{#DBNAME}': Open status</name>
                     <type>DEPENDENT</type>
                     <key>oracle.db_open_mode["{#DBNAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>1 - 'MOUNTED', 2 - 'READ WRITE', 3 - 'READ ONLY', 4 - 'READ ONLY WITH APPLY' (A physical standby database is open in real-time query mode)</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#TYPE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle DB open status</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DBNAME=='{#DBNAME}')].OPEN_MODE.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>15m</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_cdb_info,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{last()}=1</expression>
                           <name>Oracle Database '{#DBNAME}': Open status in mount mode</name>
                           <priority>WARNING</priority>
                           <description>The Oracle DB has a MOUNTED state.</description>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{diff()}=1</expression>
                           <name>Oracle Database '{#DBNAME}': Open status has changed (new value received: {ITEM.VALUE})</name>
                           <priority>INFO</priority>
                           <description>Oracle DB open status has changed. Ack to close.</description>
                           <manual_close>YES</manual_close>
                           <dependencies>
                              <dependency>
                                 <name>Oracle Database '{#DBNAME}': Open status in mount mode</name>
                                 <expression>{Template DB Oracle by ODBC:oracle.db_open_mode["{#DBNAME}"].last()}=1</expression>
                              </dependency>
                           </dependencies>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle Database '{#DBNAME}': Role</name>
                     <type>DEPENDENT</type>
                     <key>oracle.db_role["{#DBNAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Current role of the database, 1 - 'SNAPSHOT STANDBY', 2 - 'LOGICAL STANDBY', 3 - 'PHYSICAL STANDBY', 4 - 'PRIMARY ', 5 -'FAR SYNC'</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#TYPE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle DB role</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DBNAME=='{#DBNAME}')].ROLE.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>15m</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_cdb_info,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{diff()}=1</expression>
                           <name>Oracle Database '{#DBNAME}': Role has changed (new value received: {ITEM.VALUE})</name>
                           <priority>INFO</priority>
                           <description>Oracle DB role has changed. Ack to close.</description>
                           <manual_close>YES</manual_close>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
               </item_prototypes>
               <host_prototypes/>
               <trigger_prototypes>
                  <trigger_prototype>
                     <expression>{Template DB Oracle by ODBC:oracle.db_force_logging["{#DBNAME}"].last()} = 0 and {Template DB Oracle by ODBC:oracle.db_log_mode["{#DBNAME}"].last()} = 1</expression>
                     <name>Oracle Database '{#DBNAME}': Force logging is deactivated for DB with active Archivelog</name>
                     <priority>WARNING</priority>
                     <description>Force Logging mode  - it is very important metric for Databases in 'ARCHIVELOG'. This feature allows to forcibly write all transactions to the REDO.</description>
                  </trigger_prototype>
               </trigger_prototypes>
            </discovery_rule>
            <discovery_rule>
               <name>PDB discovery</name>
               <type>ODBC</type>
               <key>db.odbc.discovery[pdb_list,"{$ORACLE.DSN}"]</key>
               <delay>1h</delay>
               <params>SELECT name as DBNAME FROM V$PDBS;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <filter>
                  <evaltype>AND</evaltype>
                  <conditions>
                     <condition>
                        <macro>{#DBNAME}</macro>
                        <value>{$ORACLE.DBNAME.MATCHES}</value>
                        <formulaid>A</formulaid>
                     </condition>
                     <condition>
                        <macro>{#DBNAME}</macro>
                        <value>{$ORACLE.DBNAME.NOT_MATCHES}</value>
                        <operator>NOT_MATCHES_REGEX</operator>
                        <formulaid>B</formulaid>
                     </condition>
                  </conditions>
               </filter>
               <description>Scanning PDB in DBMS.</description>
               <item_prototypes>
                  <item_prototype>
                     <name>Oracle Database '{#DBNAME}': Open status</name>
                     <type>DEPENDENT</type>
                     <key>oracle.pdb_open_mode["{#DBNAME}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>1 - 'MOUNTED', 2 - 'READ WRITE', 3 - 'READ ONLY', 4 - 'READ ONLY WITH APPLY' (A physical standby database is open in real-time query mode)</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle PDB</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle DB open status</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.DBNAME=='{#DBNAME}')].OPEN_MODE.first()</params>
                        </step>
                        <step>
                           <type>DISCARD_UNCHANGED_HEARTBEAT</type>
                           <params>15m</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[get_pdb_info,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{last()}=1</expression>
                           <name>Oracle Database '{#DBNAME}': Open status in mount mode</name>
                           <priority>WARNING</priority>
                           <description>The Oracle DB has a MOUNTED state.</description>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{diff()}=1</expression>
                           <name>Oracle Database '{#DBNAME}': Open status has changed (new value received: {ITEM.VALUE})</name>
                           <priority>INFO</priority>
                           <description>Oracle DB open status has changed. Ack to close.</description>
                           <manual_close>YES</manual_close>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
               </item_prototypes>
               <host_prototypes/>
            </discovery_rule>
            <discovery_rule>
               <name>Tablespace discovery</name>
               <type>ODBC</type>
               <key>db.odbc.discovery[tbsname,"{$ORACLE.DSN}"]</key>
               <delay>1h</delay>
               <params>SELECT
tablespace_name AS tablespace,
contents  FROM DBA_TABLESPACES;</params>
               <username>{$ORACLE.USER}</username>
               <password>{$ORACLE.PASSWORD}</password>
               <filter>
                  <evaltype>AND</evaltype>
                  <conditions>
                     <condition>
                        <macro>{#TABLESPACE}</macro>
                        <value>{$ORACLE.TABLESPACE.NAME.MATCHES}</value>
                        <formulaid>A</formulaid>
                     </condition>
                     <condition>
                        <macro>{#TABLESPACE}</macro>
                        <value>{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}</value>
                        <operator>NOT_MATCHES_REGEX</operator>
                        <formulaid>B</formulaid>
                     </condition>
                  </conditions>
               </filter>
               <description>Scanning tablespaces in DBMS.</description>
               <item_prototypes>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace allocated, bytes</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_alloc_bytes["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Currently allocated bytes for tablespace (sum of the current size of datafiles).</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].FILE_BYTES.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace free, bytes</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_free_bytes["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Free bytes of allocated space.</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].FREE_BYTES.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace MAX size, bytes</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_max_bytes["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Maximum size of tablespace.</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].MAX_BYTES.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Open status</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_status["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <description>Tablespace status. 1 - 'ONLINE' 2 - 'OFFLINE' 3- 'READ ONLY'</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <valuemap>
                        <name>Oracle tablespace status</name>
                     </valuemap>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].STATUS.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{last()}=2</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespase is OFFLINE</name>
                           <priority>WARNING</priority>
                           <description>The tablespase is in the offline state.</description>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{diff()}=1</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespace status has changed (new value received: {ITEM.VALUE})</name>
                           <priority>INFO</priority>
                           <description>Oracle tablespace status has changed. Ack to close.</description>
                           <manual_close>YES</manual_close>
                           <dependencies>
                              <dependency>
                                 <name>Oracle TBS '{#TABLESPACE}': Tablespase is OFFLINE</name>
                                 <expression>{Template DB Oracle by ODBC:oracle.tbs_status["{#TABLESPACE}"].last()}=2</expression>
                              </dependency>
                           </dependencies>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace used, bytes</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_used_bytes["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <units>B</units>
                     <description>Currently used bytes for tablespace (current size of datafiles-free space).</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].USED_BYTES.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace usage, percent</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_used_file_pct["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <value_type>FLOAT</value_type>
                     <units>%</units>
                     <description>Used bytes/Allocated bytes*100</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].USED_FILE_PCT.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.TBS.USED.PCT.MAX.WARN}</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.WARN}% for 5m).</name>
                           <priority>WARNING</priority>
                           <dependencies>
                              <dependency>
                                 <name>Oracle TBS '{#TABLESPACE}': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.HIGH}% for 5m).</name>
                                 <expression>{Template DB Oracle by ODBC:oracle.tbs_used_file_pct["{#TABLESPACE}"].min(5m)}&gt;{$ORACLE.TBS.USED.PCT.MAX.HIGH}</expression>
                              </dependency>
                           </dependencies>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.TBS.USED.PCT.MAX.HIGH}</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespace usage is too high (over {$ORACLE.TBS.USED.PCT.MAX.HIGH}% for 5m).</name>
                           <priority>HIGH</priority>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
                  <item_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace allocated, percent</name>
                     <type>DEPENDENT</type>
                     <key>oracle.tbs_used_pct["{#TABLESPACE}"]</key>
                     <delay>0</delay>
                     <history>7d</history>
                     <value_type>FLOAT</value_type>
                     <units>%</units>
                     <description>Allocated bytes/Max bytes*100</description>
                     <application_prototypes>
                        <application_prototype>
                           <name>Oracle {#CONTENTS} Tablespaces. {#TABLESPACE}</name>
                        </application_prototype>
                     </application_prototypes>
                     <preprocessing>
                        <step>
                           <type>JSONPATH</type>
                           <params>$[?(@.TABLESPACE=='{#TABLESPACE}')].USED_PCT_MAX.first()</params>
                        </step>
                     </preprocessing>
                     <master_item>
                        <key>db.odbc.get[tablespace_stats,"{$ORACLE.DSN}"]</key>
                     </master_item>
                     <trigger_prototypes>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.TBS.USED.PCT.MAX.WARN}</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high (over {$ORACLE.TBS.USED.PCT.MAX.WARN}% for 5m).</name>
                           <priority>WARNING</priority>
                           <dependencies>
                              <dependency>
                                 <name>Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.HIGH}% for 5m).</name>
                                 <expression>{Template DB Oracle by ODBC:oracle.tbs_used_pct["{#TABLESPACE}"].min(5m)}&gt;{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}</expression>
                              </dependency>
                           </dependencies>
                        </trigger_prototype>
                        <trigger_prototype>
                           <expression>{min(5m)}&gt;{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}</expression>
                           <name>Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high (over {$ORACLE.TBS.UTIL.PCT.MAX.HIGH}% for 5m).</name>
                           <priority>HIGH</priority>
                        </trigger_prototype>
                     </trigger_prototypes>
                  </item_prototype>
               </item_prototypes>
               <host_prototypes/>
               <graph_prototypes>
                  <graph_prototype>
                     <name>Oracle TBS '{#TABLESPACE}': Tablespace '{#TABLESPACE}'</name>
                     <graph_items>
                        <graph_item>
                           <color>1A7C11</color>
                           <item>
                              <host>Template DB Oracle by ODBC</host>
                              <key>oracle.tbs_alloc_bytes["{#TABLESPACE}"]</key>
                           </item>
                        </graph_item>
                        <graph_item>
                           <sortorder>1</sortorder>
                           <color>2774A4</color>
                           <item>
                              <host>Template DB Oracle by ODBC</host>
                              <key>oracle.tbs_max_bytes["{#TABLESPACE}"]</key>
                           </item>
                        </graph_item>
                        <graph_item>
                           <sortorder>2</sortorder>
                           <color>F63100</color>
                           <item>
                              <host>Template DB Oracle by ODBC</host>
                              <key>oracle.tbs_used_bytes["{#TABLESPACE}"]</key>
                           </item>
                        </graph_item>
                     </graph_items>
                  </graph_prototype>
               </graph_prototypes>
            </discovery_rule>
         </discovery_rules>
         <macros>
            <macro>
               <macro>{$ORACLE.ASM.USED.PCT.MAX.HIGH}</macro>
               <value>95</value>
               <description>Maximum percentage of used ASM disk group for high trigger expression.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.ASM.USED.PCT.MAX.WARN}</macro>
               <value>90</value>
               <description>Maximum percentage of used ASM disk group for warning trigger expression.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.CONCURRENCY.MAX.WARN}</macro>
               <value>80</value>
               <description>Maximum percentage of sessions concurrency usage for trigger expression.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.DB.FILE.MAX.WARN}</macro>
               <value>80</value>
               <description>Maximum percentage of database files for trigger expression.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.DBNAME.MATCHES}</macro>
               <value>.*</value>
               <description>This macro is used in database discovery. It can be overridden on a host or linked template level.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.DBNAME.NOT_MATCHES}</macro>
               <value>PDB\$SEED</value>
               <description>This macro is used in database discovery. It can be overridden on a host or linked template level.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.DSN}</macro>
               <value>&lt;Put your DSN here&gt;</value>
               <description>System data source name</description>
            </macro>
            <macro>
               <macro>{$ORACLE.EXPIRE.PASSWORD.MIN.WARN}</macro>
               <value>7</value>
               <description>Number of days of warning before password expires (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.PASSWORD}</macro>
               <value>&lt;Put your password here&gt;</value>
               <description>Oracle user password.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.PGA.USE.MAX.WARN}</macro>
               <value>90</value>
               <description>Maximum percentage of PGA usage alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.PORT}</macro>
               <value>1521</value>
               <description>Oracle DB TCP port.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.PROCESSES.MAX.WARN}</macro>
               <value>80</value>
               <description>Maximum percentage of active processes alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.REDO.MIN.WARN}</macro>
               <value>3</value>
               <description>Minimum number of REDO logs alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.SESSION.LOCK.MAX.TIME}</macro>
               <value>600</value>
               <description>Maximum session lock duration in seconds for count the session as a prolongely locked query.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.SESSION.LONG.LOCK.MAX.WARN}</macro>
               <value>3</value>
               <description>Maximum number of the prolongely locked sessions alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.SESSIONS.LOCK.MAX.WARN}</macro>
               <value>20</value>
               <description>Maximum percentage of locked sessions alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.SESSIONS.MAX.WARN}</macro>
               <value>80</value>
               <description>Maximum percentage of active sessions alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.SHARED.FREE.MIN.WARN}</macro>
               <value>5</value>
               <description>Minimum percentage of free shared pool alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TABLESPACE.NAME.MATCHES}</macro>
               <value>.*</value>
               <description>This macro is used in tablespace discovery. It can be overridden on a host or linked template level.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}</macro>
               <value>CHANGE_IF_NEEDED</value>
               <description>This macro is used in tablespace discovery. It can be overridden on a host or linked template level.</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TBS.USED.PCT.MAX.HIGH}</macro>
               <value>95</value>
               <description>Maximum percentage of used (Used bytes/Allocated bytes) tablespace high severity alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TBS.USED.PCT.MAX.WARN}</macro>
               <value>90</value>
               <description>Maximum percentage of used (Used bytes/Allocated bytes) tablespace warning severity alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}</macro>
               <value>90</value>
               <description>Maximum percentage of utilization (Allocated bytes/Max bytes) tablespace high severity alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.TBS.UTIL.PCT.MAX.WARN}</macro>
               <value>80</value>
               <description>Maximum percentage of utilization (Allocated bytes/Max bytes) tablespace warning severity alert threshold (for trigger expression).</description>
            </macro>
            <macro>
               <macro>{$ORACLE.USER}</macro>
               <value>&lt;Put your username here&gt;</value>
               <description>Oracle username.</description>
            </macro>
         </macros>
      </template>
   </templates>
   <triggers>
      <trigger>
         <expression>{Template DB Oracle by ODBC:net.tcp.service[tcp,{HOST.CONN},{$ORACLE.PORT}].max(#3)}=0  and {Template DB Oracle by ODBC:proc.num[,,,"tnslsnr LISTENER"].max(#3)}&gt;0</expression>
         <name>Oracle: Port {$ORACLE.PORT} is unavailable</name>
         <priority>DISASTER</priority>
         <description>The TCP port of the Oracle Server service is currently unavailable.</description>
      </trigger>
      <trigger>
         <expression>{Template DB Oracle by ODBC:oracle.processes_count.min(5m)} * 100 / {Template DB Oracle by ODBC:oracle.processes_limit.last()} &gt; {$ORACLE.PROCESSES.MAX.WARN}</expression>
         <name>Oracle: Too many active processes (over {$ORACLE.PROCESSES.MAX.WARN}% for 5 min)</name>
         <priority>WARNING</priority>
         <description>Active processes are using more than {$ORACLE.PROCESSES.MAX.WARN}% of the available number of processes.</description>
      </trigger>
      <trigger>
         <expression>{Template DB Oracle by ODBC:oracle.session_count.min(5m)} * 100 / {Template DB Oracle by ODBC:oracle.session_limit.last()} &gt; {$ORACLE.SESSIONS.MAX.WARN}</expression>
         <name>Oracle: Too many active sessions (over {$ORACLE.SESSIONS.MAX.WARN}% for 5 min)</name>
         <priority>WARNING</priority>
         <description>Active sessions are using more than {$ORACLE.SESSIONS.MAX.WARN}% of the available sessions.</description>
      </trigger>
      <trigger>
         <expression>{Template DB Oracle by ODBC:oracle.db_files_count.min(5m)} * 100 / {Template DB Oracle by ODBC:oracle.db_files_limit.last()} &gt; {$ORACLE.DB.FILE.MAX.WARN}</expression>
         <name>Oracle: Too many database files (over {$ORACLE.DB.FILE.MAX.WARN}% for 5 min)</name>
         <priority>WARNING</priority>
         <description>Number of datafiles is higher than {$ORACLE.DB.FILE.MAX.WARN}% of the available datafile files limit.</description>
      </trigger>
      <trigger>
         <expression>{Template DB Oracle by ODBC:oracle.total_pga_used.min(5m)} * 100 / {Template DB Oracle by ODBC:oracle.pga_target.last()} &gt; {$ORACLE.PGA.USE.MAX.WARN}</expression>
         <name>Oracle: Total PGA inuse is too high (over {$ORACLE.PGA.USE.MAX.WARN}% for 5 min)</name>
         <priority>WARNING</priority>
         <description>Total PGA in use is more than {$ORACLE.PGA.USE.MAX.WARN}% of PGA_AGGREGATE_TARGET.</description>
      </trigger>
   </triggers>
   <graphs>
      <graph>
         <name>Oracle: Datafiles</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.db_files_count</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.db_files_limit</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: PGA</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.total_pga_used</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.pga_target</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>2</sortorder>
               <color>F63100</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.total_pga_allocated</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: Physical Read\Write Rate</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.physical_writes_rate</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.physical_reads_rate</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: Physical Read\Write Rate, Bytes</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.physical_write_bytes_rate</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.physical_read_bytes_rate</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: Processes</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.processes_count</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.processes_limit</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: Sessions</name>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.session_count</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.session_active_background</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>2</sortorder>
               <color>F63100</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.session_inactive_user</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>3</sortorder>
               <color>A54F10</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.session_active_user</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>4</sortorder>
               <color>FC6EA3</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.session_limit</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
      <graph>
         <name>Oracle: SGA Memory Usage</name>
         <type>STACKED</type>
         <graph_items>
            <graph_item>
               <color>1A7C11</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_java_pool</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>1</sortorder>
               <color>2774A4</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_large_pool</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>2</sortorder>
               <color>F63100</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_shared_pool</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>3</sortorder>
               <color>A54F10</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_log_buffer</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>4</sortorder>
               <color>FC6EA3</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_fixed</key>
               </item>
            </graph_item>
            <graph_item>
               <sortorder>5</sortorder>
               <color>6C59DC</color>
               <item>
                  <host>Template DB Oracle by ODBC</host>
                  <key>oracle.sga_buffer_cache</key>
               </item>
            </graph_item>
         </graph_items>
      </graph>
   </graphs>
   <value_maps>
      <value_map>
         <name>Service state</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Down</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Up</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle DB open status</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Mounted</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Read Only</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Read-Write</newvalue>
            </mapping>
            <mapping>
               <value>4</value>
               <newvalue>Read Only with Apply</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle DB role</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Snapshot standby</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Logical standby</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Physical standby</newvalue>
            </mapping>
            <mapping>
               <value>4</value>
               <newvalue>Primary</newvalue>
            </mapping>
            <mapping>
               <value>5</value>
               <newvalue>Far sync</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle instance status</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Started</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Mounted</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Open</newvalue>
            </mapping>
            <mapping>
               <value>4</value>
               <newvalue>Open migrate</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle instance role</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Primary</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Secondary</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle archiver state</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Stopped</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Started</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Failed</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle tablespace status</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Online</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Offline</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Read-Only</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle Archivelog status</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>Unknown</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Error</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>Deferred</newvalue>
            </mapping>
            <mapping>
               <value>3</value>
               <newvalue>Valid</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle force log status</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>No</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>Yes</newvalue>
            </mapping>
         </mappings>
      </value_map>
      <value_map>
         <name>Oracle log mode</name>
         <mappings>
            <mapping>
               <value>0</value>
               <newvalue>NOARCHIVELOG</newvalue>
            </mapping>
            <mapping>
               <value>1</value>
               <newvalue>ARCHIVELOG</newvalue>
            </mapping>
            <mapping>
               <value>2</value>
               <newvalue>MANUAL</newvalue>
            </mapping>
         </mappings>
      </value_map>
   </value_maps>
</zabbix_export>
