-
Patch request
-
Resolution: Fixed
-
Trivial
-
6.4.12
-
Rocky9, Selinux permissive
Postgres
-
1
Steps to reproduce:
- Generate API token in Cloudflare with the correct permissions.
- Create a new host in data collection -> hosts with the zone name
- add host groups and other settings as required
- add the cloudflare by http template
- refer to the docuemntation for the cloudflare integration and create the macros per (https://www.zabbix.com/integrations/cloudflare) including the zone id and api key
- save and await for the script to run
- tail -100f /var/log/zabbix/zabbix_server.log
Result:
While tailing the log see the following lines
[ Cloudflare ] ERROR: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.get" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.bandwidth.all" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.requests.others_ratio" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.threats.all" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.requests.uncached" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.requests.success_ratio" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
422117:20240309:220951.690 item "REDACTED.REDACTED:cloudflare.requests.ssl.unencrypted" became not supported: Cannot execute script: Requesting failed: Request failed with error "unknown field "requestscachedRequestsencryptedRequestsresponseStatusMap"".
...
Expected:
Data to populate