mirror of https://github.com/Icinga/icinga2.git
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:
parent
301b72ceef
commit
e61d43468b
|
@ -1198,6 +1198,9 @@ snmp_rate_multiplier | **Optional.** Converts rate per second. For example, set
|
||||||
snmp_rate | **Optional.** Boolean. Enable rate calculation.
|
snmp_rate | **Optional.** Boolean. Enable rate calculation.
|
||||||
snmp_getnext | **Optional.** Boolean. Use SNMP GETNEXT. Defaults to false.
|
snmp_getnext | **Optional.** Boolean. Use SNMP GETNEXT. Defaults to false.
|
||||||
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 10 seconds.
|
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>
|
### snmpv3 <a id="plugin-check-command-snmpv3"></a>
|
||||||
|
|
||||||
|
|
|
@ -1781,6 +1781,18 @@ object CheckCommand "snmp" {
|
||||||
set_if = "$snmp_getnext$"
|
set_if = "$snmp_getnext$"
|
||||||
description = "Use SNMP GETNEXT instead of SNMP GET"
|
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 = {{
|
vars.snmp_address = {{
|
||||||
|
|
Loading…
Reference in New Issue