Merge pull request #9975 from nicolasberens/bugfix/update-check_snmp-9907

add multiplier option to check_snmp which is available since monitori…
This commit is contained in:
Yonas Habteab 2024-08-26 17:12:09 +02:00 committed by GitHub
commit a51910a19b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -1322,6 +1322,7 @@ snmp_invert_search | **Optional.** Invert search result and return CRITICAL sta
snmp_units | **Optional.** Units label(s) for output value (e.g., 'sec.').
snmp_version | **Optional.** Version to use. E.g. 1, 2, 2c or 3.
snmp_miblist | **Optional.** MIB's to use, comma separated. Defaults to "ALL".
snmp_multiplier |**Optional.** Multiplies current value, 0 < n < 1 works as divider, defaults to 1
snmp_rate_multiplier | **Optional.** Converts rate per second. For example, set to 60 to convert to per minute.
snmp_rate | **Optional.** Boolean. Enable rate calculation.
snmp_getnext | **Optional.** Boolean. Use SNMP GETNEXT. Defaults to false.
@ -1357,6 +1358,7 @@ snmpv3_eregi | **Optional.** Return OK state (for that OID) if case-inse
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.').
snmp3_multiplier |**Optional.** Multiplies current value, 0 < n < 1 works as divider, defaults to 1
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.

View File

@ -1770,6 +1770,10 @@ object CheckCommand "snmp" {
value = "$snmp_miblist$"
description = "List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL' for symbolic OIDs.)"
}
"-M" = {
value = "$snmp_multiplier$"
description = "Multiplies current value, 0 < n < 1 works as divider, defaults to 1"
}
"--rate-multiplier" = {
value = "$snmp_rate_multiplier$"
description = "Converts rate per second. For example, set to 60 to convert to per minute"
@ -1898,6 +1902,10 @@ object CheckCommand "snmpv3" {
value = "$snmpv3_miblist$"
description = "List of SNMP MIBs for translating OIDs between numeric and textual representation"
}
"-M" = {
value = "$snmpv3_multiplier$"
description = "Multiplies current value, 0 < n < 1 works as divider, defaults to 1"
}
"-u" = {
value = "$snmpv3_units$"
description = "Units label(s) for output data (e.g., 'sec.')"