From b0e6eb0ca4f5b0efb9f220eaf0fa0900f2a4fe04 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 12 Jul 2016 14:35:19 +0200 Subject: [PATCH] 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 2515b21a8..a3011f599 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. #### iftraffic64 diff --git a/itl/plugins-contrib.d/network-components.conf b/itl/plugins-contrib.d/network-components.conf index 9dc90c7fd..4bc7b81b0 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$"