]> granicus.if.org Git - icinga2/commitdiff
ITL: Add tempdir attribute to postgres CheckCommand
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 7 Dec 2016 15:56:12 +0000 (16:56 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 7 Dec 2016 15:56:12 +0000 (16:56 +0100)
fixes #13449

doc/10-icinga-template-library.md
itl/plugins-contrib.d/databases.conf

index 6de86c8bb82cc8ef117d1f9ef4be3ef7066180bb..b114d282551072757132fc9dd7a67e886b010c45 100644 (file)
@@ -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).
 
 #### <a id="plugin-contrib-command-mongodb"></a> mongodb
 
index b3aa045dc1d37ce7bbf93b4dd12ad3afd0e9b653..c448a35b116141ed81dfd5d2d82180a0ee87e06c 100644 (file)
@@ -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$"