Feature/itl check snmp options (#5387)

Add missing options for the definition of the ITL snmp CheckCommand

snmp_offset, snmp_output_delimiter and snmp_perf_oids options
This commit is contained in:
Yannick Charton 2017-08-14 17:51:23 +02:00 committed by Michael Friedrich
parent 301b72ceef
commit e61d43468b
2 changed files with 15 additions and 0 deletions

View File

@ -1198,6 +1198,9 @@ snmp_rate_multiplier | **Optional.** Converts rate per second. For example, set
snmp_rate | **Optional.** Boolean. Enable rate calculation.
snmp_getnext | **Optional.** Boolean. Use SNMP GETNEXT. Defaults to false.
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 10 seconds.
snmp_offset | **Optional.** Add/substract the specified OFFSET to numeric sensor data.
snmp_output_delimiter | **Optional.** Separates output on multiple OID requests.
snmp_perf_oids | **Optional.** Label performance data with OIDs instead of --label's.
### snmpv3 <a id="plugin-check-command-snmpv3"></a>

View File

@ -1781,6 +1781,18 @@ object CheckCommand "snmp" {
set_if = "$snmp_getnext$"
description = "Use SNMP GETNEXT instead of SNMP GET"
}
"--offset" = {
value = "$snmp_offset$"
description = "Add/substract the specified OFFSET to numeric sensor data"
}
"-D" = {
value = "$snmp_output_delimiter$"
description = "Separates output on multiple OID requests"
}
"-O" = {
set_if = "$snmp_perf_oids$"
description = "Label performance data with OIDs instead of --label's"
}
}
vars.snmp_address = {{