mirror of https://github.com/Icinga/icinga2.git
Add --units, --rate and --rate-multiplier support for the snmpv3 check command
fixes #11194
This commit is contained in:
parent
4c69e96025
commit
b83a88ac05
|
@ -960,6 +960,9 @@ snmpv3_ereg | **Optional.** Return OK state (for that OID) if extended
|
|||
snmpv3_eregi | **Optional.** Return OK state (for that OID) if case-insensitive extended REGEX matches.
|
||||
snmpv3_invert_search | **Optional.** Invert search result and return CRITICAL if found
|
||||
snmpv3_label | **Optional.** Prefix label for output value.
|
||||
snmpv3_units | **Optional.** Units label(s) for output value (e.g., 'sec.').
|
||||
snmpv3_rate_multiplier | **Optional.** Converts rate per second. For example, set to 60 to convert to per minute.
|
||||
snmpv3_rate | **Optional.** Boolean. Enable rate calculation.
|
||||
snmpv3_timeout | **Optional.** The command timeout in seconds. Defaults to 10 seconds.
|
||||
|
||||
### <a id="plugin-check-command-snmp-uptime"></a> snmp-uptime
|
||||
|
|
|
@ -1418,6 +1418,12 @@ object CheckCommand "snmpv3" {
|
|||
value = "$snmpv3_label$"
|
||||
description = "Prefix label for output from plugin"
|
||||
}
|
||||
"-u" = "$snmpv3_units$"
|
||||
"--rate-multiplier" = "$snmpv3_rate_multiplier$"
|
||||
"--rate" = {
|
||||
set_if = "$snmpv3_rate$"
|
||||
description = "Enable rate calculation"
|
||||
}
|
||||
"-t" = "$snmpv3_timeout$"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue