mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Merge pull request #8929 from peteeckel/fix/check-postgresql-itl-8928
[ITL] Added the option to set PGCONTROLDATA for check_postgres
This commit is contained in:
commit
fe363eafcd
@ -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…
x
Reference in New Issue
Block a user