Add documentation for swap CheckCommand parameters

fixes #12392
This commit is contained in:
Michael Friedrich 2016-08-12 15:05:23 +02:00
parent e28f30a727
commit 3454cf88a7
2 changed files with 10 additions and 3 deletions

View File

@ -1175,8 +1175,11 @@ Custom attributes passed as [command parameters](3-monitoring-basics.md#command-
Name | Description Name | Description
----------------|-------------- ----------------|--------------
swap_wfree | **Optional.** The free swap space warning threshold in %. Defaults to 50. 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 %. Defaults to 25. 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 ### <a id="plugin-check-command-tcp"></a> tcp

View File

@ -1272,8 +1272,12 @@ object CheckCommand "swap" {
}} }}
"-a" = { "-a" = {
set_if = "$swap_allswaps$" 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%" vars.swap_wfree = "50%"