[icinga-checkins] icinga.org: icinga2/master: ITL: Fix thresholds and descriptions for iftraffic{, 64}

git at icinga.org git at icinga.org
Tue Jul 12 18:40:05 CEST 2016


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Jul 12 14:35:19 2016 +0200

ITL: Fix thresholds and descriptions for iftraffic{,64}

refs #12135

---

 doc/7-icinga-template-library.md              |    4 ++--
 itl/plugins-contrib.d/network-components.conf |   12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md
index 2515b21..a3011f5 100644
--- a/doc/7-icinga-template-library.md
+++ b/doc/7-icinga-template-library.md
@@ -2036,8 +2036,8 @@ iftraffic_community	| **Optional.** SNMP community. Defaults to "public'" if omi
 iftraffic_interface	| **Required.** Queried interface name.
 iftraffic_bandwidth	| **Required.** Interface maximum speed in kilo/mega/giga/bits per second.
 iftraffic_units		| **Optional.** Interface units can be one of these values: `g` (gigabits/s),`m` (megabits/s), `k` (kilobits/s),`b` (bits/s)
-iftraffic_warn		| **Optional.** Percent of bandwidth usage necessary to result in warning status (defaults to `85%`).
-iftraffic_crit		| **Optional.** Percent of bandwidth usage necessary to result in critical status (defaults to `98%`).
+iftraffic_warn		| **Optional.** Percent of bandwidth usage necessary to result in warning status (defaults to `85`).
+iftraffic_crit		| **Optional.** Percent of bandwidth usage necessary to result in critical status (defaults to `98`).
 iftraffic_max_counter	| **Optional.** Maximum counter value of net devices in kilo/mega/giga/bytes.
 
 #### <a id="plugins-contrib-command-iftraffic64"></a> iftraffic64
diff --git a/itl/plugins-contrib.d/network-components.conf b/itl/plugins-contrib.d/network-components.conf
index 9dc90c7..4bc7b81 100644
--- a/itl/plugins-contrib.d/network-components.conf
+++ b/itl/plugins-contrib.d/network-components.conf
@@ -324,11 +324,11 @@ object CheckCommand "iftraffic" {
 		}
 		"-w" = {
 			value = "$iftraffic_warn$"
-			description = "% of bandwidth usage necessary to result in warning status (default: 85%)"
+			description = "% of bandwidth usage necessary to result in warning status (default: 85)"
 		}
 		"-c" = {
 			value = "$iftraffic_crit$"
-			description = "% of bandwidth usage necessary to result in critical status (default: 98%)"
+			description = "% of bandwidth usage necessary to result in critical status (default: 98)"
 		}
 		"-M" = {
 			value = "$iftraffic_max_counter$"
@@ -337,8 +337,8 @@ object CheckCommand "iftraffic" {
 	}
 
 	vars.iftraffic_address = "$check_address$"
-	vars.iftraffic_warn = "85%"
-	vars.iftraffic_crit = "98%"
+	vars.iftraffic_warn = "85"
+	vars.iftraffic_crit = "98"
 }
 
 object CheckCommand "iftraffic64" {
@@ -373,11 +373,11 @@ object CheckCommand "iftraffic64" {
 		}
 		"-w" = {
 			value = "$iftraffic64_warn$"
-			description = "% of bandwidth usage necessary to result in warning status (default: 85%)"
+			description = "% of bandwidth usage necessary to result in warning status (default: 85)"
 		}
 		"-c" = {
 			value = "$iftraffic64_crit$"
-			description = "% of bandwidth usage necessary to result in critical status (default: 98%)"
+			description = "% of bandwidth usage necessary to result in critical status (default: 98)"
 		}
 		"-M" = {
 			value = "$iftraffic64_max_counter$"



More information about the icinga-checkins mailing list