1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Add --if-names option to check_interfaces

Sinve version 1.3 check_interfaces supports an option to query ifName instead
of ifDescr, which is helpful eg. FortiOS 5.4 devices.

fixes 
fixes 

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
This commit is contained in:
Stephan Tesch 2017-02-23 17:18:18 +00:00 committed by Gunnar Beutner
parent 118d36f384
commit 2ce3fcc514
2 changed files with 5 additions and 0 deletions

@ -2468,6 +2468,7 @@ interfaces_aliases | **Optional.** Retrieves the interface description.
interfaces_match_aliases | **Optional.** Also match against aliases (Option --aliases automatically enabled).
interfaces_timeout | **Optional.** Sets the SNMP timeout (in ms).
interfaces_sleep | **Optional.** Sleep between every SNMP query (in ms).
interfaces_names | **Optional.** If set to true, use ifName instead of ifDescr.
#### <a id="plugin-contrib-command-nwc_health"></a> nwc_health

@ -489,6 +489,10 @@ object CheckCommand "interfaces" {
value = "$interfaces_sleep$"
description = "Sleep between every SNMP query (in ms)."
}
"--if-names" = {
set_if = "$interfaces_names$"
description = "Use ifName instead of ifDescr."
}
}
vars.interfaces_address = "$check_address$"