Skip to content

Commit

Permalink
Merge pull request #8924 from peteeckel/fix/check-postgres-itl-8922
Browse files Browse the repository at this point in the history
[ITL] Added --datadir, --language and --perflimit for check_postgres
  • Loading branch information
Al2Klimov authored Oct 4, 2021
2 parents 4dd00c9 + 688de9d commit 3d5034c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 12 additions & 0 deletions itl/plugins-contrib.d/databases.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3d5034c

Please sign in to comment.