[ITL] Added the option to set PGCONTROLDATA for check_postgres

This commit is contained in:
Peter Eckel 2021-07-22 17:24:37 +02:00
parent 2b04e0a754
commit 4ca496e677
2 changed files with 25 additions and 20 deletions

View File

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

View File

@ -595,6 +595,10 @@ object CheckCommand "postgres" {
}
}
env = {
"PGCONTROLDATA" = "$postgres_pgcontroldata$"
}
vars.postgres_host = "$check_address$"
vars.postgres_standby = false
vars.postgres_production = false