mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +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 #5028 fixes #5032 Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
This commit is contained in:
parent
118d36f384
commit
2ce3fcc514
@ -2468,6 +2468,7 @@ interfaces_aliases | **Optional.** Retrieves the interface description.
|
|||||||
interfaces_match_aliases | **Optional.** Also match against aliases (Option --aliases automatically enabled).
|
interfaces_match_aliases | **Optional.** Also match against aliases (Option --aliases automatically enabled).
|
||||||
interfaces_timeout | **Optional.** Sets the SNMP timeout (in ms).
|
interfaces_timeout | **Optional.** Sets the SNMP timeout (in ms).
|
||||||
interfaces_sleep | **Optional.** Sleep between every SNMP query (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
|
#### <a id="plugin-contrib-command-nwc_health"></a> nwc_health
|
||||||
|
|
||||||
|
@ -489,6 +489,10 @@ object CheckCommand "interfaces" {
|
|||||||
value = "$interfaces_sleep$"
|
value = "$interfaces_sleep$"
|
||||||
description = "Sleep between every SNMP query (in ms)."
|
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$"
|
vars.interfaces_address = "$check_address$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user