check_snmp_int: support -a

refs #7963
This commit is contained in:
Alexander A. Klimov 2020-05-12 13:56:22 +02:00
parent d5d89b7f39
commit 1bb51c26d1
2 changed files with 5 additions and 0 deletions

View File

@ -2159,6 +2159,7 @@ snmp_interface_ifalias | **Optional.** Switch from IF-MIB::ifDescr to IF-MI
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.
snmp_interface_admin | **Optional.** Use administrative status instead of operational. Defaults to false.
### snmp-process <a id="plugin-check-command-snmp-process"></a>

View File

@ -297,6 +297,10 @@ object CheckCommand "snmp-interface" {
set_if = "$snmp_interface_weathermap$"
description = "Include 'weathermap' data for NagVis in performance data"
}
"-a" = {
set_if = "$snmp_interface_admin$"
description = "Use administrative status instead of operational"
}
}
vars.snmp_interface = "eth0"