Ad Widget

Collapse

Integrate "Cloudflare by HTTP" Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enthusiast
    Junior Member
    • Mar 2025
    • 1

    #1

    Integrate "Cloudflare by HTTP" Template

    Hello,

    I have an domain in CloudFlare, so I want do monitor it via Zabbix (7.2)
    I import the Template form here
    Generate token and edit the Macros.

    When test the access via terminal on Debian host, the returned messegaes is:
    {"result":{"id":"522..........aa9" ,"status":"active"},"success":true,"errors":[],"messages":[{"code":10000,"message":"This API Token is valid and active","type":null}]}root@debian--------3:~#

    But in Zabbix I heve error:
    Cannot execute script: Requesting failed: Request failed with status code 401: {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}


    Did you have any idea for it?
  • PavelZ
    Senior Member
    • Dec 2024
    • 162

    #2
    It doesn't work for us sometimes. I think Cloudflare itself simply blocks requests.
    The machine accesses an API protected from other machines. Can this work?
    However, everything works for quite long periods

    Comment

    • Brambo
      Senior Member
      • Jul 2023
      • 245

      #3
      FYI: Cloudflare is blocking (or is going to do it soon) every API HTTP request. They will be redirected to HTTPS but not sure if this template works with that.
      See https://blog.cloudflare.com/https-on...rtext-traffic/

      I don't use this template and also haven't imported it so not sure how the template works but based on the title HTTP was my trigger to post the info
      Last edited by Brambo; 24-03-2025, 09:04.

      Comment

      • PavelZ
        Senior Member
        • Dec 2024
        • 162

        #4
        This template have macro {$CLOUDFLARE.API.URL} with default value set to https - https://api.cloudflare.com/client/v4
        Just try not to mess up anything in your credentials. Everything should work, but you don't need to refresh the data too often. And some data is not available on free plans.

        Comment

        • svariyar
          Junior Member
          • May 2025
          • 1

          #5
          It polls in 1 hour only and graph doesnt seems to be correct (as same value for 1 hour). Anyone could pls help to get a template for lesser poll duration like 1 min or so. I tried editing with httpRequests1hGroups to "httpRequests1mGroups". its also a GraphQL datasets but gets an error "Cannot execute script: Requesting failed: Request failed with error "unknown field "requests"". Anybody pls help
          Last edited by svariyar; 18-05-2025, 13:47.

          Comment

          • PavelZ
            Senior Member
            • Dec 2024
            • 162

            #6
            I thought that in order to request more often, a commercial subscription was needed. But this template is made suitable for everyone.
            I think if you know the cloudflare prices you will change your mind.

            Comment

            Working...