[ZBX-18447] Unable to retrieve data from VMware ESXi - URL using bad/illegal format or missing URL Created: 2020 Oct 04  Updated: 2024 May 13  Resolved: 2024 May 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 5.0.4
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Wojciech Marusiak Assignee: Zabbix Support Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File 1.JPG     JPEG File 2.JPG     JPEG File ESXi - 1.jpg     JPEG File ESXi - 3.jpg     JPEG File ESXi -2 .jpg     PNG File Screen Shot 2021-04-21 at 13.14.30.png     PNG File Screen Shot 2021-04-21 at 13.14.35.png     PNG File Screen Shot 2021-07-06 at 10.36.59.png    

 Description   

Steps to reproduce:

VMware ESXi 7.0.0 (Build 16324942) is properly configured in Zabbix 5.0.4. Zabbix 5.0.4 runs on Ubuntu 20.04. In "latest data" I see error URL using bad/illegal format or missing URL - screenshot ESXi - 1.jpg.

ESXi configuration on screenshot 2&3.

 



 Comments   
Comment by Arturs Lontons [ 2020 Oct 06 ]

The URL looks perfectly fine. is the VMware host monitored by the server or the proxy? My initial guess would be that maybe the configuration hadn't synced yet with the proxy at that point? (if a proxy is involved, that is)

Comment by Arturs Lontons [ 2020 Nov 03 ]

Closing due to lack of activity.

Comment by Konstantin [ 2021 Apr 20 ]

I have exactly the same problem. Identical settings and the same error. How was this problem solved?

Comment by Wojciech Marusiak [ 2021 Apr 20 ]

It haven't been solved, I didn't have time to follow up.

Comment by dimir [ 2021 Apr 21 ]

Then please answer the questions from comment 1.

Comment by Wojciech Marusiak [ 2021 Apr 21 ]

Here is some additional info about my environment.
1. I don't have any proxy in my case. 

2. vCenter Server Appliance SNMP settings.

// Command> snmp.get
Config:
   Authentication: none
   Communities: zabbixpublic
   Enable: True
   Processlist: False
   Engineid: 80001f8880cfbbb05d5302806000000000
   Loglevel: warning
   Notraps: ''
   Port: 161
   Privacy: none
   Syscontact: ''
   Syslocation: ''
   Targets:
   Users:
   Remoteusers:
   V3targets:
   Pid: 33351

3. Zabbix server can resolve DNS name.

// wojcieh@zabbix:/var/log/zabbix$ nslookup vcsa.homelab01.localwojcieh@zabbix:/var/log/zabbix$ nslookup vcsa.homelab01.localServer: 192.168.255.220Address: 192.168.255.220#53
Name: vcsa.homelab01.localAddress: 192.168.251.51

4. VMware settings from Zabbix Server config

// ### Option: StartVMwareCollectors
#       Number of pre-forked vmware collector instances.
#
# Mandatory: no
# Range: 0-250
# Default:
 StartVMwareCollectors=2### Option: VMwareFrequency
#       How often Zabbix will connect to VMware service to obtain a new data.
#
# Mandatory: no
# Range: 10-86400
# Default:
 VMwareFrequency=15### Option: VMwarePerfFrequency
#       How often Zabbix will connect to VMware service to obtain performance data.
#
# Mandatory: no
# Range: 10-86400
# Default:
 VMwarePerfFrequency=15### Option: VMwareCacheSize
#       Size of VMware cache, in bytes.
#       Shared memory size for storing VMware data.
#       Only used if VMware collectors are started.
#
# Mandatory: no
# Range: 256K-2G
# Default:
 VMwareCacheSize=32M### Option: VMwareTimeout
#       Specifies how many seconds vmware collector waits for response from VMware service.
#
# Mandatory: no
# Range: 1-300
# Default:
 VMwareTimeout=30

5. From Zabbix Server I can access vCSA URL

// wojcieh@zabbix:/var/log/zabbix$ curl --insecure https://vcsa.homelab01.local
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
 <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">  <script type="text/javascript" src="./en/welcomeRes.js"> </script>
  <script type="text/javascript" src="./scripts/setUserLocale.js"> </script>
  <script type="text/javascript">document.write("<title>" + ID_VC_Welcome + "</title>");</script>  <link rel="stylesheet" href="./default.css" type="text/css" />
  <link rel="stylesheet" href="./print.css" type="text/css" media="print" />
  <meta name="description" content="VMware vSphere is virtual infrastructure software for partitioning, consolidating and managing systems in mission-critical environments. VMware ESX Server provides a highly scalable platform with advanced resource management capabilities, which can be managed by vSphere."/>
 </head>
 <body>
  <div id="header"><img src="./header-logo.png" width="586" height="42" alt="VMware vSphere 6" /></div>

6. Some info from debugging log

// 58001:20210421:130902.595   number of items: zabbix:45 snmp:0 ipmi:0 jmx:0
 58001:20210421:130902.595   tls:[connect:1 accept:1]
 58001:20210421:130902.596   tls:[issuer:'' subject:'']
 58001:20210421:130902.596   interfaceid:49
 58001:20210421:130902.596 hostid:10406 host:'vcsa.homelab01.local' name:'vcsa.homelab01.local' status:0
 58001:20210421:130902.596   proxy_hostid:0
 58001:20210421:130902.596   data_expected_from:1619003159
 58001:20210421:130902.596   zabbix:[available:0, errors_from:0 disable_until:0 error:'']
 58001:20210421:130902.596   snmp:[available:0, errors_from:0 disable_until:0 error:'']
 58001:20210421:130902.596   ipmi:[available:0, errors_from:0 disable_until:0 error:'']
 58001:20210421:130902.596   jmx:[available:0, errors_from:0 disable_until:0 error:'']
 58001:20210421:130902.596   availability_ts:1619003159
 58001:20210421:130902.596   maintenanceid:0 maintenance_status:0 maintenance_type:0 maintenance_from:0
 58001:20210421:130902.596   number of items: zabbix:0 snmp:0 ipmi:0 jmx:0
 58001:20210421:130902.596   tls:[connect:1 accept:1]
 58001:20210421:130902.596   tls:[issuer:'' subject:'']
 58001:20210421:130902.596   interfaceid:50
 58001:20210421:130902.596 End of DCdump_hosts()
 58001:20210421:130902.596 In DCdump_host_tags()
 58001:20210421:130902.596 End of DCdump_host_tags()
 58001:20210421:130902.596 In DCdump_proxies()
 58001:20210421:130902.596 End of DCdump_proxies()
 58001:20210421:130902.596 In DCdump_ipmihosts()
 58001:20210421:130902.596 End of DCdump_ipmihosts()
 58001:20210421:130902.596 In DCdump_host_inventories()
 58001:20210421:130902.596 hostid:10084 inventory_mode:1
 58001:20210421:130902.596   type: ''
 58001:20210421:130902.596   type_full: ''



001:20210421:130903.096   valuemapid:0
 58001:20210421:130903.096   lastlogsize:0 mtime:0
 58001:20210421:130903.096   delay:'1m' nextcheck:1619003344 lastclock:1619003284
 58001:20210421:130903.096   data_expected_from:1619003159
 58001:20210421:130903.096   history:1 history_sec:604800
 58001:20210421:130903.096   poller_type:0 location:1
 58001:20210421:130903.096   inventory_link:0
 58001:20210421:130903.096   priority:1 schedulable:1
 58001:20210421:130903.096   units:'!w/s' trends:1
 58001:20210421:130903.097 itemid:36005 hostid:10406 key:'vmware.eventlog[{$VMWARE.URL},skip]'
 58001:20210421:130903.097   type:3 value_type:2
 58001:20210421:130903.097   interfaceid:50
 58001:20210421:130903.097   state:1 error:'Couldn't resolve host name'
 58001:20210421:130903.097   flags:0 status:0
 58001:20210421:130903.097   valuemapid:0
 58001:20210421:130903.097   lastlogsize:0 mtime:0
 58001:20210421:130903.097   delay:'1m' nextcheck:1619003405 lastclock:0
 58001:20210421:130903.097   data_expected_from:1619003159
 58001:20210421:130903.097   history:1 history_sec:604800
 58001:20210421:130903.097   poller_type:0 location:1
 58001:20210421:130903.097   inventory_link:0
 58001:20210421:130903.097   priority:1 schedulable:1
 58001:20210421:130903.097   simple:[username:'{$VMWARE.USERNAME}' password:'{$VMWARE.PASSWORD}']
 58001:20210421:130903.097 itemid:36006 hostid:10406 key:'vmware.fullname[{$VMWARE.URL}]'
 58001:20210421:130903.097   type:3 value_type:1
 58001:20210421:130903.097   interfaceid:50
 58001:20210421:130903.097   state:1 error:'Couldn't resolve host name'
 58001:20210421:130903.097   flags:0 status:0
 58001:20210421:130903.097   valuemapid:0
 58001:20210421:130903.097   lastlogsize:0 mtime:0
 58001:20210421:130903.097   delay:'1h' nextcheck:1619003406 lastclock:0
 58001:20210421:130903.097   data_expected_from:1619003159
 58001:20210421:130903.097   history:1 history_sec:604800
 58001:20210421:130903.097   poller_type:0 location:1

58001:20210421:130903.097   lastlogsize:0 mtime:0
 58001:20210421:130903.097   delay:'1m' nextcheck:1619003405 lastclock:0
 58001:20210421:130903.097   data_expected_from:1619003159
 58001:20210421:130903.097   history:1 history_sec:604800
 58001:20210421:130903.097   poller_type:0 location:1
 58001:20210421:130903.097   inventory_link:0
 58001:20210421:130903.097   priority:1 schedulable:1
 58001:20210421:130903.097   simple:[username:'{$VMWARE.USERNAME}' password:'{$VMWARE.PASSWORD}']
 58001:20210421:130903.097 itemid:36006 hostid:10406 key:'vmware.fullname[{$VMWARE.URL}]'
 58001:20210421:130903.097   type:3 value_type:1
 58001:20210421:130903.097   interfaceid:50
 58001:20210421:130903.097   state:1 error:'Couldn't resolve host name'
 58001:20210421:130903.097   flags:0 status:0
 58001:20210421:130903.097   valuemapid:0
 58001:20210421:130903.097   lastlogsize:0 mtime:0
 58001:20210421:130903.097   delay:'1h' nextcheck:1619003406 lastclock:0
 58001:20210421:130903.097   data_expected_from:1619003159
 58001:20210421:130903.097   history:1 history_sec:604800
 58001:20210421:130903.097   poller_type:0 location:1
 58001:20210421:130903.097   inventory_link:0
 58001:20210421:130903.097   priority:1 schedulable:1
 58001:20210421:130903.097   simple:[username:'{$VMWARE.USERNAME}' password:'{$VMWARE.PASSWORD}']
 58001:20210421:130903.097   preprocessing:
 58001:20210421:130903.097   update_time:1619003159
 58001:20210421:130903.097       opid:56872 step:1 type:20 params:'1d' error_handler:0 error_handler_params:''
 58001:20210421:130903.097 itemid:36007 hostid:10406 key:'vmware.version[{$VMWARE.URL}]'
 58001:20210421:130903.097   type:3 value_type:1
 58001:20210421:130903.097   interfaceid:50
 58001:20210421:130903.097   state:1 error:'Couldn't resolve host name'
 58001:20210421:130903.097   flags:0 status:0
 58001:20210421:130903.097   valuemapid:0
 58001:20210421:130903.097   lastlogsize:0 mtime:0
 58001:20210421:130903.097   delay:'1h' nextcheck:1619003407 lastclock:0
 58001:20210421:130903.097   data_expected_from:1619003159
 58001:20210421:130903.097   history:1 history_sec:604800
 58001:20210421:130903.097   poller_type:0 location:1
 58001:20210421:130903.097   inventory_link:0
 58001:20210421:130903.097   priority:1 schedulable:1
 58001:20210421:130903.097   simple:[username:'{$VMWARE.USERNAME}' password:'{$VMWARE.PASSWORD}']
 58001:20210421:130903.097   preprocessing:
 58001:20210421:130903.097   update_time:1619003159
 58001:20210421:130903.097       opid:56873 step:1 type:20 params:'1d' error_handler:0 error

The same amount of errors is present even if I change configuration of the host to the IP in both of macros and agent. See screenshots.

Comment by Wojciech Marusiak [ 2021 Apr 21 ]

Issue still persist

Comment by Oleg [ 2021 Jul 05 ]

Use:

{$VMWARE.PASSWORD}
{$VMWARE.URL}
{$VMWARE.USERNAME}

https://internet-lab.ru/zabbix_vmware_missing_url

Comment by Wojciech Marusiak [ 2021 Jul 06 ]

@Oleg  - thanks it worked. I changed the vCSA hostname to IP (I had the agent configured to IP) anyway. After change of configuration I rebooted Zabbix server. Now it all works.

 

Comment by Michael Veksler [ 2024 May 13 ]

Closing this for now, if you have any more questions, feel free to reopen this ticket!

Generated at Sun Apr 27 09:27:32 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.