Setup:

  1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.
  2. Link the template to the host.
    1. Configuration → Host → Create a host
    2. Host Name: put your host name
      Templates: Cloudflare by HTTP
      Groups: Cloudflare
  3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
    1. For {$CLOUDFLARE.API.TOKEN} go to your Cloudflare account → Websites → select your website → API → Get your API token → to the new page click to create token → Click the template you want (Read all resources) → go down to the page and click continue to summary → click to create token → copy the token → go to your Zabbix and edit the macros of your host → Inherited and host macros → find the right Macro click to change and paste the token.
    2. For {$CLOUDFLARE.ZONE_ID}: Go to your Cloudflare account → Websites → select your website → API → copy the Zone ID → Go to your Zabbix edit the macros of your host → Inherited and host macros → find the right Macro click to change and paste the Zone ID