Skip to content
This repository has been archived by the owner on Jul 1, 2019. It is now read-only.

Commit

Permalink
ITL: Support weathermap data in snmp_interface CheckCommand
Browse files Browse the repository at this point in the history
See SteScho/manubulon-snmp#26 for related commit.

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
  • Loading branch information
miken32 authored and Michael Friedrich committed Oct 12, 2017
1 parent e615167 commit a48bec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 4 additions & 0 deletions itl/command-plugins-manubulon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a48bec7

Please sign in to comment.