From 3454cf88a77910c034c406d6d7d64cd5d714183a Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 12 Aug 2016 15:05:23 +0200 Subject: [PATCH] Add documentation for swap CheckCommand parameters fixes #12392 --- doc/7-icinga-template-library.md | 7 +++++-- itl/command-plugins.conf | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 7e1257757..5f0a6199b 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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". ### tcp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 676f9c9fc..049a33a33 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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%" -- 2.40.0