From: Michael Newton Date: Fri, 29 Sep 2017 20:33:03 +0000 (-0700) Subject: ITL: Support weathermap data in snmp_interface CheckCommand X-Git-Tag: v2.8.0~44^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F5640%2Fhead;p=icinga2 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 --- diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 7629e05ed..c9c1c9a67 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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. diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf index a84aee7c2..2a08882d9 100644 --- a/itl/command-plugins-manubulon.conf +++ b/itl/command-plugins-manubulon.conf @@ -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"