mirror of https://github.com/Icinga/icinga2.git
[ITL] Added the option to set PGCONTROLDATA for check_postgres
This commit is contained in:
parent
2b04e0a754
commit
4ca496e677
|
@ -2506,6 +2506,7 @@ postgres_query | **Optional.** Query for "custom_query" action.
|
|||
postgres_valtype | **Optional.** Value type of query result for "custom_query".
|
||||
postgres_reverse | **Optional.** If "postgres_reverse" is set, warning and critical values are reversed for "custom_query" action.
|
||||
postgres_tempdir | **Optional.** Specify directory for temporary files. The default directory is dependent on the OS. More details [here](https://perldoc.perl.org/File/Spec.html).
|
||||
postgres_pgcontroldata | **Optional.** Full path to the pg_controldata command line utility, e.g. "/usr/pgsql-12/bin/pg_controldata".
|
||||
|
||||
#### mongodb <a id="plugin-contrib-command-mongodb"></a>
|
||||
|
||||
|
|
|
@ -595,6 +595,10 @@ object CheckCommand "postgres" {
|
|||
}
|
||||
}
|
||||
|
||||
env = {
|
||||
"PGCONTROLDATA" = "$postgres_pgcontroldata$"
|
||||
}
|
||||
|
||||
vars.postgres_host = "$check_address$"
|
||||
vars.postgres_standby = false
|
||||
vars.postgres_production = false
|
||||
|
|
Loading…
Reference in New Issue