mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5640 from miken32/patch-1
ITL: Support weathermap data in snmp_interface CheckCommand
This commit is contained in:
commit
9dc5f29b6c
|
@ -2042,6 +2042,7 @@ snmp_interface_delta | **Optional.** Delta time of perfcheck. Defaults to
|
|||
snmp_interface_warncrit_percent | **Optional.** Make the warning and critical levels in % of reported interface speed. If set, **snmp_interface_megabytes** needs to be set to false. Defaults to false.
|
||||
snmp_interface_ifname | **Optional.** Switch from IF-MIB::ifDescr to IF-MIB::ifName when looking up the interface's name.
|
||||
snmp_interface_ifalias | **Optional.** Switch from IF-MIB::ifDescr to IF-MIB::ifAlias when looking up the interface's name.
|
||||
snmp_interface_weathermap | **Optional.** Output data for ["weathermap" lines](http://docs.nagvis.org/1.9/en_US/lines_weathermap_style.html) in NagVis. **Depends** on `snmp_interface_perf` set to true. Defaults to `false`. **Note**: Available in `check_snmp_int.pl v2.1.0`.
|
||||
snmp_perf | **Optional.** Enable perfdata values. Defaults to true.
|
||||
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
|
||||
|
||||
|
|
|
@ -283,6 +283,10 @@ object CheckCommand "snmp-interface" {
|
|||
set_if = "$snmp_perf$"
|
||||
description = "Perfparse compatible output (no output when interface is down)"
|
||||
}
|
||||
"-W" = {
|
||||
set_if = "$snmp_interface_weathermap$"
|
||||
description = "Include 'weathermap' data for NagVis in performance data"
|
||||
}
|
||||
}
|
||||
|
||||
vars.snmp_interface = "eth0"
|
||||
|
|
Loading…
Reference in New Issue