Skip to content

Commit a51910a

Browse files
authored
Merge pull request #9975 from nicolasberens/bugfix/update-check_snmp-9907
add multiplier option to check_snmp which is available since monitori…
2 parents 145bb61 + c76cade commit a51910a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/10-icinga-template-library.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,7 @@ snmp_invert_search | **Optional.** Invert search result and return CRITICAL sta
13221322
snmp_units | **Optional.** Units label(s) for output value (e.g., 'sec.').
13231323
snmp_version | **Optional.** Version to use. E.g. 1, 2, 2c or 3.
13241324
snmp_miblist | **Optional.** MIB's to use, comma separated. Defaults to "ALL".
1325+
snmp_multiplier |**Optional.** Multiplies current value, 0 < n < 1 works as divider, defaults to 1
13251326
snmp_rate_multiplier | **Optional.** Converts rate per second. For example, set to 60 to convert to per minute.
13261327
snmp_rate | **Optional.** Boolean. Enable rate calculation.
13271328
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
13571358
snmpv3_invert_search | **Optional.** Invert search result and return CRITICAL if found
13581359
snmpv3_label | **Optional.** Prefix label for output value.
13591360
snmpv3_units | **Optional.** Units label(s) for output value (e.g., 'sec.').
1361+
snmp3_multiplier |**Optional.** Multiplies current value, 0 < n < 1 works as divider, defaults to 1
13601362
snmpv3_rate_multiplier | **Optional.** Converts rate per second. For example, set to 60 to convert to per minute.
13611363
snmpv3_rate | **Optional.** Boolean. Enable rate calculation.
13621364
snmpv3_timeout | **Optional.** The command timeout in seconds. Defaults to 10 seconds.

itl/command-plugins.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,10 @@ object CheckCommand "snmp" {
17701770
value = "$snmp_miblist$"
17711771
description = "List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL' for symbolic OIDs.)"
17721772
}
1773+
"-M" = {
1774+
value = "$snmp_multiplier$"
1775+
description = "Multiplies current value, 0 < n < 1 works as divider, defaults to 1"
1776+
}
17731777
"--rate-multiplier" = {
17741778
value = "$snmp_rate_multiplier$"
17751779
description = "Converts rate per second. For example, set to 60 to convert to per minute"
@@ -1898,6 +1902,10 @@ object CheckCommand "snmpv3" {
18981902
value = "$snmpv3_miblist$"
18991903
description = "List of SNMP MIBs for translating OIDs between numeric and textual representation"
19001904
}
1905+
"-M" = {
1906+
value = "$snmpv3_multiplier$"
1907+
description = "Multiplies current value, 0 < n < 1 works as divider, defaults to 1"
1908+
}
19011909
"-u" = {
19021910
value = "$snmpv3_units$"
19031911
description = "Units label(s) for output data (e.g., 'sec.')"

0 commit comments

Comments
 (0)