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:
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 | tcp://localhost:1521 | 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 scheme is 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: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 | 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 | false | The option specifies how to interpret the connection string (ConnString) for connecting to the Oracle server. If it is set to false the default schema and port will be added to ConnString (if absent). If the option is set to true, the default schema 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 scheme is 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: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 | no | Named session username. <SessionName> - define name of a session for using in item keys. |
See also: