]> granicus.if.org Git - icinga2/commitdiff
Add missing parameters for jmx4perl check command
authorJo Goossens <jo.goossens@hosted-power.com>
Thu, 5 Nov 2015 16:50:47 +0000 (17:50 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 5 Nov 2015 16:50:47 +0000 (17:50 +0100)
fixes #10503

doc/7-icinga-template-library.md
itl/plugins-contrib.d/web.conf

index cddc31bb4cee491f70d11053b84b934407a17af3..5a89bb1d12430ff0e3db4bdb9a4da9d887b3d142 100644 (file)
@@ -1995,7 +1995,9 @@ jmx4perl_label               | **Optional.** Label to be used for printing out t
 jmx4perl_perfdata            | **Optional.** Whether performance data should be omitted, which are included by default. Defaults to "on" for numeric values, to "off" for strings.
 jmx4perl_unknown_is_critical | **Optional.** Map UNKNOWN errors to errors with a CRITICAL status. Defaults to false.
 jmx4perl_timeout             | **Optional.** Seconds before plugin times out. Defaults to "15".
-
+jmx4perl_config              | **Optional.** Path to configuration file.
+jmx4perl_server              | **Optional.** Symbolic name of server url to use, which needs to be configured in the configuration file.
+jmx4perl_check               | **Optional.** Name of a check configuration as defined in the configuration file, use array if you need arguments.
 
 #### <a id="plugins-contrib-squid"></a> squid
 
index 6deb930dc9897810335c9f697280aff4da9c7d54..84a73559901577beb9ac876c2a4a3d1ba7863f66 100644 (file)
@@ -192,6 +192,20 @@ object CheckCommand "jmx4perl" {
                                                value = "$jmx4perl_timeout$"
                                                description = "Seconds before plugin times out (default: 15)"
                                }
+                               "--config" = {
+                                               value = "$jmx4perl_config$"
+                                               description = "Path to configuration file."
+                               }
+                               "--server" = {
+                                               value = "$jmx4perl_server$"
+                                               description = "Symbolic name of server url to use, which needs to be configured in the configuration file."
+                               }
+                               "--check" = {
+                                               value = "$jmx4perl_check$"
+                                               description = "Name of a check configuration as defined in the configuration file, use array if you need arguments."
+                                               order = 1
+                                               repeat_key = false
+                               }
                }
 
                vars.jmx4perl_url = "http://$address$:8080/jolokia"