Merge pull request #8003 from Icinga/feature/snmp-interface-a-7963

check_snmp_int: support -a
This commit is contained in:
Julian Brost 2021-03-05 16:11:02 +01:00 committed by GitHub
commit 5ec66cea46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -2173,6 +2173,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"