Ad Widget

Collapse

Proxmox VE by HTTP - Not Working

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • flavio.bk
    Junior Member
    • May 2022
    • 8

    #1

    Proxmox VE by HTTP - Not Working

    I searched before but I didn't find any tips about the cause that my zabbix monitoring doesn't work.

    Template Proxmox VE by HTTP
    https://git.zabbix.com/projects/ZBX/...Frelease%2F6.0


    So, my scenary:

    - Pve 6.4-4
    -- API TOKEN configured
    --- Uncheck Privilege Separation option

    - Zabbix 6.0.5
    -- Template Proxmox VE by HTTP imported
    -- Macros were set up.

    Click image for larger version  Name:	macros-proxmox.png Views:	0 Size:	17.1 KB ID:	448126

    Some itens were discovered, API Status returned OK (200) but all the other LLD itens need the Master Item: Proxmox: Get cluster resources / and Status.

    Click image for larger version  Name:	proxmox-itens.png Views:	0 Size:	138.1 KB ID:	448131


    This itens don't return anything.

    Click image for larger version  Name:	proxmox-test-item-cluster-status.png Views:	0 Size:	93.6 KB ID:	448132

    On the next prints, I tested the Itens:

    TESTING Proxmox: Get cluster status
    Click image for larger version  Name:	proxmox-test-item-cluster-status2.png Views:	0 Size:	63.5 KB ID:	448130



    TESTING Proxmox: Get cluster resources
    Click image for larger version  Name:	proxmox-test-item-resource.png Views:	0 Size:	50.3 KB ID:	448128



    With this informations, does anyone can give some help ?
    Last edited by flavio.bk; 18-07-2022, 20:48.
  • Answer selected by flavio.bk at 20-07-2022, 19:08.
    flavio.bk
    Junior Member
    • May 2022
    • 8

    Problem Solved:

    I created a new PVE ApiToken/Secret, change the Macros, and wait 30min
    All data have been received.

    Comment

    • flavio.bk
      Junior Member
      • May 2022
      • 8

      #2
      Problem Solved:

      I created a new PVE ApiToken/Secret, change the Macros, and wait 30min
      All data have been received.

      Comment

      • mreynoso
        Junior Member
        • Aug 2022
        • 1

        #3
        Originally posted by flavio.bk
        Problem Solved:

        I created a new PVE ApiToken/Secret, change the Macros, and wait 30min
        All data have been received.
        Hi flavio.bk,

        Is possible to show me how to configure Proxmox (permissions and API Token/Secret) in proxmox to make it work? I'm Actually has the same problem with Proxmox 7.2 and Zabbix 6.2. The template documentation is no enough clear.

        Thank you.

        Comment

        • raslin
          Junior Member
          • Oct 2022
          • 1

          #4
          Hi All
          Im quite new to zabbix, coming from icinga2 and nagios.
          And you know, beginnings can be very hard!

          I cannot get zabbix to check our proxmox cluster
          Zabbix version 6.2
          Proxmox version 7.2.7

          I have created the api token, and assigned all needed privs.
          For troubleshooting i have even given the token admin privs.

          Zabbix reports:
          'Proxmox: API service not available '

          I have successfully accessed the api through curl from the zabbix server.
          root@bne-zabbix01:/var/log/zabbix# wget https://xxxxxxx:8006/api2/json/access
          --2022-10-22 09:19:57-- https://xxxxxxx:8006/api2/json/access
          Resolving bxxxxxxx (xxxxxxx)... 10.35.3.2
          Connecting to xxxxxxx (xxxxxxx)|10.35.3.2|:8006... connected.


          Looking in zabbix_server.log i see:
          43526:20221022:090725.641 Proxmox API failed: *UNKNOWN* Error: Error: cannot get URL: Couldn't resolve host name.
          43524:20221022:091035.295 Proxmox API failed: *UNKNOWN* Error: Error: cannot get URL: Couldn't resolve host name.
          43523:20221022:091535.440 Proxmox API failed: *UNKNOWN* Error: Error: cannot get URL: Couldn't resolve host name.

          I have even tried reconfiguring the host within zabbix with ip instead of fqdn
          Screenshots of config attached

          Can any of you point me in the right direction ?

          All the best

          Ras





          Attached Files

          Comment

          • Homex
            Junior Member
            • Nov 2017
            • 1

            #5
            Hi Raslin

            The template use the variable {HOST.CONN}

            So please check that you put IP or DNS name in Interfaces/Agent section

            Comment

            • simpo
              Junior Member
              • Aug 2023
              • 1

              #6
              Hi is there any way to tshoot the error Unknown Error (520)

              Comment

              Working...