Hi!
I created API token for Zabbix monitoring with this permissions and my Zabbix server external IP:

But get an errors in Zabbix server log like:
If I remove IP address filterring from Cloudflare I get another errors:
So, looks like my API token and Zone ID is ok, but
I created API token for Zabbix monitoring with this permissions and my Zabbix server external IP:
But get an errors in Zabbix server log like:
Code:
error reason for "cloudflare:cloudflare.uniques.all" changed: Cannot execute script: Requesting failed: Request failed with status code 401: {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
If I remove IP address filterring from Cloudflare I get another errors:
Code:
error reason for "cloudflare:cloudflare.bandwidth.ssl.unencrypted" changed: Preprocessing failed for: {}
1. Failed: cannot extract value from json by path "$.bandwidth.unencrypted": no data matches the specified path zz0.e614ouhot8hzz
- Something wrong with IP. But I successfully test it with curl to https://api.cloudflare.com/client/v4/user/token... from the Zabbix server ssh console. Zabbix server is in docker container, if it depends. Is there any way to debug template requests?
- Even if I will solve IP problem, looks like API answers is not processed by template. I think it may depend on API permissions. Do I need to add some?
Comment