- 11 Oracle plugin
- Parameter details
- Plugins.Oracle.CallTimeout
- Plugins.Oracle.ConnectTimeout
- Plugins.Oracle.CustomQueriesPath
- Plugins.Oracle.CustomQueriesEnabled
- Plugins.Oracle.Default.Password
- Plugins.Oracle.Default.Service
- Plugins.Oracle.Default.Uri
- Plugins.Oracle.Default.User
- Plugins.Oracle.KeepAlive
- Plugins.Oracle.ResolveTNS
- Plugins.Oracle.Sessions.<SessionName>.Password
- Plugins.Oracle.Sessions.<SessionName>.Service
- Plugins.Oracle.Sessions.<SessionName>.Uri
- Plugins.Oracle.Sessions.<SessionName>.User
- Footnotes
- Parameters
11 Oracle plugin
Overview
The configuration file of Zabbix agent 2 is used to configure plugins. These Zabbix agent 2 configuration parameters are supported for operating the Oracle plugin.
It is recommended to specify them in their own configuration file (e.g. oracle.conf) and then use the Include directive for adding this file to the Zabbix agent 2 configuration.
Note that:
- The default values reflect process defaults, not the values in the shipped configuration files.
- Values support environment variables.
- Zabbix supports configuration files only in UTF-8 encoding without BOM.
- Comments starting with "#" are only supported at the beginning of the line.
Parameter details
Plugins.Oracle.CallTimeout
Specify the maximum wait time in seconds for a request to be completed.
Default: default timeout
Range: 1-30
Plugins.Oracle.ConnectTimeout
Specify the maximum wait time in seconds for a connection to be established.
Default: default timeout
Range: 1-30
Plugins.Oracle.CustomQueriesPath
Specify full pathname of the directory containing .sql files with custom queries.
Defaults:/usr/local/share/zabbix/custom-queries/oracle - for Unix systems,*:\Program Files\Zabbix Agent 2\Custom Queries\Oracle - for Windows systems (where * is the drive name from the ProgramFiles environment variable)
Example:
/etc/zabbix/oracle/sql
Plugins.Oracle.CustomQueriesEnabled
Enable execution of the oracle.custom.query item key.
If disabled, no queries will be loaded from the custom query directory path.
Default: false
Range: true/false
Plugins.Oracle.Default.Password
Specify the default password for connecting to Oracle.
Used if no value is specified in an item key or named session.
Plugins.Oracle.Default.Service
Specify the default service name for connecting to Oracle (SID is not supported).
Used if no value is specified in an item key or named session.
Plugins.Oracle.Default.Uri
Specify the default URI for connecting to Oracle.
Used if no value is specified in an item key or named session.
Embedded credentials will be ignored.
Must match the URI format.
Supported schemes: tcp, tcps
The schema can be omitted.
The port can be omitted (default=1521).
It is also possible to specify the TNS key or TNS value as the connection string. The TNS value must be composed without whitespaces.
Examples:
tcp://127.0.0.1:1521
localhost
zbx_tns_example (TNS key)
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe))) (TNS value)
Plugins.Oracle.Default.User
Specify the default username for connecting to Oracle.
Used if no value is specified in an item key or named session.
Plugins.Oracle.KeepAlive
Set the maximum time of waiting (in seconds) before unused plugin connections are closed.
Default: 300
Range: 60-900
Plugins.Oracle.ResolveTNS
Specify how to interpret the connection string (ConnString) for connecting to the Oracle server.
If it is set to false the default scheme and port will be added to ConnString (if absent).
If the option is set to true, the default scheme and port will be omitted (unless explicitly specified in ConnString), and ConnString will be passed to the Oracle client as is. If the Oracle client finds ConnString in the tnsnames.ora file, the connection description found will be used to connect to the Oracle server.
Default: true
Range: true/false
Plugins.Oracle.Sessions.<SessionName>.Password
Specify the named session password for connecting to Oracle.
<SessionName> - define name of a session for using in item keys.
Plugins.Oracle.Sessions.<SessionName>.Service
Specify the named session service name for connecting to Oracle (SID is not supported).
<SessionName> - define name of a session for using in item keys.
Plugins.Oracle.Sessions.<SessionName>.Uri
Specify the named session URI for connecting to Oracle.
<SessionName> - define name of a session for using in item keys.
Embedded credentials will be ignored.
Must match the URI format.
Supported schemes: tcp, tcps
The schema can be omitted.
The port can be omitted (default=1521).
It is also possible to specify the TNS key or TNS value as the connection string. The TNS value must be composed without whitespaces.
Examples:
tcp://127.0.0.1:1521
localhost
zbx_tns_example (TNS key)
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe))) (TNS value)
Plugins.Oracle.Sessions.<SessionName>.User
Specify the named session username for connecting to Oracle.
<SessionName> - define name of a session for using in item keys.
Footnotes
1 The timeout is defined by the Timeout option in the Zabbix agent 2 configuration file (zabbix_agent2.conf or zabbix_agent2.win.conf).
Parameters
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| Plugins.Oracle.CallTimeout | no | 1-30 | global timeout | The maximum wait time in seconds for a request to be completed. |
| Plugins.Oracle.ConnectTimeout | no | 1-30 | global timeout | The maximum wait time in seconds for a connection to be established. |
| Plugins.Oracle.CustomQueriesPath | no | /usr/local/share/zabbix/custom-queries/oracle for Unix systems*:\Program Files\Zabbix Agent 2\Custom Queries\Oracle for Windows systems, where * is the drive name from the ProgramFiles environment variable |
Full pathname of a directory containing .sql files with custom queries.Example: /etc/zabbix/oracle/sql |
|
| Plugins.Oracle.CustomQueriesEnabled | no | false | If set, enables the execution of the oracle.custom.query item key. If disabled, no queries will be loaded from the custom query directory path. |
|
| Plugins.Oracle.Default.Password | no | Default password for connecting to Oracle; used if no value is specified in an item key or named session. | ||
| Plugins.Oracle.Default.Service | no | Default service name for connecting to Oracle (SID is not supported); used if no value is specified in an item key or named session. | ||
| Plugins.Oracle.Default.Uri | no | Default URI for connecting to Oracle; used if no value is specified in an item key or named session. Should not include embedded credentials (they will be ignored). Must match the URI format. Only tcp and tcps schemes are supported; a scheme can be omitted.A port can be omitted (default=1521). It is also possible to specify the TNS key or TNS value as the connection string. The TNS value must be composed without whitespaces. Examples: tcp://127.0.0.1:1521localhostzbx_tns_example (TNS key)(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe))) (TNS value) |
||
| Plugins.Oracle.Default.User | no | Default username for connecting to Oracle; used if no value is specified in an item key or named session. | ||
| Plugins.Oracle.KeepAlive | no | 60-900 | 300 | The maximum time of waiting (in seconds) before unused plugin connections are closed. |
| Plugins.Oracle.ResolveTNS | no | true / false | true | The option specifies how to interpret the connection string (ConnString) for connecting to the Oracle server. If it is set to false the default scheme and port will be added to ConnString (if absent). If the option is set to true, the default scheme and port will be omitted (unless explicitly specified in ConnString), and ConnString will be passed to the Oracle client as is. If the Oracle client finds ConnString in the tnsnames.ora file, the connection description found will be used to connect to the Oracle server. |
| Plugins.Oracle.Sessions.<SessionName>.Password | no | Named session password. <SessionName> - define name of a session for using in item keys. |
||
| Plugins.Oracle.Sessions.<SessionName>.Service | no | Named session service name to be used for connection (SID is not supported). <SessionName> - define name of a session for using in item keys. |
||
| Plugins.Oracle.Sessions.<SessionName>.Uri | no | Named session connection string for Oracle. <SessionName> - define name of a session for using in item keys. Should not include embedded credentials (they will be ignored). Must match the URI format. Only tcp and tcps schemes are supported; a scheme can be omitted.A port can be omitted (default=1521). It is also possible to specify the TNS key or TNS value as the connection string. The TNS value must be composed without whitespaces. Examples: tcp://127.0.0.1:1521localhostzbx_tns_example (TNS key)(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe))) (TNS value) |
||
| Plugins.Oracle.Sessions.<SessionName>.User | no | Named session username. <SessionName> - define name of a session for using in item keys. |
See also:
- Description of general Zabbix agent 2 configuration parameters: Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- Instructions for configuring plugins