Ad Widget

Collapse

Proxmox server throwing 403 error for monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheGorf
    Junior Member
    • Aug 2025
    • 6

    #1

    Proxmox server throwing 403 error for monitoring

    This is y Zabbix 7.4.1 server. I've configured my API key and user and everything seems to be fine. But when I add the host, all the standard checks come back with HTTP 403 errors:
    Cannot perform request: Operation timed out after 3003 milliseconds with 0 bytes received
    Click image for larger version

Name:	zabbix_errros.png
Views:	205
Size:	292.9 KB
ID:	506518

    I was reading this thread: https://forum.proxmox.com/threads/mo...orking.112477/

    Where they mentioned manually running the check, but I can't figure out anything that describes how to do that. I'm hoping someone can help me out. Because I can't figure out for the life of me how to troubleshoot this.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    From zabbix server or proxy command line, whichever is doing these queries for you... using curl for example.
    That tmeplate has 3 main items. "API service status", "Get cluster resources", "Get cluster status". All the rest is based on the data obtained from those "Get.. " items.
    If you open the items config you will see URL-s there
    Code:
    https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/cluster/status
    https://{$PVE.URL.HOST}:{$PVE.URL.PORT}/api2/json/cluster/resources
    And also authorization headers config... Using all this knowledge, replace macros with real values, construct correct curl command line and test, do you have connection, do you get anything back etc... use "time" command to understand, how long it takes, if you get answers... It might be a simple solution to just increase the timeout in item config.. default is 3 sec (as your 3003ms indicates also)...

    Comment

    • TheGorf
      Junior Member
      • Aug 2025
      • 6

      #3
      Sorry, what does authorization headers config mean?

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1782

        #4
        This is how I configure PVE:
        • User group: monitoring
        • User: zabbix (member of monitoring group)
        • Permissions: monitoring group is assigned PVEAuditor role (path = /, propagation = true)
        • API token is created for zabbix user (expire = never, privilege separation = no)
        Then configure the Zabbix template according to the template instructions.

        Update: From the template instructions:
        • Copy the resulting Token ID and Secret into the host macros {$PVE.TOKEN.ID} and {$PVE.TOKEN.SECRET}.
        • Set the hostname or IP address of the Proxmox API VE host in the {$PVE.URL.HOST} macro. You can also change the API port in the {$PVE.URL.PORT} macro if necessary.
        Markku
        Last edited by Markku; 27-08-2025, 07:32. Reason: Added setup instructions from the template

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Originally posted by TheGorf
          Sorry, what does authorization headers config mean?
          Click image for larger version

Name:	image.png
Views:	91
Size:	7.8 KB
ID:	506582

          Does this explain enough?

          Comment

          • TheGorf
            Junior Member
            • Aug 2025
            • 6

            #6
            Originally posted by cyber

            Click image for larger version

Name:	image.png
Views:	91
Size:	7.8 KB
ID:	506582

            Does this explain enough?
            No. What is that? Where is it in the console? How do I get to it? Then, what do I do with it? Can you point me to the specific documentation that explains how to use it to use the curl tool?

            Comment

            • Markku
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Sep 2018
              • 1782

              #7
              I'd recommend just trying what I said above and only going to curl route if nothing else helps. I just implemented two PVE servers with the Proxmox VE by HTTP template with that setup.

              Markku

              Comment

              • TheGorf
                Junior Member
                • Aug 2025
                • 6

                #8
                Originally posted by Markku
                I'd recommend just trying what I said above and only going to curl route if nothing else helps. I just implemented two PVE servers with the Proxmox VE by HTTP template with that setup.

                Markku
                I basically walked back through what you recommended. I can't get it to work. The API just keeps throwing 401's.

                Click image for larger version

Name:	zabbix_host_configuration.png
Views:	120
Size:	41.7 KB
ID:	506746
                Click image for larger version

Name:	zabbix_host_configuration_error.png
Views:	116
Size:	51.9 KB
ID:	506747

                Comment

                • TheGorf
                  Junior Member
                  • Aug 2025
                  • 6

                  #9
                  Ping. Anyone?

                  Comment

                  Working...