Add support for LD_LIBRARY_PATH env variable in oracle_health ITL CheckCommand

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Kálmán Szalai - KAMI 2017-11-30 08:12:07 +01:00 committed by Michael Friedrich
parent 49931ea732
commit 709d00fbdb
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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"
}