ITL: Support weathermap data in snmp_interface CheckCommand

See https://github.com/dnsmichi/manubulon-snmp/pull/26 for related commit.

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Michael Newton 2017-09-29 13:33:03 -07:00 committed by Michael Friedrich
parent 84a1ee8c90
commit 88c863ae57
2 changed files with 5 additions and 0 deletions

View File

@ -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_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_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_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_perf | **Optional.** Enable perfdata values. Defaults to true.
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds. snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.

View File

@ -283,6 +283,10 @@ object CheckCommand "snmp-interface" {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Perfparse compatible output (no output when interface is down)" 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" vars.snmp_interface = "eth0"