From 5db468b3ca142a4c260e7365bda59d38451c1798 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 7 Dec 2016 16:56:12 +0100 Subject: [PATCH] ITL: Add tempdir attribute to postgres CheckCommand fixes #13449 --- doc/10-icinga-template-library.md | 1 + itl/plugins-contrib.d/databases.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 6de86c8bb..b114d2825 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2109,6 +2109,7 @@ postgres_unixsocket | **Optional.** If "postgres_unixsocket" is set to true, th 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](http://perldoc.perl.org/File/Spec.html). #### mongodb diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index b3aa045dc..c448a35b1 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -495,6 +495,10 @@ object CheckCommand "postgres" { set_if = "$postgres_reverse$" description = "reverses warning and critical for custom_query action" } + "--tempdir" = { + value = "$postgres_tempdir$" + description = "specify directory for temporary files. default depends on the OS" + } } vars.postgres_host = "$check_address$"