VOOZH about

URL: https://www.zabbix.com/integrations/cloudflare

⇱ Cloudflare monitoring and integration with Zabbix


Propose integration

Cloudflare

Cloudflare, Inc. is an American web infrastructure and website security company that provides content delivery network and DDoS mitigation services. Cloudflare's services sit between a website's visitor and the Cloudflare customer's hosting provider, acting as a reverse proxy for websites.

Available solutions




This template is for Zabbix version: 7.4

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/7.4

Cloudflare by HTTP

Overview

This template is designed for the effortless deployment of Cloudflare monitoring by Zabbix via HTTP and doesn't require any external scripts.

Requirements

Zabbix version: 7.4 and higher.

Tested versions

This template has been tested on:

  • Cloudflare

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Macros used

Name Description Default
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50

Items

Name Description Type Key and additional info
Total bandwidth

The volume of all data.

Dependent item cloudflare.bandwidth.all

Preprocessing

  • JSON Path: $.bandwidth.all

Cached bandwidth

The volume of cached data.

Dependent item cloudflare.bandwidth.cached

Preprocessing

  • JSON Path: $.bandwidth.cached

Uncached bandwidth

The volume of uncached data.

Dependent item cloudflare.bandwidth.uncached

Preprocessing

  • JSON Path: $.bandwidth.uncached

Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

Dependent item cloudflare.bandwidth.cache_hit_ratio

Preprocessing

  • JSON Path: $.bandwidth.cache_hit_ratio

SSL encrypted bandwidth

The volume of encrypted data.

Dependent item cloudflare.bandwidth.ssl.encrypted

Preprocessing

  • JSON Path: $.bandwidth.encrypted

Unencrypted bandwidth

The volume of unencrypted data.

Dependent item cloudflare.bandwidth.ssl.unencrypted

Preprocessing

  • JSON Path: $.bandwidth.unencrypted

DNS queries

The amount of all DNS queries.

Dependent item cloudflare.dns.query.all

Preprocessing

  • JSON Path: $.dns.query.all

Stale DNS queries

The number of stale DNS queries.

Dependent item cloudflare.dns.query.stale

Preprocessing

  • JSON Path: $.dns.query.stale

Uncached DNS queries

The number of uncached DNS queries.

Dependent item cloudflare.dns.query.uncached

Preprocessing

  • JSON Path: $.dns.query.uncached

Get data

The JSON with result of Cloudflare API request.

Script cloudflare.get
Total page views

The amount of all pageviews.

Dependent item cloudflare.pageviews.all

Preprocessing

  • JSON Path: $.pageviews.all

Total requests

The amount of all requests.

Dependent item cloudflare.requests.all

Preprocessing

  • JSON Path: $.requests.all

Cached requests Dependent item cloudflare.requests.cached

Preprocessing

  • JSON Path: $.requests.cached

Uncached requests

The number of uncached requests.

Dependent item cloudflare.requests.uncached

Preprocessing

  • JSON Path: $.requests.uncached

Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

Dependent item cloudflare.requests.cache_hit_ratio

Preprocessing

  • JSON Path: $.requests.cache_hit_ratio

Response codes 1xx

The number requests with 1xx response codes.

Dependent item cloudflare.requests.response_100

Preprocessing

  • JSON Path: $.requests.response_100

Response codes 2xx

The number requests with 2xx response codes.

Dependent item cloudflare.requests.response_200

Preprocessing

  • JSON Path: $.requests.response_200

Response codes 3xx

The number requests with 3xx response codes.

Dependent item cloudflare.requests.response_300

Preprocessing

  • JSON Path: $.requests.response_300

Response codes 4xx

The number requests with 4xx response codes.

Dependent item cloudflare.requests.response_400

Preprocessing

  • JSON Path: $.requests.response_400

Response codes 5xx

The number requests with 5xx response codes.

Dependent item cloudflare.requests.response_500

Preprocessing

  • JSON Path: $.requests.response_500

Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.others_ratio

Preprocessing

  • JSON Path: $.requests.others_ratio

2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.success_ratio

Preprocessing

  • JSON Path: $.requests.success_ratio

SSL encrypted requests

The number of encrypted requests.

Dependent item cloudflare.requests.ssl.encrypted

Preprocessing

  • JSON Path: $.requests.encrypted

Unencrypted requests

The number of unencrypted requests.

Dependent item cloudflare.requests.ssl.unencrypted

Preprocessing

  • JSON Path: $.requests.unencrypted

Total threats

The number of all threats.

Dependent item cloudflare.threats.all

Preprocessing

  • JSON Path: $.threats.all

Unique visitors

The number of all visitors IPs.

Dependent item cloudflare.uniques.all

Preprocessing

  • JSON Path: $.uniques.all

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} Warning
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} Average

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

This template is for Zabbix version: 7.2

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/7.2

Cloudflare by HTTP

Overview

This template is designed for the effortless deployment of Cloudflare monitoring by Zabbix via HTTP and doesn't require any external scripts.

Requirements

Zabbix version: 7.2 and higher.

Tested versions

This template has been tested on:

  • Cloudflare

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Macros used

Name Description Default
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50

Items

Name Description Type Key and additional info
Total bandwidth

The volume of all data.

Dependent item cloudflare.bandwidth.all

Preprocessing

  • JSON Path: $.bandwidth.all

Cached bandwidth

The volume of cached data.

Dependent item cloudflare.bandwidth.cached

Preprocessing

  • JSON Path: $.bandwidth.cached

Uncached bandwidth

The volume of uncached data.

Dependent item cloudflare.bandwidth.uncached

Preprocessing

  • JSON Path: $.bandwidth.uncached

Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

Dependent item cloudflare.bandwidth.cache_hit_ratio

Preprocessing

  • JSON Path: $.bandwidth.cache_hit_ratio

SSL encrypted bandwidth

The volume of encrypted data.

Dependent item cloudflare.bandwidth.ssl.encrypted

Preprocessing

  • JSON Path: $.bandwidth.encrypted

Unencrypted bandwidth

The volume of unencrypted data.

Dependent item cloudflare.bandwidth.ssl.unencrypted

Preprocessing

  • JSON Path: $.bandwidth.unencrypted

DNS queries

The amount of all DNS queries.

Dependent item cloudflare.dns.query.all

Preprocessing

  • JSON Path: $.dns.query.all

Stale DNS queries

The number of stale DNS queries.

Dependent item cloudflare.dns.query.stale

Preprocessing

  • JSON Path: $.dns.query.stale

Uncached DNS queries

The number of uncached DNS queries.

Dependent item cloudflare.dns.query.uncached

Preprocessing

  • JSON Path: $.dns.query.uncached

Get data

The JSON with result of Cloudflare API request.

Script cloudflare.get
Total page views

The amount of all pageviews.

Dependent item cloudflare.pageviews.all

Preprocessing

  • JSON Path: $.pageviews.all

Total requests

The amount of all requests.

Dependent item cloudflare.requests.all

Preprocessing

  • JSON Path: $.requests.all

Cached requests Dependent item cloudflare.requests.cached

Preprocessing

  • JSON Path: $.requests.cached

Uncached requests

The number of uncached requests.

Dependent item cloudflare.requests.uncached

Preprocessing

  • JSON Path: $.requests.uncached

Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

Dependent item cloudflare.requests.cache_hit_ratio

Preprocessing

  • JSON Path: $.requests.cache_hit_ratio

Response codes 1xx

The number requests with 1xx response codes.

Dependent item cloudflare.requests.response_100

Preprocessing

  • JSON Path: $.requests.response_100

Response codes 2xx

The number requests with 2xx response codes.

Dependent item cloudflare.requests.response_200

Preprocessing

  • JSON Path: $.requests.response_200

Response codes 3xx

The number requests with 3xx response codes.

Dependent item cloudflare.requests.response_300

Preprocessing

  • JSON Path: $.requests.response_300

Response codes 4xx

The number requests with 4xx response codes.

Dependent item cloudflare.requests.response_400

Preprocessing

  • JSON Path: $.requests.response_400

Response codes 5xx

The number requests with 5xx response codes.

Dependent item cloudflare.requests.response_500

Preprocessing

  • JSON Path: $.requests.response_500

Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.others_ratio

Preprocessing

  • JSON Path: $.requests.others_ratio

2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.success_ratio

Preprocessing

  • JSON Path: $.requests.success_ratio

SSL encrypted requests

The number of encrypted requests.

Dependent item cloudflare.requests.ssl.encrypted

Preprocessing

  • JSON Path: $.requests.encrypted

Unencrypted requests

The number of unencrypted requests.

Dependent item cloudflare.requests.ssl.unencrypted

Preprocessing

  • JSON Path: $.requests.unencrypted

Total threats

The number of all threats.

Dependent item cloudflare.threats.all

Preprocessing

  • JSON Path: $.threats.all

Unique visitors

The number of all visitors IPs.

Dependent item cloudflare.uniques.all

Preprocessing

  • JSON Path: $.uniques.all

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} Warning
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} Average

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

This template is for Zabbix version: 7.0

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/7.0

Cloudflare by HTTP

Overview

This template is designed for the effortless deployment of Cloudflare monitoring by Zabbix via HTTP and doesn't require any external scripts.

Requirements

Zabbix version: 7.0 and higher.

Tested versions

This template has been tested on:

  • Cloudflare

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Macros used

Name Description Default
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50

Items

Name Description Type Key and additional info
Total bandwidth

The volume of all data.

Dependent item cloudflare.bandwidth.all

Preprocessing

  • JSON Path: $.bandwidth.all

Cached bandwidth

The volume of cached data.

Dependent item cloudflare.bandwidth.cached

Preprocessing

  • JSON Path: $.bandwidth.cached

Uncached bandwidth

The volume of uncached data.

Dependent item cloudflare.bandwidth.uncached

Preprocessing

  • JSON Path: $.bandwidth.uncached

Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

Dependent item cloudflare.bandwidth.cache_hit_ratio

Preprocessing

  • JSON Path: $.bandwidth.cache_hit_ratio

SSL encrypted bandwidth

The volume of encrypted data.

Dependent item cloudflare.bandwidth.ssl.encrypted

Preprocessing

  • JSON Path: $.bandwidth.encrypted

Unencrypted bandwidth

The volume of unencrypted data.

Dependent item cloudflare.bandwidth.ssl.unencrypted

Preprocessing

  • JSON Path: $.bandwidth.unencrypted

DNS queries

The amount of all DNS queries.

Dependent item cloudflare.dns.query.all

Preprocessing

  • JSON Path: $.dns.query.all

Stale DNS queries

The number of stale DNS queries.

Dependent item cloudflare.dns.query.stale

Preprocessing

  • JSON Path: $.dns.query.stale

Uncached DNS queries

The number of uncached DNS queries.

Dependent item cloudflare.dns.query.uncached

Preprocessing

  • JSON Path: $.dns.query.uncached

Get data

The JSON with result of Cloudflare API request.

Script cloudflare.get
Total page views

The amount of all pageviews.

Dependent item cloudflare.pageviews.all

Preprocessing

  • JSON Path: $.pageviews.all

Total requests

The amount of all requests.

Dependent item cloudflare.requests.all

Preprocessing

  • JSON Path: $.requests.all

Cached requests Dependent item cloudflare.requests.cached

Preprocessing

  • JSON Path: $.requests.cached

Uncached requests

The number of uncached requests.

Dependent item cloudflare.requests.uncached

Preprocessing

  • JSON Path: $.requests.uncached

Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

Dependent item cloudflare.requests.cache_hit_ratio

Preprocessing

  • JSON Path: $.requests.cache_hit_ratio

Response codes 1xx

The number requests with 1xx response codes.

Dependent item cloudflare.requests.response_100

Preprocessing

  • JSON Path: $.requests.response_100

Response codes 2xx

The number requests with 2xx response codes.

Dependent item cloudflare.requests.response_200

Preprocessing

  • JSON Path: $.requests.response_200

Response codes 3xx

The number requests with 3xx response codes.

Dependent item cloudflare.requests.response_300

Preprocessing

  • JSON Path: $.requests.response_300

Response codes 4xx

The number requests with 4xx response codes.

Dependent item cloudflare.requests.response_400

Preprocessing

  • JSON Path: $.requests.response_400

Response codes 5xx

The number requests with 5xx response codes.

Dependent item cloudflare.requests.response_500

Preprocessing

  • JSON Path: $.requests.response_500

Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.others_ratio

Preprocessing

  • JSON Path: $.requests.others_ratio

2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.success_ratio

Preprocessing

  • JSON Path: $.requests.success_ratio

SSL encrypted requests

The number of encrypted requests.

Dependent item cloudflare.requests.ssl.encrypted

Preprocessing

  • JSON Path: $.requests.encrypted

Unencrypted requests

The number of unencrypted requests.

Dependent item cloudflare.requests.ssl.unencrypted

Preprocessing

  • JSON Path: $.requests.unencrypted

Total threats

The number of all threats.

Dependent item cloudflare.threats.all

Preprocessing

  • JSON Path: $.threats.all

Unique visitors

The number of all visitors IPs.

Dependent item cloudflare.uniques.all

Preprocessing

  • JSON Path: $.uniques.all

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} Warning
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} Average

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

This template is for Zabbix version: 6.4

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/6.4

Cloudflare by HTTP

Overview

This template is designed for the effortless deployment of Cloudflare monitoring by Zabbix via HTTP and doesn't require any external scripts.

Requirements

Zabbix version: 6.4 and higher.

Tested versions

This template has been tested on:

  • Cloudflare

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Macros used

Name Description Default
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>
{$CLOUDFLARE.GET_DATA.TIMEOUT}

Response timeout for Cloudflare API.

3s
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50

Items

Name Description Type Key and additional info
Cloudflare: Total bandwidth

The volume of all data.

Dependent item cloudflare.bandwidth.all

Preprocessing

  • JSON Path: $.bandwidth.all

Cloudflare: Cached bandwidth

The volume of cached data.

Dependent item cloudflare.bandwidth.cached

Preprocessing

  • JSON Path: $.bandwidth.cached

Cloudflare: Uncached bandwidth

The volume of uncached data.

Dependent item cloudflare.bandwidth.uncached

Preprocessing

  • JSON Path: $.bandwidth.uncached

Cloudflare: Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

Dependent item cloudflare.bandwidth.cache_hit_ratio

Preprocessing

  • JSON Path: $.bandwidth.cache_hit_ratio

Cloudflare: SSL encrypted bandwidth

The volume of encrypted data.

Dependent item cloudflare.bandwidth.ssl.encrypted

Preprocessing

  • JSON Path: $.bandwidth.encrypted

Cloudflare: Unencrypted bandwidth

The volume of unencrypted data.

Dependent item cloudflare.bandwidth.ssl.unencrypted

Preprocessing

  • JSON Path: $.bandwidth.unencrypted

Cloudflare: DNS queries

The amount of all DNS queries.

Dependent item cloudflare.dns.query.all

Preprocessing

  • JSON Path: $.dns.query.all

Cloudflare: Stale DNS queries

The number of stale DNS queries.

Dependent item cloudflare.dns.query.stale

Preprocessing

  • JSON Path: $.dns.query.stale

Cloudflare: Uncached DNS queries

The number of uncached DNS queries.

Dependent item cloudflare.dns.query.uncached

Preprocessing

  • JSON Path: $.dns.query.uncached

Cloudflare: Get data

The JSON with result of Cloudflare API request.

Script cloudflare.get
Cloudflare: Total page views

The amount of all pageviews.

Dependent item cloudflare.pageviews.all

Preprocessing

  • JSON Path: $.pageviews.all

Cloudflare: Total requests

The amount of all requests.

Dependent item cloudflare.requests.all

Preprocessing

  • JSON Path: $.requests.all

Cloudflare: Cached requests Dependent item cloudflare.requests.cached

Preprocessing

  • JSON Path: $.requests.cached

Cloudflare: Uncached requests

The number of uncached requests.

Dependent item cloudflare.requests.uncached

Preprocessing

  • JSON Path: $.requests.uncached

Cloudflare: Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

Dependent item cloudflare.requests.cache_hit_ratio

Preprocessing

  • JSON Path: $.requests.cache_hit_ratio

Cloudflare: Response codes 1xx

The number requests with 1xx response codes.

Dependent item cloudflare.requests.response_100

Preprocessing

  • JSON Path: $.requests.response_100

Cloudflare: Response codes 2xx

The number requests with 2xx response codes.

Dependent item cloudflare.requests.response_200

Preprocessing

  • JSON Path: $.requests.response_200

Cloudflare: Response codes 3xx

The number requests with 3xx response codes.

Dependent item cloudflare.requests.response_300

Preprocessing

  • JSON Path: $.requests.response_300

Cloudflare: Response codes 4xx

The number requests with 4xx response codes.

Dependent item cloudflare.requests.response_400

Preprocessing

  • JSON Path: $.requests.response_400

Cloudflare: Response codes 5xx

The number requests with 5xx response codes.

Dependent item cloudflare.requests.response_500

Preprocessing

  • JSON Path: $.requests.response_500

Cloudflare: Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.others_ratio

Preprocessing

  • JSON Path: $.requests.others_ratio

Cloudflare: 2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.success_ratio

Preprocessing

  • JSON Path: $.requests.success_ratio

Cloudflare: SSL encrypted requests

The number of encrypted requests.

Dependent item cloudflare.requests.ssl.encrypted

Preprocessing

  • JSON Path: $.requests.encrypted

Cloudflare: Unencrypted requests

The number of unencrypted requests.

Dependent item cloudflare.requests.ssl.unencrypted

Preprocessing

  • JSON Path: $.requests.unencrypted

Cloudflare: Total threats

The number of all threats.

Dependent item cloudflare.threats.all

Preprocessing

  • JSON Path: $.threats.all

Cloudflare: Unique visitors

The number of all visitors IPs.

Dependent item cloudflare.uniques.all

Preprocessing

  • JSON Path: $.uniques.all

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} Warning
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} Average

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

This template is for Zabbix version: 6.2

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/6.2

Cloudflare by HTTP

Overview

For Zabbix version: 6.2 and higher
The template to monitor Cloudflare to watch your web traffic and DNS metrics. It works without any external scripts and uses the Script item.

Setup

See Zabbix template operation for basic instructions.

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.GET_DATA.TIMEOUT}

Response timeout for Cloudflare API.

3s
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>

Template links

There are no template links in this template.

Discovery rules

Items collected

Group Name Description Type Key and additional info
General Cloudflare: Total bandwidth

The volume of all data.

DEPENDENT cloudflare.bandwidth.all

Preprocessing:

- JSONPATH: $.bandwidth.all

General Cloudflare: Cached bandwidth

The volume of cached data.

DEPENDENT cloudflare.bandwidth.cached

Preprocessing:

- JSONPATH: $.bandwidth.cached

General Cloudflare: Uncached bandwidth

The volume of uncached data.

DEPENDENT cloudflare.bandwidth.uncached

Preprocessing:

- JSONPATH: $.bandwidth.uncached

General Cloudflare: Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

DEPENDENT cloudflare.bandwidth.cache_hit_ratio

Preprocessing:

- JSONPATH: $.bandwidth.cache_hit_ratio

General Cloudflare: SSL encrypted bandwidth

The volume of encrypted data.

DEPENDENT cloudflare.bandwidth.ssl.encrypted

Preprocessing:

- JSONPATH: $.bandwidth.encrypted

General Cloudflare: Unencrypted bandwidth

The volume of unencrypted data.

DEPENDENT cloudflare.bandwidth.ssl.unencrypted

Preprocessing:

- JSONPATH: $.bandwidth.unencrypted

General Cloudflare: DNS queries

The amount of all DNS queries.

DEPENDENT cloudflare.dns.query.all

Preprocessing:

- JSONPATH: $.dns.query.all

General Cloudflare: Stale DNS queries

The number of stale DNS queries.

DEPENDENT cloudflare.dns.query.stale

Preprocessing:

- JSONPATH: $.dns.query.stale

General Cloudflare: Uncached DNS queries

The number of uncached DNS queries.

DEPENDENT cloudflare.dns.query.uncached

Preprocessing:

- JSONPATH: $.dns.query.uncached

General Cloudflare: Total page views

The amount of all pageviews.

DEPENDENT cloudflare.pageviews.all

Preprocessing:

- JSONPATH: $.pageviews.all

General Cloudflare: Total requests

The amount of all requests.

DEPENDENT cloudflare.requests.all

Preprocessing:

- JSONPATH: $.requests.all

General Cloudflare: Cached requests

-

DEPENDENT cloudflare.requests.cached

Preprocessing:

- JSONPATH: $.requests.cached

General Cloudflare: Uncached requests

The number of uncached requests.

DEPENDENT cloudflare.requests.uncached

Preprocessing:

- JSONPATH: $.requests.uncached

General Cloudflare: Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

DEPENDENT cloudflare.requests.cache_hit_ratio

Preprocessing:

- JSONPATH: $.requests.cache_hit_ratio

General Cloudflare: Response codes 1xx

The number requests with 1xx response codes.

DEPENDENT cloudflare.requests.response_100

Preprocessing:

- JSONPATH: $.requests.response_100

General Cloudflare: Response codes 2xx

The number requests with 2xx response codes.

DEPENDENT cloudflare.requests.response_200

Preprocessing:

- JSONPATH: $.requests.response_200

General Cloudflare: Response codes 3xx

The number requests with 3xx response codes.

DEPENDENT cloudflare.requests.response_300

Preprocessing:

- JSONPATH: $.requests.response_300

General Cloudflare: Response codes 4xx

The number requests with 4xx response codes.

DEPENDENT cloudflare.requests.response_400

Preprocessing:

- JSONPATH: $.requests.response_400

General Cloudflare: Response codes 5xx

The number requests with 5xx response codes.

DEPENDENT cloudflare.requests.response_500

Preprocessing:

- JSONPATH: $.requests.response_500

General Cloudflare: Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

DEPENDENT cloudflare.requests.others_ratio

Preprocessing:

- JSONPATH: $.requests.others_ratio

General Cloudflare: 2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

DEPENDENT cloudflare.requests.success_ratio

Preprocessing:

- JSONPATH: $.requests.success_ratio

General Cloudflare: SSL encrypted requests

The number of encrypted requests.

DEPENDENT cloudflare.requests.ssl.encrypted

Preprocessing:

- JSONPATH: $.requests.encrypted

General Cloudflare: Unencrypted requests

The number of unencrypted requests.

DEPENDENT cloudflare.requests.ssl.unencrypted

Preprocessing:

- JSONPATH: $.requests.unencrypted

General Cloudflare: Total threats

The number of all threats.

DEPENDENT cloudflare.threats.all

Preprocessing:

- JSONPATH: $.threats.all

General Cloudflare: Unique visitors

The number of all visitors IPs.

DEPENDENT cloudflare.uniques.all

Preprocessing:

- JSONPATH: $.uniques.all

Zabbix raw items Cloudflare: Get data

The JSON with result of Cloudflare API request.

SCRIPT cloudflare.get

Expression:

The text is too long. Please see the template.

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} WARNING
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} AVERAGE

Feedback

Please report any issues with the template at https://support.zabbix.com

This template is for Zabbix version: 6.0

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/6.0

Cloudflare by HTTP

Overview

This template is designed for the effortless deployment of Cloudflare monitoring by Zabbix via HTTP and doesn't require any external scripts.

Requirements

Zabbix version: 6.0 and higher.

Tested versions

This template has been tested on:

  • Cloudflare

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Macros used

Name Description Default
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>
{$CLOUDFLARE.GET_DATA.TIMEOUT}

Response timeout for Cloudflare API.

3s
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50

Items

Name Description Type Key and additional info
Cloudflare: Total bandwidth

The volume of all data.

Dependent item cloudflare.bandwidth.all

Preprocessing

  • JSON Path: $.bandwidth.all

Cloudflare: Cached bandwidth

The volume of cached data.

Dependent item cloudflare.bandwidth.cached

Preprocessing

  • JSON Path: $.bandwidth.cached

Cloudflare: Uncached bandwidth

The volume of uncached data.

Dependent item cloudflare.bandwidth.uncached

Preprocessing

  • JSON Path: $.bandwidth.uncached

Cloudflare: Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

Dependent item cloudflare.bandwidth.cache_hit_ratio

Preprocessing

  • JSON Path: $.bandwidth.cache_hit_ratio

Cloudflare: SSL encrypted bandwidth

The volume of encrypted data.

Dependent item cloudflare.bandwidth.ssl.encrypted

Preprocessing

  • JSON Path: $.bandwidth.encrypted

Cloudflare: Unencrypted bandwidth

The volume of unencrypted data.

Dependent item cloudflare.bandwidth.ssl.unencrypted

Preprocessing

  • JSON Path: $.bandwidth.unencrypted

Cloudflare: DNS queries

The amount of all DNS queries.

Dependent item cloudflare.dns.query.all

Preprocessing

  • JSON Path: $.dns.query.all

Cloudflare: Stale DNS queries

The number of stale DNS queries.

Dependent item cloudflare.dns.query.stale

Preprocessing

  • JSON Path: $.dns.query.stale

Cloudflare: Uncached DNS queries

The number of uncached DNS queries.

Dependent item cloudflare.dns.query.uncached

Preprocessing

  • JSON Path: $.dns.query.uncached

Cloudflare: Get data

The JSON with result of Cloudflare API request.

Script cloudflare.get
Cloudflare: Total page views

The amount of all pageviews.

Dependent item cloudflare.pageviews.all

Preprocessing

  • JSON Path: $.pageviews.all

Cloudflare: Total requests

The amount of all requests.

Dependent item cloudflare.requests.all

Preprocessing

  • JSON Path: $.requests.all

Cloudflare: Cached requests Dependent item cloudflare.requests.cached

Preprocessing

  • JSON Path: $.requests.cached

Cloudflare: Uncached requests

The number of uncached requests.

Dependent item cloudflare.requests.uncached

Preprocessing

  • JSON Path: $.requests.uncached

Cloudflare: Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

Dependent item cloudflare.requests.cache_hit_ratio

Preprocessing

  • JSON Path: $.requests.cache_hit_ratio

Cloudflare: Response codes 1xx

The number requests with 1xx response codes.

Dependent item cloudflare.requests.response_100

Preprocessing

  • JSON Path: $.requests.response_100

Cloudflare: Response codes 2xx

The number requests with 2xx response codes.

Dependent item cloudflare.requests.response_200

Preprocessing

  • JSON Path: $.requests.response_200

Cloudflare: Response codes 3xx

The number requests with 3xx response codes.

Dependent item cloudflare.requests.response_300

Preprocessing

  • JSON Path: $.requests.response_300

Cloudflare: Response codes 4xx

The number requests with 4xx response codes.

Dependent item cloudflare.requests.response_400

Preprocessing

  • JSON Path: $.requests.response_400

Cloudflare: Response codes 5xx

The number requests with 5xx response codes.

Dependent item cloudflare.requests.response_500

Preprocessing

  • JSON Path: $.requests.response_500

Cloudflare: Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.others_ratio

Preprocessing

  • JSON Path: $.requests.others_ratio

Cloudflare: 2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

Dependent item cloudflare.requests.success_ratio

Preprocessing

  • JSON Path: $.requests.success_ratio

Cloudflare: SSL encrypted requests

The number of encrypted requests.

Dependent item cloudflare.requests.ssl.encrypted

Preprocessing

  • JSON Path: $.requests.encrypted

Cloudflare: Unencrypted requests

The number of unencrypted requests.

Dependent item cloudflare.requests.ssl.unencrypted

Preprocessing

  • JSON Path: $.requests.unencrypted

Cloudflare: Total threats

The number of all threats.

Dependent item cloudflare.threats.all

Preprocessing

  • JSON Path: $.threats.all

Cloudflare: Unique visitors

The number of all visitors IPs.

Dependent item cloudflare.uniques.all

Preprocessing

  • JSON Path: $.uniques.all

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} Warning
Cloudflare: Ratio of non-2xx responses is too high

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} Average

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

This template is for Zabbix version: 5.4

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/cloudflare_http?at=release/5.4

Cloudflare by HTTP

Overview

For Zabbix version: 5.4 and higher
The template to monitor Cloudflare to watch your web traffic and DNS metrics. It works without any external scripts and uses the Script item.

Setup

See Zabbix template operation for basic instructions.

1. Create a host, for example mywebsite.com, for a site in your Cloudflare account.

2. Link the template to the host.

3. Customize the values of {$CLOUDFLARE.API.TOKEN}, {$CLOUDFLARE.ZONE_ID} macros.
Cloudflare API Tokens are available in your Cloudflare account under My Profile > API Tokens.
Zone ID is available in your Cloudflare account under Account Home > Site.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$CLOUDFLARE.API.TOKEN}

Your Cloudflare API Token.

<change>
{$CLOUDFLARE.API.URL}

The URL of Cloudflare API endpoint.

https://api.cloudflare.com/client/v4
{$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}

Minimum of cached bandwidth in %.

50
{$CLOUDFLARE.ERRORS.MAX.WARN}

Maximum responses with errors in %.

30
{$CLOUDFLARE.GET_DATA.TIMEOUT}

Response timeout for Cloudflare API.

3s
{$CLOUDFLARE.ZONE_ID}

Your Cloudflare Site Zone ID.

<change>

Template links

There are no template links in this template.

Discovery rules

Items collected

Group Name Description Type Key and additional info
General Cloudflare: Total bandwidth

The volume of all data.

DEPENDENT cloudflare.bandwidth.all

Preprocessing:

- JSONPATH: $.bandwidth.all

General Cloudflare: Cached bandwidth

The volume of cached data.

DEPENDENT cloudflare.bandwidth.cached

Preprocessing:

- JSONPATH: $.bandwidth.cached

General Cloudflare: Uncached bandwidth

The volume of uncached data.

DEPENDENT cloudflare.bandwidth.uncached

Preprocessing:

- JSONPATH: $.bandwidth.uncached

General Cloudflare: Cache hit ratio of bandwidth

The ratio of the amount cached bandwidth to the bandwidth in percentage.

DEPENDENT cloudflare.bandwidth.cache_hit_ratio

Preprocessing:

- JSONPATH: $.bandwidth.cache_hit_ratio

General Cloudflare: SSL encrypted bandwidth

The volume of encrypted data.

DEPENDENT cloudflare.bandwidth.ssl.encrypted

Preprocessing:

- JSONPATH: $.bandwidth.encrypted

General Cloudflare: Unencrypted bandwidth

The volume of unencrypted data.

DEPENDENT cloudflare.bandwidth.ssl.unencrypted

Preprocessing:

- JSONPATH: $.bandwidth.unencrypted

General Cloudflare: DNS queries

The amount of all DNS queries.

DEPENDENT cloudflare.dns.query.all

Preprocessing:

- JSONPATH: $.dns.query.all

General Cloudflare: Stale DNS queries

The number of stale DNS queries.

DEPENDENT cloudflare.dns.query.stale

Preprocessing:

- JSONPATH: $.dns.query.stale

General Cloudflare: Uncached DNS queries

The number of uncached DNS queries.

DEPENDENT cloudflare.dns.query.uncached

Preprocessing:

- JSONPATH: $.dns.query.uncached

General Cloudflare: Total page views

The amount of all pageviews.

DEPENDENT cloudflare.pageviews.all

Preprocessing:

- JSONPATH: $.pageviews.all

General Cloudflare: Total requests

The amount of all requests.

DEPENDENT cloudflare.requests.all

Preprocessing:

- JSONPATH: $.requests.all

General Cloudflare: Cached requests

-

DEPENDENT cloudflare.requests.cached

Preprocessing:

- JSONPATH: $.requests.cached

General Cloudflare: Uncached requests

The number of uncached requests.

DEPENDENT cloudflare.requests.uncached

Preprocessing:

- JSONPATH: $.requests.uncached

General Cloudflare: Cache hit ratio % over time

The ratio of the amount cached requests to all requests in percentage.

DEPENDENT cloudflare.requests.cache_hit_ratio

Preprocessing:

- JSONPATH: $.requests.cache_hit_ratio

General Cloudflare: Response codes 1xx

The number requests with 1xx response codes.

DEPENDENT cloudflare.requests.response_100

Preprocessing:

- JSONPATH: $.requests.response_100

General Cloudflare: Response codes 2xx

The number requests with 2xx response codes.

DEPENDENT cloudflare.requests.response_200

Preprocessing:

- JSONPATH: $.requests.response_200

General Cloudflare: Response codes 3xx

The number requests with 3xx response codes.

DEPENDENT cloudflare.requests.response_300

Preprocessing:

- JSONPATH: $.requests.response_300

General Cloudflare: Response codes 4xx

The number requests with 4xx response codes.

DEPENDENT cloudflare.requests.response_400

Preprocessing:

- JSONPATH: $.requests.response_400

General Cloudflare: Response codes 5xx

The number requests with 5xx response codes.

DEPENDENT cloudflare.requests.response_500

Preprocessing:

- JSONPATH: $.requests.response_500

General Cloudflare: Non-2xx responses ratio

The ratio of the amount requests with non-2xx response codes to all requests in percentage.

DEPENDENT cloudflare.requests.others_ratio

Preprocessing:

- JSONPATH: $.requests.others_ratio

General Cloudflare: 2xx responses ratio

The ratio of the amount requests with 2xx response codes to all requests in percentage.

DEPENDENT cloudflare.requests.success_ratio

Preprocessing:

- JSONPATH: $.requests.success_ratio

General Cloudflare: SSL encrypted requests

The number of encrypted requests.

DEPENDENT cloudflare.requests.ssl.encrypted

Preprocessing:

- JSONPATH: $.requests.encrypted

General Cloudflare: Unencrypted requests

The number of unencrypted requests.

DEPENDENT cloudflare.requests.ssl.unencrypted

Preprocessing:

- JSONPATH: $.requests.unencrypted

General Cloudflare: Total threats

The number of all threats.

DEPENDENT cloudflare.threats.all

Preprocessing:

- JSONPATH: $.threats.all

General Cloudflare: Unique visitors

The number of all visitors IPs.

DEPENDENT cloudflare.uniques.all

Preprocessing:

- JSONPATH: $.uniques.all

Zabbix_raw_items Cloudflare: Get data

The JSON with result of Cloudflare API request.

SCRIPT cloudflare.get

Expression:

The text is too long. Please see the template.

Triggers

Name Description Expression Severity Dependencies and additional info
Cloudflare: Cached bandwidth is too low (less than {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN}% for 3 last measurements) max(/Cloudflare by HTTP/cloudflare.bandwidth.cache_hit_ratio,#3) < {$CLOUDFLARE.CACHED_BANDWIDTH.MIN.WARN} WARNING
Cloudflare: Ratio of non-2xx responses is too high (more than {$CLOUDFLARE.ERRORS.MAX.WARN}% for 3 last measurements)

A large number of errors can indicate a malfunction of the site.

min(/Cloudflare by HTTP/cloudflare.requests.others_ratio,#3) > {$CLOUDFLARE.ERRORS.MAX.WARN} AVERAGE

Feedback

Please report any issues with the template at https://support.zabbix.com

Articles and documentation

+ Propose new article
👁 Image

Request custom integration

Zabbix integration team will develop custom integration based on your requirements and Zabbix best practices.

Request
👁 Image

Propose integration

Have you already developed high quality integration and want to submit to Zabbix integration repository?

Propose