mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5805 from KAMI911/master
Add support for LD_LIBRARY_PATH env variable in oracle_health ITL CheckCommand
This commit is contained in:
commit
050794355f
|
@ -2306,8 +2306,9 @@ Environment Macros:
|
|||
|
||||
Name | Description
|
||||
--------------------|------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ORACLE_HOME | **Required.** Specifies the location of the oracle instant client libraries. Defaults to "/usr/lib/oracle/11.2/client64/lib". Can be overridden by setting "oracle_home".
|
||||
TNS_ADMIN | **Required.** Specifies the location of the tnsnames.ora including the database connection strings. Defaults to "/etc/icinga2/plugin-configs". Can be overridden by setting "oracle_tns_admin".
|
||||
ORACLE\_HOME | **Required.** Specifies the location of the oracle instant client libraries. Defaults to "/usr/lib/oracle/11.2/client64/lib". Can be overridden by setting the custom attribute `oracle_home`.
|
||||
LD\_LIBRARY\_PATH | **Required.** Specifies the location of the oracle instant client libraries for the run-time shared library loader. Defaults to "/usr/lib/oracle/11.2/client64/lib". Can be overridden by setting the custom attribute `oracle_ld_library_path`.
|
||||
TNS\_ADMIN | **Required.** Specifies the location of the tnsnames.ora including the database connection strings. Defaults to "/etc/icinga2/plugin-configs". Can be overridden by setting the custom attribute `oracle_tns_admin`.
|
||||
|
||||
#### postgres <a id="plugin-contrib-command-postgres"></a>
|
||||
|
||||
|
|
|
@ -505,6 +505,7 @@ object CheckCommand "oracle_health" {
|
|||
|
||||
env = {
|
||||
"ORACLE_HOME" = "$oracle_home$"
|
||||
"LD_LIBRARY_PATH" = "$oracle_ld_library_path$"
|
||||
"TNS_ADMIN" = "$oracle_tns_admin$"
|
||||
}
|
||||
|
||||
|
@ -515,6 +516,7 @@ object CheckCommand "oracle_health" {
|
|||
vars.oracle_health_report = "long"
|
||||
|
||||
vars.oracle_home = "/usr/lib/oracle/11.2/client64/lib"
|
||||
vars.oracle_ld_library_path = "/usr/lib/oracle/11.2/client64/lib"
|
||||
vars.oracle_tns_admin = SysconfDir + "/icinga2/plugin-configs"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue