]> granicus.if.org Git - icinga2/commitdiff
Add missing args for apache-status and fix a few typos 6963/head
authorakrus <akrus@flygroup.st>
Fri, 22 Feb 2019 08:57:41 +0000 (10:57 +0200)
committerakrus <akrus@flygroup.st>
Fri, 22 Feb 2019 08:57:41 +0000 (10:57 +0200)
doc/10-icinga-template-library.md
itl/plugins-contrib.d/web.conf

index f830663852b573d66e61574c843e666534a9037c..a11d1cd6e0be42eac017b0b2226c6c08ef582e01 100644 (file)
@@ -5317,15 +5317,19 @@ HTTP endpoint to monitor status metrics for the Apache webserver.
 
 Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
 
-Name                    | Description
-------------------------|----------------------------------------------------------------------------------
-apache_status_address  | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, `address6` otherwise.
-apache_status_port     | **Optional.** the http port.
-apache_status_url      | **Optional.** URL to use, instead of the default (http://`apache_status_address`/server-status).
-apache_status_ssl      | **Optional.** set to use ssl connection
-apache_status_timeout  | **Optional.** timeout in seconds
-apache_status_warning  | **Optional.** Warning threshold (number of open slots, busy workers and idle workers that will cause a WARNING) like ':20,50,:50'.
-apache_status_critical | **Optional.** Critical threshold (number of open slots, busy workers and idle workers that will cause a CRITICAL) like ':10,25,:20'.
+Name                            | Description
+--------------------------------|----------------------------------------------------------------------------------
+apache_status_address          | **Optional.** Host address. Defaults to "$address$" if the host's `address` attribute is set, `address6` otherwise.
+apache_status_port             | **Optional.** HTTP port.
+apache_status_uri              | **Optional.** URL to use, instead of the default (http://`apache_status_address`/server-status).
+apache_status_ssl              | **Optional.** Set to use SSL connection.
+apache_status_no_validate      | **Optional.** Skip SSL certificate validation.
+apache_status_username         | **Optional.** Username for basic auth.
+apache_status_password         | **Optional.** Password for basic auth.
+apache_status_timeout          | **Optional.** Timeout in seconds.
+apache_status_unreachable      | **Optional.** Return CRITICAL if socket timed out or http code >= 500.
+apache_status_warning          | **Optional.** Warning threshold (number of open slots, busy workers and idle workers that will cause a WARNING) like ':20,50,:50'.
+apache_status_critical         | **Optional.** Critical threshold (number of open slots, busy workers and idle workers that will cause a CRITICAL) like ':10,25,:20'.
 
 
 #### ssl_cert <a id="plugin-check-command-ssl_cert"></a>
index 0585248f1d808c99bd4c1821fd177213a8110a01..79769cb64d92727e7685acefd67770018b457e5e 100644 (file)
@@ -342,12 +342,20 @@ object CheckCommand "apache-status" {
                }
                "-s" = {
                        set_if = "$apache_status_ssl$"
-                       description = "Wether we should use HTTPS instead of HTTP"
+                       description = "Whether we should use HTTPS instead of HTTP"
                }
                "-u" = {
                        value = "$apache_status_uri$"
                        description = "Specific URL to use, instead of the default 'http://<apache_status_address>/server-status'"
                }
+               "-U" = {
+                       value = "$apache_status_username$"
+                       description = "username for basic auth"
+               }
+               "-P" = {
+                       value = "$apache_status_password$"
+                       description = "password for basic auth"
+               }
                "-w" = {
                        value = "$apache_status_warning$"
                        description = "number of open slots, busy workers and idle workers that will cause a WARNING"
@@ -360,6 +368,14 @@ object CheckCommand "apache-status" {
                        value = "$apache_status_timeout$"
                        description = "timeout in seconds"
                }
+               "-N" = {
+                       set_if = "$apache_status_no_validate$"
+                       description = "do not validate the SSL certificate chain"
+               }
+               "-R" = {
+                       set_if = "$apache_status_unreachable$"
+                       description = "CRITICAL if socket timed out or http code >= 500"
+               }
        }
 
        vars.apache_status_address = "$check_address$"