Ad Widget

Collapse

URL using bad/illegal format or missing URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • basildane
    Junior Member
    • Apr 2022
    • 4

    #1

    URL using bad/illegal format or missing URL

    Zabbix 6.0.3 running on Ubuntu 20.04 server.
    I am trying to monitor my vCenter 6.5.

    I created an account [email protected] which is in the administrators group on vCenter.
    {$VMWARE_URL} is set to https://myvCenter/sdk

    I downloaded the CA certificates as per the instructions and ran dpkg-reconfigure ca-certificates.
    I restarted zabbix-server

    I created a host with VMware FQDN.

    But it doesn't populate any items, and it returns "URL using bad/illegal format or missing URL"

    Any more suggestions?
  • tfonias74
    Junior Member
    • Aug 2021
    • 8

    #2

    Hello, just managed to make it work for standalone ESXi (not vcenter).

    I didn't do anything regarding the certificates you mention.

    My Host is like this:

    Hostname: FQDN
    Interface: Agent (IP of host+ DNS name, def port)
    Templates: VMWare + VMWare Guest + VMWare Hypervisor
    Macros: {$VMWARE.HV.UUID} + {$VMWARE.PASSWORD} + {$VMWARE.URL} + {$VMWARE.USERNAME}
    UUID you need and can get via PowerCLI:
    Code:
    Get-View -ViewType HostSystem -Property Name,hardware.systeminfo | Select-Object Name,@{N="UUID";E={$_.hardware.systeminfo.uuid}}
    Hope this helps.

    Comment


    • david_sf96
      david_sf96 commented
      Editing a comment
      Thank you, but I have a question: 'Where do you put the command that you mentioned before?' because I have tried to open a session using putty trying to connect to the ip address of my vcenter, I typed the command that you mentioned before and I get the following error :' Unknown command Get-View'. Do I have to download or install anything? Thank you
  • david_sf96
    Junior Member
    • Sep 2022
    • 1

    #3
    Thank you, but I have a question: 'Where do you put the command that you mentioned before?' because I have tried to open a session using putty trying to connect to the ip address of my vcenter, I typed the command that you mentioned before and I get the following error :' Unknown command Get-View'. Do I have to download or install anything? Thank you.

    In my case, I have created on my vcenter a read-only user and in my zabbix I have the following macros in the same order:

    {$PASSWORD}=>(Password of the read-only user)
    {$SNMP_COMMUNITY}=>(community that I have configured)
    {$SNMP_PORT}=>161(SNMP Port)
    {$URL}=>https://(public ip of my vcenter)/sdk
    {$USERNAME}=>(name of the read-only user)


    I still get no response from the vcenter, so no lights are turned on Click image for larger version

Name:	image.png
Views:	3649
Size:	2.6 KB
ID:	451932

    Is there anything that I am missing? How can I get the UUID? Because I have the problem that I mentioned above.


    Notice that I have installed zabbix 4.4

    Comment

    Working...