Ad Widget

Collapse

VMware Template pull the wrong IP for some ESXi Hosts and VMs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maul0r
    Junior Member
    • Jul 2021
    • 3

    #1

    VMware Template pull the wrong IP for some ESXi Hosts and VMs

    Hi All,

    I am trying to get on board with monitoring our infrastructure with zabbix - but I am a complete beginner.

    I have installed the latest zabbix version and I imported my first vCenter. The discovery found my hypervisors, but for some, it wrote the wrong IP in the interface section, causing the hypervisor to appear as down.

    Backgound: My ESXi Hosts have three VMKernel Ports:

    vmk0: reachable from the outside but used for nothing else
    vmk1: vMotion
    vmk2: MGMT (non routed private IP address not accessible via anything but the hypervisors).

    Click image for larger version

Name:	pic.png
Views:	846
Size:	6.0 KB
ID:	428093

    I found that all of them had vmk0 and 2 with Management enabled, even the one where the IP was discovered correctly. I have since disabled this, and only enabled Management for vmk2. I then deleted the hosts and waited for a new discovery but no change. Host 1 had the correct address, Host 2 did not.
    I have since cloned host 2 to manually edit the IP address, this seems to work, but I'd like to avoid doing that for all hosts.

    Furthermore I have a VM with a single NIC and VMware Tools installed, where the IP address of a Tunnel adapter Local Area Connection* 2 is used, instead of the one from the only Ethernet Adapter.

    Lastly, when I click on that particular VM, the field Groups, show the ESXi host on which it resides. I am testing this right now, but I am guessing that will not update once I move the VM to a different host?

    So my main question is, how can I fix the templates to that the right IP address will be read out? I found references to "#HV.IP" but I am not sure what do with that and where it comes from..

    Thanks for your help!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you are using 5.2.4 and have the same situation as the problem at the URL below, it should be improved in the next version.

    ZBX-19624 : Wrong ip detection for vmware HV in case of multiple instances of management interfaces

    Comment


    • maul0r
      maul0r commented
      Editing a comment
      thanks, I provided a comment on that issue.
Working...