zabbix_export: version: '7.0' template_groups: - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 name: Templates/Applications templates: - uuid: 5fa761bc51e4432a90c6c9eece930c4a template: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ cluster by Zabbix agent' description: | Get cluster metrics from RabbitMQ management plugin provided an HTTP-based API using Zabbix agent. You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq Generated by official Zabbix template tool "Templator" vendor: name: Zabbix version: 7.0-3 groups: - name: Templates/Applications items: - uuid: 31908a8287be442681a0ded564977ff2 name: 'Messages acknowledged' type: DEPENDENT key: rabbitmq.overview.messages.ack delay: '0' description: 'The number of messages delivered to clients and acknowledged.' preprocessing: - type: JSONPATH parameters: - $.message_stats.ack error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: f78fabbd7e3f44dc81b1cf9c90b26f2e name: 'Messages acknowledged per second' type: DEPENDENT key: rabbitmq.overview.messages.ack.rate delay: '0' value_type: FLOAT description: 'The rate of messages (per second) delivered to clients and acknowledged.' preprocessing: - type: JSONPATH parameters: - $.message_stats.ack_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 45cf9b5cf5cd4b13b0e140383233799f name: 'Messages confirmed' type: DEPENDENT key: rabbitmq.overview.messages.confirm delay: '0' description: 'The count of confirmed messages.' preprocessing: - type: JSONPATH parameters: - $.message_stats.confirm error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: bc85a070e1e9451b953d85bb519ed63d name: 'Messages confirmed per second' type: DEPENDENT key: rabbitmq.overview.messages.confirm.rate delay: '0' value_type: FLOAT description: 'The rate of messages confirmed per second.' preprocessing: - type: JSONPATH parameters: - $.message_stats.confirm_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 004da545af4a4f61bd2167281bb9a02b name: 'Messages delivered' type: DEPENDENT key: rabbitmq.overview.messages.deliver_get delay: '0' description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' preprocessing: - type: JSONPATH parameters: - $.message_stats.deliver_get error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: c00a84c8676544dcbdd74fec13881063 name: 'Messages delivered per second' type: DEPENDENT key: rabbitmq.overview.messages.deliver_get.rate delay: '0' value_type: FLOAT description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' preprocessing: - type: JSONPATH parameters: - $.message_stats.deliver_get_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 4215bdf87f0e426f85bd79434a0fb0bb name: 'Messages published' type: DEPENDENT key: rabbitmq.overview.messages.publish delay: '0' description: 'The count of published messages.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: cfadadb681474c7eb0512d1f4d223ff6 name: 'Messages published per second' type: DEPENDENT key: rabbitmq.overview.messages.publish.rate delay: '0' value_type: FLOAT description: 'The rate of messages published per second.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: bb068ac7c6094fb8a59cd1a003e88c39 name: 'Messages publish_in' type: DEPENDENT key: rabbitmq.overview.messages.publish_in delay: '0' description: 'The count of messages published from the channels into this overview.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_in error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: db511bf1cd6c465f8fe1ae6b5fa08660 name: 'Messages publish_in per second' type: DEPENDENT key: rabbitmq.overview.messages.publish_in.rate delay: '0' value_type: FLOAT description: 'The rate of messages (per second) published from the channels into this overview.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_in_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 23dcb85dd9bc4fefb1a9682956181c2e name: 'Messages publish_out' type: DEPENDENT key: rabbitmq.overview.messages.publish_out delay: '0' description: 'The count of messages published from this overview into queues.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_out error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 05e4c745be95412995749c352ec0f925 name: 'Messages publish_out per second' type: DEPENDENT key: rabbitmq.overview.messages.publish_out.rate delay: '0' value_type: FLOAT description: 'The rate of messages (per second) published from this overview into queues.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_out_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 650d6a94e381477299c62cfb2a2252cf name: 'Messages returned redeliver' type: DEPENDENT key: rabbitmq.overview.messages.redeliver delay: '0' description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' preprocessing: - type: JSONPATH parameters: - $.message_stats.redeliver error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 6d7eb8880bca4c6e92f65f8a32911599 name: 'Messages returned redeliver per second' type: DEPENDENT key: rabbitmq.overview.messages.redeliver.rate delay: '0' value_type: FLOAT description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' preprocessing: - type: JSONPATH parameters: - $.message_stats.redeliver_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: e3faec09ae0a4d7aa8aab50d71de7bb3 name: 'Messages returned unroutable' type: DEPENDENT key: rabbitmq.overview.messages.return_unroutable delay: '0' description: 'The count of messages returned to a publisher as unroutable.' preprocessing: - type: JSONPATH parameters: - $.message_stats.return_unroutable error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 72267cce69cf490ea626ff3ae17b6362 name: 'Messages returned unroutable per second' type: DEPENDENT key: rabbitmq.overview.messages.return_unroutable.rate delay: '0' value_type: FLOAT description: 'The rate of messages (per second) returned to a publisher as unroutable.' preprocessing: - type: JSONPATH parameters: - $.message_stats.return_unroutable_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 2b03117e863348ee84d94acfe877ef7f name: 'Channels total' type: DEPENDENT key: rabbitmq.overview.object_totals.channels delay: '0' description: 'The total number of channels.' preprocessing: - type: JSONPATH parameters: - $.object_totals.channels master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: channels - uuid: b3cdd6739a964447b524df4fdd726434 name: 'Connections total' type: DEPENDENT key: rabbitmq.overview.object_totals.connections delay: '0' description: 'The total number of connections.' preprocessing: - type: JSONPATH parameters: - $.object_totals.connections master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: connections - uuid: c39007dbd4374bee943d61b7e90c0f01 name: 'Consumers total' type: DEPENDENT key: rabbitmq.overview.object_totals.consumers delay: '0' description: 'The total number of consumers.' preprocessing: - type: JSONPATH parameters: - $.object_totals.consumers master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: consumers - uuid: be0b952e5d08409aa2c65fe143a9193c name: 'Exchanges total' type: DEPENDENT key: rabbitmq.overview.object_totals.exchanges delay: '0' description: 'The total number of exchanges.' preprocessing: - type: JSONPATH parameters: - $.object_totals.exchanges master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: exchanges - uuid: d7c86b4921f54924af1b72cd2493da1c name: 'Queues total' type: DEPENDENT key: rabbitmq.overview.object_totals.queues delay: '0' description: 'The total number of queues.' preprocessing: - type: JSONPATH parameters: - $.object_totals.queues master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: queues - uuid: c98b2b3dd2bd4fec9e7c571bc631167b name: 'Messages total' type: DEPENDENT key: rabbitmq.overview.queue_totals.messages delay: '0' description: 'The total number of messages (ready, plus unacknowledged).' preprocessing: - type: JSONPATH parameters: - $.queue_totals.messages error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: efaabe175e5f4fffa8a810ea35753475 name: 'Messages ready for delivery' type: DEPENDENT key: rabbitmq.overview.queue_totals.messages.ready delay: '0' description: 'The number of messages ready for delivery.' preprocessing: - type: JSONPATH parameters: - $.queue_totals.messages_ready error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: 6cf09ed9d244464288c8050b10622e3a name: 'Messages unacknowledged' type: DEPENDENT key: rabbitmq.overview.queue_totals.messages.unacknowledged delay: '0' description: 'The number of unacknowledged messages.' preprocessing: - type: JSONPATH parameters: - $.queue_totals.messages_unacknowledged error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' tags: - tag: component value: messages - uuid: f015f991bcea4c4dbf83dfb013300010 name: 'Get exchanges' key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' history: 1h value_type: TEXT trends: '0' description: 'The HTTP API endpoint that returns exchanges metrics.' preprocessing: - type: REGEX parameters: - '\n\s?\n(.*)' - \1 tags: - tag: component value: raw - uuid: 943eabfb44164908b9135aa4d6478bea name: 'Get overview' key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' history: 1h value_type: TEXT trends: '0' description: 'The HTTP API endpoint that returns cluster-wide metrics.' preprocessing: - type: REGEX parameters: - '\n\s?\n(.*)' - \1 tags: - tag: component value: raw triggers: - uuid: 000d3e773f6e4ebf89f16daa2ce8c168 expression: 'nodata(/RabbitMQ cluster by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"],30m)=1' name: 'RabbitMQ cluster: Failed to fetch overview data' event_name: 'RabbitMQ cluster: Failed to fetch overview data (or no data for 30m)' priority: WARNING description: 'Zabbix has not received any data for items for the last 30 minutes.' manual_close: 'YES' tags: - tag: scope value: availability discovery_rules: - uuid: 406836367f45425fbd181a20dc3d08d7 name: 'Health Check 3.8.10+ discovery' type: DEPENDENT key: rabbitmq.cluster.healthcheck.v3810.discovery delay: '0' description: 'Specific metrics for the versions: up to and including 3.8.10.' item_prototypes: - uuid: 4c93b04164d24eb8b9dbdab652afc7bc name: 'Healthcheck: alarms in effect in the cluster{#SINGLETON}' key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/health/checks/alarms{#SINGLETON}"]' description: | It responds with a status code `200 OK` if there are no alarms in effect in the cluster. Otherwise, it responds with a status code `503 Service Unavailable`. valuemap: name: 'RabbitMQ healthcheck' preprocessing: - type: REGEX parameters: - 'HTTP\/[\d.]+\s+(\d{3})' - \1 - type: JAVASCRIPT parameters: - | var idx = { '200': 1, '503': 0 } return typeof idx[value] === 'undefined' ? 2 : idx[value]; - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 3h tags: - tag: component value: health - tag: component value: system trigger_prototypes: - uuid: 032949c387c64223b3125ba1120ae082 expression: 'last(/RabbitMQ cluster by Zabbix agent/web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/health/checks/alarms{#SINGLETON}"])=0' name: 'RabbitMQ cluster: There are active alarms in the cluster' opdata: 'Current state: {ITEM.LASTVALUE1}' priority: AVERAGE description: 'This is the default API endpoint path: http://{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/index.html.' tags: - tag: scope value: notice master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/overview"]' preprocessing: - type: JSONPATH parameters: - $.management_version - type: JAVASCRIPT parameters: - | var rabbit_version = parseInt(value.split('.')[0]) * 10000 + parseInt(value.split('.')[1]) * 100 + parseInt(value.split('.')[2]); return JSON.stringify(rabbit_version >= 30810 ? [{ '{#SINGLETON}': '' }] : []); - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h - uuid: e28b4491721d4dbf8eded86a5caeabc2 name: 'Exchanges discovery' type: DEPENDENT key: rabbitmq.exchanges.discovery delay: '0' filter: evaltype: AND conditions: - macro: '{#EXCHANGE}' value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' formulaid: A - macro: '{#EXCHANGE}' value: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: B description: 'The metrics for an individual exchange.' item_prototypes: - uuid: 68892e56e0074516b5d052dd7178955f name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.ack.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages (per second) delivered to clients and acknowledged.' preprocessing: - type: JSONPATH parameters: - $.message_stats.ack_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: fcf7807f096d4cddb8fa2b3671814dfa name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages acknowledged' type: DEPENDENT key: 'rabbitmq.exchange.messages.ack["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The number of messages delivered to clients and acknowledged.' preprocessing: - type: JSONPATH parameters: - $.message_stats.ack error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 858f8ce62fa04a31902569a712e58234 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.confirm.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages confirmed per second.' preprocessing: - type: JSONPATH parameters: - $.message_stats.confirm_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 38d41b5d815a40ff816f6fad2395b61a name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages confirmed' type: DEPENDENT key: 'rabbitmq.exchange.messages.confirm["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of confirmed messages.' preprocessing: - type: JSONPATH parameters: - $.message_stats.confirm error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: ab53a6957ea641fe8b2a7f26c4bcc743 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.deliver_get.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of the sum of messages (per second) delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' preprocessing: - type: JSONPATH parameters: - $.message_stats.deliver_get_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 412e5003ad2d4e80832ee0551a596791 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages delivered' type: DEPENDENT key: 'rabbitmq.exchange.messages.deliver_get["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The sum of messages delivered to consumers: in acknowledgement mode and in no-acknowledgement mode; delivered to consumers in response to the `basic.get`: in acknowledgement mode and in no-acknowledgement mode.' preprocessing: - type: JSONPATH parameters: - $.message_stats.deliver_get error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 32a0c7af8b9940a482a3a1d63ee90940 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages published per second.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 1eccbe4450d74d5f9c5b8f7e6279b214 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages published' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of published messages.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 3520a523abd1413f88c1c19978e6d562 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish_in.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages (per second) published from the channels into this overview.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_in_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 520d8301e48540679472bf508a6e293b name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_in' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish_in["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of messages published from the channels into this overview.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_in error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 6beb5e40cb8b416a8722ea77abb7355d name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish_out.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages (per second) published from this overview into queues.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_out_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: beb929ee395e4caba73f3063c24a1d60 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages publish_out' type: DEPENDENT key: 'rabbitmq.exchange.messages.publish_out["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of messages published from this overview into queues.' preprocessing: - type: JSONPATH parameters: - $.message_stats.publish_out error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 7485d5a12fb04a13810ea54b9cc598e1 name: 'Exchange {#VHOST}/{#EXCHANGE}/{#TYPE}: Messages redelivered per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.redeliver.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of subset of messages (per second) in the `deliver_get`, which had the `redelivered` flag set.' preprocessing: - type: JSONPATH parameters: - $.message_stats.redeliver_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 58a06005659943429122d451acb521e0 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages redelivered' type: DEPENDENT key: 'rabbitmq.exchange.messages.redeliver["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of subset of messages in the `deliver_get`, which had the `redelivered` flag set.' preprocessing: - type: JSONPATH parameters: - $.message_stats.redeliver error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 295eeb3bd071400d921efe1f5a924a3e name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable per second' type: DEPENDENT key: 'rabbitmq.exchange.messages.return_unroutable.rate["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' value_type: FLOAT description: 'The rate of messages (per second) returned to a publisher as unroutable.' preprocessing: - type: JSONPATH parameters: - $.message_stats.return_unroutable_details.rate error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 2901eccbd8ef483ba63c5522755155e7 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Messages returned unroutable' type: DEPENDENT key: 'rabbitmq.exchange.messages.return_unroutable["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' description: 'The count of messages returned to a publisher as unroutable.' preprocessing: - type: JSONPATH parameters: - $.message_stats.return_unroutable error_handler: CUSTOM_VALUE error_handler_params: '0' master_item: key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' tags: - tag: component value: messages - tag: exchange value: '{#EXCHANGE}' - tag: type value: '{#TYPE}' - tag: vhost value: '{#VHOST}' - uuid: 4491f48f732d40c0b7f29010cf4ca046 name: 'Exchange [{#VHOST}][{#EXCHANGE}][{#TYPE}]: Get data' type: DEPENDENT key: 'rabbitmq.get_exchanges["{#VHOST}/{#EXCHANGE}/{#TYPE}"]' delay: '0' history: '0' value_type: TEXT trends: '0' description: 'The HTTP API endpoint that returns [{#VHOST}][{#EXCHANGE}][{#TYPE}] exchanges metrics' preprocessing: - type: JSONPATH parameters: - '$[?(@.name == "{#EXCHANGE}" && @.vhost == "{#VHOST}" && @.type =="{#TYPE}")].first()' master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' tags: - tag: component value: raw master_item: key: 'web.page.get["{$RABBITMQ.API.SCHEME}://{$RABBITMQ.API.USER}:{$RABBITMQ.API.PASSWORD}@{$RABBITMQ.API.CLUSTER_HOST}:{$RABBITMQ.API.PORT}/api/exchanges"]' lld_macro_paths: - lld_macro: '{#EXCHANGE}' path: $.name - lld_macro: '{#TYPE}' path: $.type - lld_macro: '{#VHOST}' path: $.vhost preprocessing: - type: JAVASCRIPT parameters: - 'return JSON.stringify(JSON.parse(value),[''name'',''type'',''vhost'']);' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h tags: - tag: class value: software - tag: target value: rabbitmq macros: - macro: '{$RABBITMQ.API.CLUSTER_HOST}' value: 127.0.0.1 description: 'The hostname or IP of the API endpoint for the RabbitMQ cluster.' - macro: '{$RABBITMQ.API.PASSWORD}' value: zabbix - macro: '{$RABBITMQ.API.PORT}' value: '15672' description: 'The port of the RabbitMQ API endpoint.' - macro: '{$RABBITMQ.API.SCHEME}' value: http description: 'The request scheme, which may be HTTP or HTTPS.' - macro: '{$RABBITMQ.API.USER}' value: zbx_monitor - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.MATCHES}' value: '.*' description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' - macro: '{$RABBITMQ.LLD.FILTER.EXCHANGE.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in the discovery of exchanges. It can be overridden at host level or its linked template level.' dashboards: - uuid: a886a871a00d47e28b8648cadae3bc99 name: 'RabbitMQ overview' pages: - widgets: - type: graph width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ: Messages' - type: STRING name: reference value: AAAAA - type: graph 'y': '5' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ: Messages status' - type: STRING name: reference value: AAAAC - type: graph 'y': '10' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ: Messages per second' - type: STRING name: reference value: AAAAE - type: graph x: '36' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ: Connections' - type: STRING name: reference value: AAAAB - type: graph x: '36' 'y': '5' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'RabbitMQ cluster by Zabbix agent' name: 'RabbitMQ: Queues' - type: STRING name: reference value: AAAAD valuemaps: - uuid: 78275d6daacf42b4b97e3d806dfe81fe name: 'RabbitMQ healthcheck' mappings: - value: '0' newvalue: Failed - value: '1' newvalue: Ok - value: '2' newvalue: Error graphs: - uuid: 2dbd4f9285a34786a210c6e16d87ed85 name: 'RabbitMQ: Connections' graph_items: - color: 199C0D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.object_totals.connections - sortorder: '1' color: F63100 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.object_totals.channels - sortorder: '2' color: 00611C item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.object_totals.consumers - uuid: dca08567e6ce4dcbb60f72a431de5ddf name: 'RabbitMQ: Messages' graph_items: - color: 199C0D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.queue_totals.messages - sortorder: '1' color: F63100 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.queue_totals.messages.ready - sortorder: '2' color: 00611C item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.queue_totals.messages.unacknowledged - uuid: ad303b1816a84248a347ef4773bf2c44 name: 'RabbitMQ: Messages per second' graph_items: - color: 199C0D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish.rate - sortorder: '1' color: F63100 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.ack.rate - sortorder: '2' color: 00611C item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.confirm.rate - sortorder: '3' color: F7941D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.deliver_get.rate - sortorder: '4' color: FC6EA3 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish_in.rate - sortorder: '5' color: 6C59DC item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish_out.rate - sortorder: '6' color: C7A72D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.redeliver.rate - sortorder: '7' color: BA2A5D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.return_unroutable.rate - uuid: 94fa39136a0d42b2997dd3b9a7581621 name: 'RabbitMQ: Messages status' graph_items: - color: 199C0D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish - sortorder: '1' color: F63100 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.ack - sortorder: '2' color: 00611C item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.confirm - sortorder: '3' color: F7941D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.deliver_get - sortorder: '4' color: FC6EA3 item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish_in - sortorder: '5' color: 6C59DC item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.publish_out - sortorder: '6' color: C7A72D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.redeliver - sortorder: '7' color: BA2A5D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.messages.return_unroutable - uuid: 3205b991eb5443e680b571b23b4a1721 name: 'RabbitMQ: Queues' graph_items: - drawtype: GRADIENT_LINE color: 199C0D item: host: 'RabbitMQ cluster by Zabbix agent' key: rabbitmq.overview.object_totals.queues