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

refs #12135
This commit is contained in:
Michael Friedrich 2016-07-12 14:35:19 +02:00
parent 60c52f2109
commit b0e6eb0ca4
2 changed files with 8 additions and 8 deletions

View File

@ -2036,8 +2036,8 @@ iftraffic_community | **Optional.** SNMP community. Defaults to "public'" if omi
iftraffic_interface | **Required.** Queried interface name. iftraffic_interface | **Required.** Queried interface name.
iftraffic_bandwidth | **Required.** Interface maximum speed in kilo/mega/giga/bits per second. 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_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_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_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. iftraffic_max_counter | **Optional.** Maximum counter value of net devices in kilo/mega/giga/bytes.
#### <a id="plugins-contrib-command-iftraffic64"></a> iftraffic64 #### <a id="plugins-contrib-command-iftraffic64"></a> iftraffic64

View File

@ -324,11 +324,11 @@ object CheckCommand "iftraffic" {
} }
"-w" = { "-w" = {
value = "$iftraffic_warn$" 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" = { "-c" = {
value = "$iftraffic_crit$" 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" = { "-M" = {
value = "$iftraffic_max_counter$" value = "$iftraffic_max_counter$"
@ -337,8 +337,8 @@ object CheckCommand "iftraffic" {
} }
vars.iftraffic_address = "$check_address$" vars.iftraffic_address = "$check_address$"
vars.iftraffic_warn = "85%" vars.iftraffic_warn = "85"
vars.iftraffic_crit = "98%" vars.iftraffic_crit = "98"
} }
object CheckCommand "iftraffic64" { object CheckCommand "iftraffic64" {
@ -373,11 +373,11 @@ object CheckCommand "iftraffic64" {
} }
"-w" = { "-w" = {
value = "$iftraffic64_warn$" 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" = { "-c" = {
value = "$iftraffic64_crit$" 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" = { "-M" = {
value = "$iftraffic64_max_counter$" value = "$iftraffic64_max_counter$"