Oracle

Oracle Database is a multi-model database management system produced and marketed by Oracle Corporation. It is a database commonly used for running online transaction processing (OLTP), data warehousing (DW) and mixed (OLTP & DW) database workloads.

Available solutions




This template is for Zabbix version: 6.4
Also available for: 6.2 6.0 5.4 5.0

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/oracle_agent2?at=release/6.4

Oracle by Zabbix agent 2

Overview

The template is developed to monitor a single DBMS Oracle Database instance with Zabbix agent 2.

Requirements

Zabbix version: 6.4 and higher.

Tested versions

This template has been tested on:

  • Oracle Database 12c2, 18c, 19c

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

  1. Setup and configure Zabbix agent 2 compiled with the Oracle monitoring plugin. See the setup instructions for Oracle Database plugin.

  2. Set the {$ORACLE.CONNSTRING} macro value using either <protocol(host:port)> or named session.

  3. If you want to override parameters from Zabbix agent configuration file, set the user name, password and service name in host macros ({$ORACLE.USER}, {$ORACLE.PASSWORD}, and {$ORACLE.SERVICE}).

    User can contain sysdba, sysoper, sysasm privileges. It must be used with as as a separator e.g user as sysdba, privilege can be upper or lowercase, and must be at the end of username string.

Test availability: zabbix_get -s oracle-host -k oracle.ping["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Macros used

Name Description Default
{$ORACLE.USER}

Oracle username.

zabbix
{$ORACLE.PASSWORD}

The Oracle user's password.

zabbix_password
{$ORACLE.CONNSTRING}

Oracle URI or a session name.

tcp://localhost:1521
{$ORACLE.SERVICE}

Oracle Service Name.

ORA
{$ORACLE.DBNAME.MATCHES}

This macro is used in discovery of the database. It can be overridden on host level or its linked template level.

.*
{$ORACLE.DBNAME.NOT_MATCHES}

This macro is used in discovery of the database. It can be overridden on host level or its linked template level.

PDB\$SEED
{$ORACLE.TABLESPACE.NAME.MATCHES}

This macro is used in tablespace discovery. It can be overridden on host level or its linked template level.

.*
{$ORACLE.TABLESPACE.NAME.NOT_MATCHES}

This macro is used in tablespace discovery. It can be overridden on host level or its linked template level.

CHANGE_IF_NEEDED
{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN}

Warning severity alert threshold for the maximum percentage of tablespace usage from maximum tablespace size (used bytes/max bytes) for a trigger expression.

90
{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH}

High severity alert threshold for the maximum percentage of tablespace usage from maximum tablespace size (used bytes/max bytes) for a trigger expression.

95
{$ORACLE.TBS.USED.PCT.MAX.WARN}

Warning severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for a trigger expression.

90
{$ORACLE.TBS.USED.PCT.MAX.HIGH}

High severity alert threshold for the maximum percentage of tablespace usage (used bytes/allocated bytes) for a trigger expression.

95
{$ORACLE.TBS.UTIL.PCT.MAX.WARN}

Warning severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for a trigger expression.

80
{$ORACLE.TBS.UTIL.PCT.MAX.HIGH}

High severity alert threshold for the maximum percentage of tablespace utilization (allocated bytes/max bytes) for a trigger expression.

90
{$ORACLE.PROCESSES.MAX.WARN}

Alert threshold for the maximum percentage of active processes for a trigger expression.

80
{$ORACLE.SESSIONS.MAX.WARN}

Alert threshold for the maximum percentage of active sessions for a trigger expression.

80
{$ORACLE.DB.FILE.MAX.WARN}

The maximum percentage of used database files for a trigger expression.

80
{$ORACLE.PGA.USE.MAX.WARN}

The maximum percentage of the Program Global Area (PGA) usage that alerts the threshold for a trigger expression.

90
{$ORACLE.SESSIONS.LOCK.MAX.WARN}

Alert threshold for the maximum percentage of locked sessions for a trigger expression.

20
{$ORACLE.SESSION.LOCK.MAX.TIME}

The maximum duration of the session lock in seconds to count the session as a prolongedly locked query.

600
{$ORACLE.SESSION.LONG.LOCK.MAX.WARN}

Alert threshold for the maximum number of the prolongedly locked sessions for a trigger expression.

3
{$ORACLE.CONCURRENCY.MAX.WARN}

The maximum percentage of sessions concurrency usage for a trigger expression.

80
{$ORACLE.REDO.MIN.WARN}

Alert threshold for the minimum number of REDO logs for a trigger expression.

3
{$ORACLE.SHARED.FREE.MIN.WARN}

Alert threshold for the minimum percentage of free shared pool for a trigger expression.

5
{$ORACLE.EXPIRE.PASSWORD.MIN.WARN}

The number of warning days before the password expires for a trigger expression.

7
{$ORACLE.ASM.USED.PCT.MAX.WARN}

The maximum percentage of used ASM disk group for a warning trigger expression.

90
{$ORACLE.ASM.USED.PCT.MAX.HIGH}

The maximum percentage of used Automatic Storage Management (ASM) disk group for a high trigger expression.

95

Items

Name Description Type Key and additional info
Oracle: Ping

Test the connection to Oracle Database state.

Zabbix agent oracle.ping["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Preprocessing

  • Discard unchanged with heartbeat: 10m

Oracle: Get instance state

The item gets its state of the current instance.

Zabbix agent oracle.instance.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: Version

The Oracle Server version.

Dependent item oracle.version

Preprocessing

  • JSON Path: $.version

  • Discard unchanged with heartbeat: 1d

Oracle: Uptime

The Oracle instance uptime expressed in seconds.

Dependent item oracle.uptime

Preprocessing

  • JSON Path: $.uptime

Oracle: Instance status

The status of the instance.

Dependent item oracle.instance_status

Preprocessing

  • JSON Path: $.status

Oracle: Archiver state

The status of automatic archiving.

Dependent item oracle.archiver_state

Preprocessing

  • JSON Path: $..archiver.first()

Oracle: Instance name

The name of an instance.

Dependent item oracle.instance_name

Preprocessing

  • JSON Path: $.instance

Oracle: Instance hostname

The name of the host machine.

Dependent item oracle.instance_hostname

Preprocessing

  • JSON Path: $..hostname.first()

Oracle: Instance role

It indicates whether the instance is an active instance or an inactive secondary instance.

Dependent item oracle.instance.role

Preprocessing

  • JSON Path: $.role

Oracle: Get system metrics

The item gets the values of the system metrics.

Zabbix agent oracle.sys.metrics["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: Buffer cache hit ratio

The ratio of buffer cache hits ((LogRead - PhyRead)/LogRead).

Dependent item oracle.buffer_cache_hit_ratio

Preprocessing

  • JSON Path: $.['Buffer Cache Hit Ratio']

Oracle: Cursor cache hit ratio

The ratio of cursor cache hits (CursorCacheHit/SoftParse).

Dependent item oracle.cursor_cache_hit_ratio

Preprocessing

  • JSON Path: $.['Cursor Cache Hit Ratio']

Oracle: Library cache hit ratio

The ratio of library cache hits (Hits/Pins).

Dependent item oracle.library_cache_hit_ratio

Preprocessing

  • JSON Path: $.['Library Cache Hit Ratio']

Oracle: Shared pool free %

Free memory of a shared pool expressed in %.

Dependent item oracle.shared_pool_free

Preprocessing

  • JSON Path: $.['Shared Pool Free %']

Oracle: Physical reads per second

Reads per second.

Dependent item oracle.physical_reads_rate

Preprocessing

  • JSON Path: $.['Physical Reads Per Sec']

Oracle: Physical writes per second

Writes per second.

Dependent item oracle.physical_writes_rate

Preprocessing

  • JSON Path: $.['Physical Writes Per Sec']

Oracle: Physical reads bytes per second

Read bytes per second.

Dependent item oracle.physical_read_bytes_rate

Preprocessing

  • JSON Path: $.['Physical Read Bytes Per Sec']

Oracle: Physical writes bytes per second

Write bytes per second.

Dependent item oracle.physical_write_bytes_rate

Preprocessing

  • JSON Path: $.['Physical Write Bytes Per Sec']

Oracle: Enqueue timeouts per second

Enqueue timeouts per second.

Dependent item oracle.enqueue_timeouts_rate

Preprocessing

  • JSON Path: $.['Enqueue Timeouts Per Sec']

Oracle: GC CR block received per second

The global cache (GC) and the consistent read (CR) block received per second.

Dependent item oracle.gc_cr_block_received_rate

Preprocessing

  • JSON Path: $.['GC CR Block Received Per Second']

Oracle: Global cache blocks corrupted

The number of blocks that encountered corruption or checksum failure during the interconnect.

Dependent item oracle.cache_blocks_corrupt

Preprocessing

  • JSON Path: $.['Global Cache Blocks Corrupted']

Oracle: Global cache blocks lost

The number of lost global cache blocks.

Dependent item oracle.cache_blocks_lost

Preprocessing

  • JSON Path: $.['Global Cache Blocks Lost']

Oracle: Logons per second

The number of logon attempts.

Dependent item oracle.logons_rate

Preprocessing

  • JSON Path: $.['Logons Per Sec']

Oracle: Average active sessions

The average active sessions at a point in time. The number of sessions that are either working or waiting.

Dependent item oracle.active_sessions

Preprocessing

  • JSON Path: $.['Average Active Sessions']

Oracle: Active serial sessions

The number of active serial sessions.

Dependent item oracle.active_serial_sessions

Preprocessing

  • JSON Path: $.['Active Serial Sessions']

Oracle: Active parallel sessions

The number of active parallel sessions.

Dependent item oracle.active_parallel_sessions

Preprocessing

  • JSON Path: $.['Active Parallel Sessions']

Oracle: Long table scans per second

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 five blocks.

Dependent item oracle.long_table_scans_rate

Preprocessing

  • JSON Path: $.['Long Table Scans Per Sec']

Oracle: SQL service response time

The Structured Query Language (SQL) service response time expressed in seconds.

Dependent item oracle.service_response_time

Preprocessing

  • JSON Path: $.['SQL Service Response Time']

  • Custom multiplier: 0.01

Oracle: User rollbacks per second

The number of times that users manually issue the ROLLBACK statement or an error occurred during the users' transactions.

Dependent item oracle.user_rollbacks_rate

Preprocessing

  • JSON Path: $.['User Rollbacks Per Sec']

Oracle: Total sorts per user call

The total sorts per user call.

Dependent item oracle.sorts_per_user_call

Preprocessing

  • JSON Path: $.['Total Sorts Per User Call']

Oracle: Rows per sort

The average number of rows per sort for all types of sorts performed.

Dependent item oracle.rows_per_sort

Preprocessing

  • JSON Path: $.['Rows Per Sort']

Oracle: Disk sort per second

The number of sorts going to disk per second.

Dependent item oracle.disk_sorts

Preprocessing

  • JSON Path: $.['Disk Sort Per Sec']

Oracle: Memory sorts ratio

The percentage of sorts (from ORDER BY clauses or index building) that are done to disk vs in-memory.

Dependent item oracle.memory_sorts_ratio

Preprocessing

  • JSON Path: $.['Memory Sorts Ratio']

Oracle: Database wait time ratio

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, etc.

Dependent item oracle.database_wait_time_ratio

Preprocessing

  • JSON Path: $.['Database Wait Time Ratio']

Oracle: Database CPU time ratio

It is calculated by dividing the total CPU (used by the database) by the Oracle time model statistic DB time.

Dependent item oracle.database_cpu_time_ratio

Preprocessing

  • JSON Path: $.['Database CPU Time Ratio']

Oracle: Temp space used

Used temporary space.

Dependent item oracle.temp_space_used

Preprocessing

  • JSON Path: $.['Temp Space Used']

Oracle: Get system parameters

Get a set of system parameter values.

Zabbix agent oracle.sys.params["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: Sessions limit

The user and system sessions.

Dependent item oracle.session_limit

Preprocessing

  • JSON Path: $.sessions

Oracle: Datafiles limit

The maximum allowable number of datafiles.

Dependent item oracle.db_files_limit

Preprocessing

  • JSON Path: $.db_files

Oracle: Processes limit

The maximum number of user processes.

Dependent item oracle.processes_limit

Preprocessing

  • JSON Path: $.processes

Oracle: Get sessions stats

Get sessions statistics. {$ORACLE.SESSION.LOCK.MAX.TIME} -- maximum seconds in the current wait condition for counting long time locked sessions. Default: 600 seconds.

Zabbix agent oracle.sessions.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{$ORACLE.SESSION.LOCK.MAX.TIME}"]
Oracle: Session count

The count of sessions.

Dependent item oracle.session_count

Preprocessing

  • JSON Path: $.total

Oracle: Active user sessions

The number of active user sessions.

Dependent item oracle.session_active_user

Preprocessing

  • JSON Path: $.active_user

    ⛔️Custom on fail: Set value to: 0

Oracle: Active background sessions

The number of active background sessions.

Dependent item oracle.session_active_background

Preprocessing

  • JSON Path: $.active_background

    ⛔️Custom on fail: Set value to: 0

Oracle: Inactive user sessions

The number of inactive user sessions.

Dependent item oracle.session_inactive_user

Preprocessing

  • JSON Path: $.inactive_user

    ⛔️Custom on fail: Set value to: 0

Oracle: Sessions lock rate

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.

Dependent item oracle.session_lock_rate

Preprocessing

  • JSON Path: $.lock_rate

Oracle: Sessions locked over {$ORACLE.SESSION.LOCK.MAX.TIME}s

The count of the prolongedly locked sessions. (You can change the duration of maximum session lock in seconds for a query by {$ORACLE.SESSION.LOCK.MAX.TIME} macro. Default is 600 sec).

Dependent item oracle.session_long_time_locked

Preprocessing

  • JSON Path: $.long_time_locked

Oracle: Sessions concurrency

The percentage of concurrency. Concurrency is a DB behavior when different transactions request to change the same resource. In the case of modifying data transactions, it sequentially temporarily blocks the right to change the data, the rest of the transactions are waiting for the access. In the case when the access for the resource is locked for a long time, then the concurrency grows (like the transaction queue) and this often has an extremely negative impact on the performance. A high contention value does not indicate the root cause of the problem but is a signal to search for it.

Dependent item oracle.session_concurrency_rate

Preprocessing

  • JSON Path: $.concurrency_rate

Oracle: Get PGA stats

Get PGA statistics.

Zabbix agent oracle.pga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: PGA, Total inuse

It indicates how much the Program Global Area (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).

Dependent item oracle.total_pga_used

Preprocessing

  • JSON Path: $.['total PGA inuse']

Oracle: PGA, Aggregate target parameter

The current value of the PGA_AGGREGATE_TARGET initialization parameter. If this parameter is not set, then its value is 0 and automatic management of the PGA memory is disabled.

Dependent item oracle.pga_target

Preprocessing

  • JSON Path: $.['aggregate PGA target parameter']

Oracle: PGA, Total allocated

The current amount of the 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.

Dependent item oracle.total_pga_allocated

Preprocessing

  • JSON Path: $.['total PGA allocated']

Oracle: PGA, Total freeable

The number of bytes of the PGA memory in all processes that could be freed back to the operating system.

Dependent item oracle.total_pga_freeable

Preprocessing

  • JSON Path: $.['total freeable PGA memory']

Oracle: PGA, Global memory bound

The maximum size of work area executed in automatic mode.

Dependent item oracle.pga_global_bound

Preprocessing

  • JSON Path: $.['global memory bound']

Oracle: Get FRA stats

Get FRA statistics.

Zabbix agent oracle.fra.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: FRA, Space limit

The maximum amount of disk space (in bytes) that the database can use for the Fast Recovery Area (FRA).

Dependent item oracle.fra_space_limit

Preprocessing

  • JSON Path: $.space_limit

Oracle: FRA, Used space

The amount of disk space (in bytes) used by FRA files created in the current and all the previous FRAs.

Dependent item oracle.fra_space_used

Preprocessing

  • JSON Path: $.space_used

Oracle: FRA, Space reclaimable

The total amount of disk space (in bytes) that can be created by deleting obsolete, redundant, and other low priority files from the FRA.

Dependent item oracle.fra_space_reclaimable

Preprocessing

  • JSON Path: $.space_reclaimable

Oracle: FRA, Number of files

The number of files in the FRA.

Dependent item oracle.fra_number_of_files

Preprocessing

  • JSON Path: $.number_of_files

Oracle: FRA, Usable space in % Dependent item oracle.fra_usable_pct

Preprocessing

  • JSON Path: $.usable_pct

Oracle: FRA, Number of restore points Dependent item oracle.fra_restore_point

Preprocessing

  • JSON Path: $.restore_point

Oracle: Get SGA stats

Get SGA statistics.

Zabbix agent oracle.sga.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]
Oracle: SGA, java pool

The memory is allocated from the Java pool.

Dependent item oracle.sga_java_pool

Preprocessing

  • JSON Path: $.java_pool

Oracle: SGA, large pool

The memory is allocated from a large pool.

Dependent item oracle.sga_large_pool

Preprocessing

  • JSON Path: $.large_pool

Oracle: SGA, shared pool

The memory is allocated from a shared pool.

Dependent item oracle.sga_shared_pool

Preprocessing

  • JSON Path: $.shared_pool

Oracle: SGA, log buffer

The number of bytes allocated for the redo log buffer.

Dependent item oracle.sga_log_buffer

Preprocessing

  • JSON Path: $.log_buffer

Oracle: SGA, fixed

The fixed System Global Area (SGA) is an internal housekeeping area.

Dependent item oracle.sga_fixed

Preprocessing

  • JSON Path: $.fixed_sga

Oracle: SGA, buffer cache

The size of standard block cache.

Dependent item oracle.sga_buffer_cache

Preprocessing

  • JSON Path: $.buffer_cache

Oracle: User's expire password

The number of days before the password of Zabbix account expires.

Zabbix agent oracle.user.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Preprocessing

  • JSON Path: $.exp_passwd_days_before

Oracle: Redo logs available to switch

The number of inactive/unused redo logs available for log switching.

Zabbix agent oracle.redolog.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Preprocessing

  • JSON Path: $.available

Oracle: Number of processes Zabbix agent oracle.proc.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Preprocessing

  • JSON Path: $.proc_num

Oracle: Datafiles count

The current number of datafiles.

Zabbix agent oracle.datafiles.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Preprocessing

  • JSON Path: $.datafile_num

Triggers

Name Description Expression Severity Dependencies and additional info
Oracle: Connection to database is unavailable

Connection to Oracle Database is currently unavailable.

last(/Oracle by Zabbix agent 2/oracle.ping["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"])=0 Disaster
Oracle: Version has changed

The Oracle DB version has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.version,#1)<>last(/Oracle by Zabbix agent 2/oracle.version,#2) and length(last(/Oracle by Zabbix agent 2/oracle.version))>0 Info Manual close: Yes
Oracle: Failed to fetch info data

Zabbix has not received any data for the items for the last 5 minutes. The database might be unavailable for connecting.

nodata(/Oracle by Zabbix agent 2/oracle.uptime,30m)=1 Info
Oracle: Host has been restarted

Uptime is less than 10 minutes.

last(/Oracle by Zabbix agent 2/oracle.uptime)<10m Info Manual close: Yes
Oracle: Instance name has changed

Oracle DB Instance name has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.instance_name,#1)<>last(/Oracle by Zabbix agent 2/oracle.instance_name,#2) and length(last(/Oracle by Zabbix agent 2/oracle.instance_name))>0 Info Manual close: Yes
Oracle: Instance hostname has changed

Oracle DB Instance hostname has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.instance_hostname,#1)<>last(/Oracle by Zabbix agent 2/oracle.instance_hostname,#2) and length(last(/Oracle by Zabbix agent 2/oracle.instance_hostname))>0 Info Manual close: Yes
Oracle: Shared pool free is too low

The free memory percent of the shared pool has been less than {$ORACLE.SHARED.FREE.MIN.WARN}% for the last 5 minutes.

max(/Oracle by Zabbix agent 2/oracle.shared_pool_free,5m)<{$ORACLE.SHARED.FREE.MIN.WARN} Warning
Oracle: Too many active sessions

Active sessions are using more than {$ORACLE.SESSIONS.MAX.WARN}% of the available sessions.

min(/Oracle by Zabbix agent 2/oracle.session_count,5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.session_limit) > {$ORACLE.SESSIONS.MAX.WARN} Warning
Oracle: Too many locked sessions

The number of locked sessions exceeds {$ORACLE.SESSIONS.LOCK.MAX.WARN}% of the running sessions.

min(/Oracle by Zabbix agent 2/oracle.session_lock_rate,5m) > {$ORACLE.SESSIONS.LOCK.MAX.WARN} Warning
Oracle: Too many sessions locked

The number of locked sessions exceeding {$ORACLE.SESSION.LOCK.MAX.TIME} seconds is too high. Long-term locks can negatively affect the database performance. Therefore, if they are detected, you should first find the most difficult queries from the database point of view and then analyze possible resource leaks.

min(/Oracle by Zabbix agent 2/oracle.session_long_time_locked,5m) > {$ORACLE.SESSION.LONG.LOCK.MAX.WARN} Warning
Oracle: Too high database concurrency

The concurrency rate exceeds {$ORACLE.CONCURRENCY.MAX.WARN}%. A high contention value does not indicate the root cause of the problem, but it is a signal to search for it. In the case of high competition, the analysis of resource consumption should be carried out. Which are the most "heavy" queries made in the database? Possibly, also session tracing. All this will help to determine the root cause and possible optimization points both in the database configuration and in the logic of building queries of the application itself.

min(/Oracle by Zabbix agent 2/oracle.session_concurrency_rate,5m) > {$ORACLE.CONCURRENCY.MAX.WARN} Warning
Oracle: Total PGA inuse is too high

The total PGA in use is more than {$ORACLE.PGA.USE.MAX.WARN}% of PGA_AGGREGATE_TARGET.

min(/Oracle by Zabbix agent 2/oracle.total_pga_used,5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.pga_target) > {$ORACLE.PGA.USE.MAX.WARN} Warning
Oracle: Zabbix account will expire soon

The password for Zabbix user in the database expires soon.

last(/Oracle by Zabbix agent 2/oracle.user.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]) < {$ORACLE.EXPIRE.PASSWORD.MIN.WARN} Warning
Oracle: Number of REDO logs available for switching is too low

The number of inactive/unused REDOs available for log switching is low (database down risk).

max(/Oracle by Zabbix agent 2/oracle.redolog.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) < {$ORACLE.REDO.MIN.WARN} Warning
Oracle: Too many active processes

Active processes are using more than {$ORACLE.PROCESSES.MAX.WARN}% of the available number of processes.

min(/Oracle by Zabbix agent 2/oracle.proc.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.processes_limit) > {$ORACLE.PROCESSES.MAX.WARN} Warning
Oracle: Too many database files

The number of datafiles is higher than {$ORACLE.DB.FILE.MAX.WARN}% of the available datafiles limit.

min(/Oracle by Zabbix agent 2/oracle.datafiles.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"],5m) * 100 / last(/Oracle by Zabbix agent 2/oracle.db_files_limit) > {$ORACLE.DB.FILE.MAX.WARN} Warning

LLD rule Database discovery

Name Description Type Key and additional info
Database discovery

Scanning databases in the database management system (DBMS).

Zabbix agent oracle.db.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Item prototypes for Database discovery

Name Description Type Key and additional info
Oracle Database '{#DBNAME}': Get CDB and No-CDB info

It gets the information about the container database (CDB) and non-CDB database on an instance.

Zabbix agent oracle.cdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]
Oracle Database '{#DBNAME}': Open status

1 - 'MOUNTED';

2 - 'READ WRITE';

3 - 'READ ONLY';

4 - 'READ ONLY WITH APPLY' (a physical standby database is open in real-time query mode).

Dependent item oracle.db_open_mode["{#DBNAME}"]

Preprocessing

  • JSON Path: $..{#DBNAME}.open_mode.first()

  • Discard unchanged with heartbeat: 15m

Oracle Database '{#DBNAME}': Role

The current role of the database where:

1 - 'SNAPSHOT STANDBY';

2 - 'LOGICAL STANDBY';

3 - 'PHYSICAL STANDBY';

4 - 'PRIMARY ';

5 - 'FAR SYNC'.

Dependent item oracle.db_role["{#DBNAME}"]

Preprocessing

  • JSON Path: $..{#DBNAME}.role.first()

  • Discard unchanged with heartbeat: 15m

Oracle Database '{#DBNAME}': Log mode

The archive log mode where:

0 - 'NOARCHIVELOG';

1 - 'ARCHIVELOG';

2 - 'MANUAL'.

Dependent item oracle.db_log_mode["{#DBNAME}"]

Preprocessing

  • JSON Path: $..{#DBNAME}.log_mode.first()

  • Discard unchanged with heartbeat: 15m

Oracle Database '{#DBNAME}': Force logging

It indicates whether the database is under force logging mode 'YES' or 'NO'.

Dependent item oracle.db_force_logging["{#DBNAME}"]

Preprocessing

  • JSON Path: $..{#DBNAME}.force_logging.first()

  • Discard unchanged with heartbeat: 15m

Trigger prototypes for Database discovery

Name Description Expression Severity Dependencies and additional info
Oracle Database '{#DBNAME}': Open status in mount mode

The Oracle DB is in a mounted state.

last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"])=1 Warning
Oracle Database '{#DBNAME}': Open status has changed

The Oracle DB open status has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.db_open_mode["{#DBNAME}"],#2) Info Manual close: Yes
Depends on:
  • Oracle Database '{#DBNAME}': Open status in mount mode
Oracle Database '{#DBNAME}': Role has changed

The Oracle DB role has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.db_role["{#DBNAME}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.db_role["{#DBNAME}"],#2) Info Manual close: Yes
Oracle Database '{#DBNAME}': Force logging is deactivated for DB with active Archivelog

Force Logging mode - it is very important metric for Databases in 'ARCHIVELOG'. This feature allows to forcibly write all the transactions to the REDO.

last(/Oracle by Zabbix agent 2/oracle.db_force_logging["{#DBNAME}"]) = 0 and last(/Oracle by Zabbix agent 2/oracle.db_log_mode["{#DBNAME}"]) = 1 Warning

LLD rule PDB discovery

Name Description Type Key and additional info
PDB discovery

Scanning a pluggable database (PDB) in DBMS.

Zabbix agent oracle.pdb.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Item prototypes for PDB discovery

Name Description Type Key and additional info
Oracle Database '{#DBNAME}': Get PDB info

It gets the information about the PDB database on an instance.

Zabbix agent oracle.pdb.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DBNAME}"]
Oracle Database '{#DBNAME}': Open status

1 - 'MOUNTED';

2 - 'READ WRITE';

3 - 'READ ONLY';

4 - 'READ ONLY WITH APPLY' (a physical standby database is open in real-time query mode).

Dependent item oracle.pdb_open_mode["{#DBNAME}"]

Preprocessing

  • JSON Path: $..{#DBNAME}.open_mode.first()

  • Discard unchanged with heartbeat: 15m

Trigger prototypes for PDB discovery

Name Description Expression Severity Dependencies and additional info
Oracle Database '{#DBNAME}': Open status in mount mode

The Oracle DB is in a mounted state.

last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#DBNAME}"])=1 Warning
Oracle Database '{#DBNAME}': Open status has changed

The Oracle DB open status has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#DBNAME}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.pdb_open_mode["{#DBNAME}"],#2) Info Manual close: Yes

LLD rule Tablespace discovery

Name Description Type Key and additional info
Tablespace discovery

Scanning tablespaces in DBMS.

Zabbix agent oracle.ts.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Item prototypes for Tablespace discovery

Name Description Type Key and additional info
Oracle TBS '{#TABLESPACE}': Get tablespaces stats

It gets the statistics of the tablespace.

Zabbix agent oracle.ts.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#TABLESPACE}","{#CONTENTS}"]
Oracle TBS '{#TABLESPACE}': Tablespace allocated, bytes

Currently allocated bytes for the tablespace (sum of the current size of datafiles).

Dependent item oracle.tbs_alloc_bytes["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].file_bytes.first()

Oracle TBS '{#TABLESPACE}': Tablespace MAX size, bytes

The maximum size of the tablespace.

Dependent item oracle.tbs_max_bytes["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].max_bytes.first()

Oracle TBS '{#TABLESPACE}': Tablespace used, bytes

Currently used bytes for the tablespace (current size of datafiles - the free space).

Dependent item oracle.tbs_used_bytes["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].used_bytes.first()

Oracle TBS '{#TABLESPACE}': Tablespace free, bytes

Free bytes of the allocated space.

Dependent item oracle.tbs_free_bytes["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].free_bytes.first()

Oracle TBS '{#TABLESPACE}': Tablespace usage, percent

Used bytes/allocated bytes*100.

Dependent item oracle.tbs_used_file_pct["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].used_file_pct.first()

Oracle TBS '{#TABLESPACE}': Tablespace allocated, percent

Allocated bytes/max bytes*100.

Dependent item oracle.tbs_used_pct["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].used_pct_max.first()

Oracle TBS '{#TABLESPACE}': Tablespace usage from MAX, percent

Used bytes/max bytes*100.

Dependent item oracle.tbs_used_from_max_pct["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].used_from_max_pct.first()

Oracle TBS '{#TABLESPACE}': Open status

The tablespace status where:

1 - 'ONLINE';

2 - 'OFFLINE';

3 - 'READ ONLY'.

Dependent item oracle.tbs_status["{#TABLESPACE}"]

Preprocessing

  • JSON Path: $..['{#TABLESPACE}'].status.first()

Trigger prototypes for Tablespace discovery

Name Description Expression Severity Dependencies and additional info
Oracle TBS '{#TABLESPACE}': Tablespace usage is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_file_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.WARN} Warning Depends on:
  • Oracle TBS '{#TABLESPACE}': Tablespace usage is too high
Oracle TBS '{#TABLESPACE}': Tablespace usage is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_file_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.HIGH} High
Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.MAX.WARN} Warning Depends on:
  • Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high
Oracle TBS '{#TABLESPACE}': Tablespace utilization is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.UTIL.PCT.MAX.HIGH} High
Oracle TBS '{#TABLESPACE}': Tablespace usage from MAX is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_from_max_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.WARN} Warning Depends on:
  • Oracle TBS '{#TABLESPACE}': Tablespace utilization from MAX is too high
Oracle TBS '{#TABLESPACE}': Tablespace utilization from MAX is too high min(/Oracle by Zabbix agent 2/oracle.tbs_used_from_max_pct["{#TABLESPACE}"],5m)>{$ORACLE.TBS.USED.PCT.FROM.MAX.HIGH} High
Oracle TBS '{#TABLESPACE}': Tablespace is OFFLINE

The tablespace is in the offline state.

last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#TABLESPACE}"])=2 Warning
Oracle TBS '{#TABLESPACE}': Tablespace status has changed

Oracle tablespace status has changed. Acknowledge to close the problem manually.

last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#TABLESPACE}"],#1)<>last(/Oracle by Zabbix agent 2/oracle.tbs_status["{#TABLESPACE}"],#2) Info Manual close: Yes
Depends on:
  • Oracle TBS '{#TABLESPACE}': Tablespace is OFFLINE

LLD rule Archive log discovery

Name Description Type Key and additional info
Archive log discovery

Destinations of the log archive.

Zabbix agent oracle.archive.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Item prototypes for Archive log discovery

Name Description Type Key and additional info
Archivelog '{#DEST_NAME}': Get archive log info

It gets the archivelog statistics.

Zabbix agent oracle.archive.info["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DEST_NAME}"]
Archivelog '{#DEST_NAME}': Error

It displays the error message.

Dependent item oracle.archivelog_error["{#DEST_NAME}"]

Preprocessing

  • JSON Path: $..['{#DEST_NAME}'].error.first()

  • Discard unchanged with heartbeat: 1h

Archivelog '{#DEST_NAME}': Last sequence

It identifies the sequence number of the last archived redo log to be archived.

Dependent item oracle.archivelog_log_sequence["{#DEST_NAME}"]

Preprocessing

  • JSON Path: $..['{#DEST_NAME}'].log_sequence.first()

Archivelog '{#DEST_NAME}': Status

It identifies the current status of the destination where:

1 - 'VALID';

2 - 'DEFERRED';

3 - 'ERROR';

0 - 'UNKNOWN'.

Dependent item oracle.archivelog_log_status["{#DEST_NAME}"]

Preprocessing

  • JSON Path: $..['{#DEST_NAME}'].status.first()

  • Discard unchanged with heartbeat: 1h

Trigger prototypes for Archive log discovery

Name Description Expression Severity Dependencies and additional info
Archivelog '{#DEST_NAME}': Log Archive is not valid

The trigger will launch if the archive log destination is not in one of these states:
2 - 'DEFERRED';
3 - 'VALID'.

last(/Oracle by Zabbix agent 2/oracle.archivelog_log_status["{#DEST_NAME}"])<2 High

LLD rule ASM disk groups discovery

Name Description Type Key and additional info
ASM disk groups discovery

The ASM disk groups.

Zabbix agent oracle.diskgroups.discovery["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}"]

Item prototypes for ASM disk groups discovery

Name Description Type Key and additional info
ASM '{#DGNAME}': Get ASM stats

It gets the ASM disk group statistics.

Zabbix agent oracle.diskgroups.stats["{$ORACLE.CONNSTRING}","{$ORACLE.USER}","{$ORACLE.PASSWORD}","{$ORACLE.SERVICE}","{#DGNAME}"]
ASM '{#DGNAME}': Total size

The total size of the ASM disk group.

Dependent item oracle.asm_total_size["{#DGNAME}"]

Preprocessing

  • JSON Path: $..['{#DGNAME}'].total_bytes.first()

ASM '{#DGNAME}': Free size

The free size of the ASM disk group.

Dependent item oracle.asm_free_size["{#DGNAME}"]

Preprocessing

  • JSON Path: $..['{#DGNAME}'].free_bytes.first()

ASM '{#DGNAME}': Used size, percent

Usage of the ASM disk group expressed in %.

Dependent item oracle.asm_used_pct["{#DGNAME}"]

Preprocessing

  • JSON Path: $..['{#DGNAME}'].used_pct.first()

Trigger prototypes for ASM disk groups discovery

Name Description Expression Severity Dependencies and additional info
ASM '{#DGNAME}': Disk group usage is too high

The usage of the ASM disk group expressed in % exceeds {$ORACLE.ASM.USED.PCT.MAX.WARN}

min(/Oracle by Zabbix agent 2/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.WARN} Warning Depends on:
  • ASM '{#DGNAME}': Disk group usage is too high
ASM '{#DGNAME}': Disk group usage is too high

The usage of the ASM disk group expressed in % exceeds {$ORACLE.ASM.USED.PCT.MAX.HIGH}

min(/Oracle by Zabbix agent 2/oracle.asm_used_pct["{#DGNAME}"],5m)>{$ORACLE.ASM.USED.PCT.MAX.HIGH} High

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

Vous n’avez pas trouvé ce que vous cherchiez ?