[ZBXNEXT-7754] VMWARE. Get Full IP address list of guest VMs and assign as interfaces. Created: 2022 May 30 Updated: 2024 Oct 03 Resolved: 2023 Nov 07 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | 6.2.0rc1 |
Fix Version/s: | 7.0.0alpha7, 7.0 (plan) |
Type: | New Feature Request | Priority: | Medium |
Reporter: | Andrey Tocko (Inactive) | Assignee: | Michael Veksler |
Resolution: | Fixed | Votes: | 18 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() |
||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Epic Link: | Zabbix 7.0 | ||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023) | ||||||||||||||||||||
Story Points: | 0.7 |
Description |
Currently discovery of Guest VMs vmware.vm.discovery returns one IP address, which is assigned as interface to host prototype. Consider possibility to fetch all the IP addresses, assigned to Guest in Vmware and add a full list as interfaces to hostprototype. For user to decide which one to use for custom checks. |
Comments |
Comment by Arch [ 2022 Jul 18 ] |
A filter for which subnets are added from discovery would be appreciated for this feature if it is added(and I hope it will be). Reason for that is some controller type VM's can have several interfaces for communication with hardware devices in different subnets. Only the management interface may be required for monitoring. |
Comment by Daniel Cournoyer [ 2022 Aug 08 ] |
I approve. Please add a filter to detect the IP in some subnets. I want to auto-add all our VM, which have Zabbix-Agent2 install automatic. So in the Host prototypes of the template, I add a Interfaces Agent to connect them. But since some VM have more than one IP/VLAN, the discovery get any IP, which is not working for some. |
Comment by Dimitri Bellini [ 2022 Sep 16 ] |
Hi DevTeam, |
Comment by Carl knibbs [ 2022 Dec 27 ] |
i have the same issue, if anyone has a workround id love to know.. I'm new to zabbix, I wonder if i can put a filter on some discovery rule |
Comment by Rafael Costa [ 2023 Jan 30 ] |
same issue here |
Comment by Sabari [ 2023 Feb 25 ] |
same issue here. would like to get this feature |
Comment by Jacob W Jeffers [ 2023 Jul 20 ] |
We are facing the same problem with VMs that have multiple IP addresses assigned to them. This feature would be much appreciated. |
Comment by Sabari [ 2023 Jul 21 ] |
A workaround on this is, in the VMWare Tools config, one can use the exclude-nics config to specific the nics that needs to be excluded. |
Comment by Michael Veksler [ 2023 Aug 28 ] |
Proposal: Taken into account that representation of vm in zabbix server is required only 1 correct interface/IP (the business reason for having multiple interfaces for a VM host prototype is still unknown ), we can do the following:
<MVekslers> The possible reason of a second interface is JMX or SNMP templates. It can be done with the same ip via second "host prototype" and "override" based on vmware tags (for example) |
Comment by Dimitri Bellini [ 2023 Aug 29 ] |
Hi Michael, Thanks so much |
Comment by Michael Veksler [ 2023 Oct 19 ] |
Available in:
|
Comment by Arturs Dancis [ 2023 Oct 31 ] |
Documentation (7.0) updated:
|
Comment by Michał Panasiewicz [ 2024 Oct 01 ] |
The problem that this modification to already existing machines adds a duplicate interface, which can not be removed because it is associated with existing items. |
Comment by Michael Veksler [ 2024 Oct 01 ] |
It's not entirely clear, this change just shows information about available IP addresses for the VMs and does not create additional interfaces |
Comment by Michał Panasiewicz [ 2024 Oct 02 ] |
The last point of this instruction - changing the host prototype: This point will not replace, unfortunately, the interface entries but will add another interface. |
Comment by Aleksandr Kotsegubov [ 2024 Oct 03 ] |
You could also try to add the "{#VM.IP}" macro to the VM discovery rule, instead of creating new macro "{#MYLAB.NET.IF}". This way, the value based on JSONPATH will replace the incoming value of the "{#VM.IP}" macro and you don't need to change the interface on the host prototype. In this case, the IP address can be replaced without errors. I tested this solution on a latest build from the master branch.
However, keep in mind:
|