Merge pull request #8924 from peteeckel/fix/check-postgres-itl-8922

[ITL] Added --datadir, --language and --perflimit for check_postgres
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-10-04 10:50:50 +02:00 committed by GitHub
commit 3d5034c8cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -2506,6 +2506,9 @@ 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_datadir | **Optional.** Specifies the database directory (PGDATA). This information is required for some actions, such as "bloat", "locks" and "prepared_txns".
postgres_language | **Optional.** Specifies the language for messages issued by the plugin. The default language depends on the system configuration.
postgres_perflimit | **Optional.** Specifies the maximum number of performance data values returned by the plugin. The default is to return all performance data.
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

@ -593,6 +593,18 @@ object CheckCommand "postgres" {
value = "$postgres_tempdir$"
description = "specify directory for temporary files. default depends on the OS"
}
"--datadir" = {
value = "$postgres_datadir$"
description = "location of the PostgreSQL data directory"
}
"--language" = {
value = "$postgres_language$"
description = "language to use for messages"
}
"--perflimit" = {
value = "$postgres_perflimit$"
description = "limit the number of performance data to report"
}
}
env = {