]> granicus.if.org Git - icinga2/commitdiff
Add documentation for swap CheckCommand parameters
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 12 Aug 2016 13:05:23 +0000 (15:05 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 12 Aug 2016 13:08:35 +0000 (15:08 +0200)
fixes #12392

doc/7-icinga-template-library.md
itl/command-plugins.conf

index 7e12577575e8afafa8415b170c39de448f512baf..5f0a6199b4936aa874547086ad2a022db936c7fb 100644 (file)
@@ -1175,8 +1175,11 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
 
 Name            | Description
 ----------------|--------------
-swap_wfree      | **Optional.** The free swap space warning threshold in %. Defaults to 50.
-swap_cfree      | **Optional.** The free swap space critical threshold in %. Defaults to 25.
+swap_wfree      | **Optional.** The free swap space warning threshold in % (enable `swap_integer` for number values). Defaults to `50%`.
+swap_cfree      | **Optional.** The free swap space critical threshold in % (enable `swap_integer` for number values). Defaults to `25%`.
+swap_integer    | **Optional.** Specifies whether the thresholds are passed as number or percent value. Defaults to false (percent values).
+swap_allswaps   | **Optional.** Conduct comparisons for all swap partitions, one by one. Defaults to false.
+swap_noswap     | **Optional.** Resulting state when there is no swap regardless of thresholds. Possible values are "ok", "warning", "critical", "unknown". Defaults to "critical".
 
 
 ### <a id="plugin-check-command-tcp"></a> tcp
index 676f9c9fcd97d024a6342142b6f421a58ece223c..049a33a336b32029052dc48cb36abb74190a06c5 100644 (file)
@@ -1272,8 +1272,12 @@ object CheckCommand "swap" {
                }}
                "-a" = {
                        set_if = "$swap_allswaps$"
+                       description = "Resulting state when there is no swap regardless of thresholds. Possible values are \"ok\", \"warning\", \"critical\", \"unknown\". Defaults to \"critical\""
+               }
+               "-n" = {
+                       value = "$swap_noswap$"
+                       description = "Conduct comparisons for all swap partitions, one by one"
                }
-               "-n" = "$swap_noswap$"
        }
 
        vars.swap_wfree = "50%"