ITL: Add ifalias to snmp_interface manubulon CheckCommand

fixes #114
This commit is contained in:
Michael Friedrich 2017-02-07 17:25:47 +01:00
parent 5ace3462ae
commit ae258f0eca
2 changed files with 6 additions and 1 deletions

View File

@ -1906,7 +1906,8 @@ snmp_interface_errors | **Optional.** Add error & discard to Perfparse out
snmp_interface_noregexp | **Optional.** Do not use regexp to match interface name in description OID. Defaults to false. snmp_interface_noregexp | **Optional.** Do not use regexp to match interface name in description OID. Defaults to false.
snmp_interface_delta | **Optional.** Delta time of perfcheck. Defaults to "300" (5 min). snmp_interface_delta | **Optional.** Delta time of perfcheck. Defaults to "300" (5 min).
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_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

@ -193,6 +193,9 @@ object CheckCommand "snmp-interface" {
"-N" = { "-N" = {
set_if = "$snmp_interface_ifname$" set_if = "$snmp_interface_ifname$"
} }
"-A" = {
set_if = "$snmp_interface_ifalias$"
}
"-f" = { "-f" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
} }
@ -210,6 +213,7 @@ object CheckCommand "snmp-interface" {
vars.snmp_interface_delta = 300 vars.snmp_interface_delta = 300
vars.snmp_interface_warncrit_percent = false vars.snmp_interface_warncrit_percent = false
vars.snmp_interface_ifname = false vars.snmp_interface_ifname = false
vars.snmp_interface_ifalias = false
vars.snmp_warn = "300,400" vars.snmp_warn = "300,400"
vars.snmp_crit = "0,600" vars.snmp_crit = "0,600"
vars.snmp_perf = true vars.snmp_perf = true