[icinga-checkins] icinga.org: icinga2/master: Add documentation for swap CheckCommand parameters

git at icinga.org git at icinga.org
Fri Aug 12 15:08:44 CEST 2016


Module: icinga2
Branch: master
Commit: 3454cf88a77910c034c406d6d7d64cd5d714183a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=3454cf88a77910c034c406d6d7d64cd5d714183a

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri Aug 12 15:05:23 2016 +0200

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 7e12577..5f0a619 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".
 
 
 ### <a id="plugin-check-command-tcp"></a> tcp
diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf
index 676f9c9..049a33a 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%"



More information about the icinga-checkins mailing list