Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'templates/app/rabbitmq_http')
-rw-r--r--templates/app/rabbitmq_http/README.md73
-rw-r--r--templates/app/rabbitmq_http/template_app_rabbitmq_http.yaml50
2 files changed, 59 insertions, 64 deletions
diff --git a/templates/app/rabbitmq_http/README.md b/templates/app/rabbitmq_http/README.md
index d2202fda60b..3d206d8c020 100644
--- a/templates/app/rabbitmq_http/README.md
+++ b/templates/app/rabbitmq_http/README.md
@@ -7,33 +7,34 @@ For Zabbix version: 6.2 and higher
The template to monitor RabbitMQ by Zabbix that work without any external scripts.
Most of the metrics are collected in one go, thanks to Zabbix bulk data collection.
-Template `RabbitMQ Cluster` — collects metrics by polling [RabbitMQ management plugin](https://www.rabbitmq.com/management.html) with HTTP agent remotely.
+ Template `RabbitMQ Cluster` — collects metrics by polling [RabbitMQ management plugin](https://www.rabbitmq.com/management.html) with HTTP agent remotely.
+_setup: |
+ Enable the RabbitMQ management plugin. See [RabbitMQ's documentation](https://www.rabbitmq.com/management.html) to enable it.
+ Create a user to monitor the service:
-This template was tested on:
-
-- RabbitMQ, version 3.5.7, 3.7.17, 3.7.18, 3.7.7, 3.8.5, 3.8.12
-
-## Setup
+ ```bash
+ rabbitmqctl add_user zbx_monitor <PASSWORD>
+ rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*"
+ rabbitmqctl set_user_tags zbx_monitor monitoring
+ ```
-> See [Zabbix template operation](https://www.zabbix.com/documentation/6.2/manual/config/templates_out_of_the_box/http) for basic instructions.
+ Login and password are also set in macros:
-Enable the RabbitMQ management plugin. See [RabbitMQ's documentation](https://www.rabbitmq.com/management.html) to enable it.
+ - {$RABBITMQ.API.USER}
+ - {$RABBITMQ.API.PASSWORD}
+_zabbix_forum_url: https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq
+_template_type: HTTP
-Create a user to monitor the service:
-```bash
-rabbitmqctl add_user zbx_monitor <PASSWORD>
-rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*"
-rabbitmqctl set_user_tags zbx_monitor monitoring
-```
+This template was tested on:
-Login and password are also set in macros:
+- RabbitMQ, version 3.5.7, 3.7.17, 3.7.18, 3.7.7, 3.8.5, 3.8.12
-- {$RABBITMQ.API.USER}
-- {$RABBITMQ.API.PASSWORD}
+## Setup
+Refer to the vendor documentation.
## Zabbix configuration
@@ -120,8 +121,6 @@ There are no template links in this template.
Please report any issues with the template at https://support.zabbix.com
-You can also provide feedback, discuss the template or ask for help with it at [ZABBIX forums](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq).
-
# RabbitMQ node by HTTP
## Overview
@@ -130,31 +129,33 @@ For Zabbix version: 6.2 and higher
The template to monitor RabbitMQ by Zabbix that work without any external scripts.
Most of the metrics are collected in one go, thanks to Zabbix bulk data collection.
-Template `RabbitMQ Node` — (Zabbix version >= 4.2) collects metrics by polling [RabbitMQ management plugin](https://www.rabbitmq.com/management.html) with HTTP agent remotely.
+ Template `RabbitMQ Node` — (Zabbix version >= 4.2) collects metrics by polling [RabbitMQ management plugin](https://www.rabbitmq.com/management.html) with HTTP agent remotely.
+_setup: |
+ Enable the RabbitMQ management plugin. See [RabbitMQ's documentation](https://www.rabbitmq.com/management.html) to enable it.
+ Create a user to monitor the service:
-This template was tested on:
-
-- RabbitMQ, version 3.5.7, 3.7.17, 3.7.18, 3.7.7, 3.8.5, 3.8.12
+ ```bash
+ rabbitmqctl add_user zbx_monitor <PASSWORD>
+ rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*"
+ rabbitmqctl set_user_tags zbx_monitor monitoring
+ ```
-## Setup
+ Login and password are also set in macros:
-Enable the RabbitMQ management plugin. See [RabbitMQ's documentation](https://www.rabbitmq.com/management.html) to enable it.
+ - {$RABBITMQ.API.USER}
+ - {$RABBITMQ.API.PASSWORD}
+_zabbix_forum_url: https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq
-Create a user to monitor the service:
-```bash
-rabbitmqctl add_user zbx_monitor <PASSWORD>
-rabbitmqctl set_permissions -p / zbx_monitor "" "" ".*"
-rabbitmqctl set_user_tags zbx_monitor monitoring
-```
+This template was tested on:
-Login and password are also set in macros:
+- RabbitMQ, version 3.5.7, 3.7.17, 3.7.18, 3.7.7, 3.8.5, 3.8.12
-- {$RABBITMQ.API.USER}
-- {$RABBITMQ.API.PASSWORD}
+## Setup
+Refer to the vendor documentation.
## Zabbix configuration
@@ -244,7 +245,7 @@ There are no template links in this template.
|RabbitMQ: Node is not running |<p>RabbitMQ node is not running</p> |`max(/RabbitMQ node by HTTP/rabbitmq.node.running,5m)=0` |AVERAGE |<p>**Depends on**:</p><p>- RabbitMQ: Service is down</p> |
|RabbitMQ: Memory alarm |<p>https://www.rabbitmq.com/memory.html</p> |`last(/RabbitMQ node by HTTP/rabbitmq.node.mem_alarm)=1` |AVERAGE | |
|RabbitMQ: Free disk space alarm |<p>https://www.rabbitmq.com/disk-alarms.html</p> |`last(/RabbitMQ node by HTTP/rabbitmq.node.disk_free_alarm)=1` |AVERAGE | |
-|RabbitMQ: has been restarted |<p>Uptime is less than 10 minutes</p> |`last(/RabbitMQ node by HTTP/rabbitmq.node.uptime)<10m` |INFO |<p>Manual close: YES</p> |
+|RabbitMQ: has been restarted |<p>Uptime is less than 10 minutes.</p> |`last(/RabbitMQ node by HTTP/rabbitmq.node.uptime)<10m` |INFO |<p>Manual close: YES</p> |
|RabbitMQ: Service is down |<p>-</p> |`last(/RabbitMQ node by HTTP/net.tcp.service["{$RABBITMQ.API.SCHEME}","{HOST.CONN}","{$RABBITMQ.API.PORT}"])=0` |AVERAGE |<p>Manual close: YES</p> |
|RabbitMQ: Service response time is too high |<p>-</p> |`min(/RabbitMQ node by HTTP/net.tcp.service.perf["{$RABBITMQ.API.SCHEME}","{HOST.CONN}","{$RABBITMQ.API.PORT}"],5m)>{$RABBITMQ.RESPONSE_TIME.MAX.WARN}` |WARNING |<p>Manual close: YES</p><p>**Depends on**:</p><p>- RabbitMQ: Service is down</p> |
|RabbitMQ: There are active alarms in the node |<p>http://{HOST.CONN}:{$RABBITMQ.API.PORT}/api/index.html</p> |`last(/RabbitMQ node by HTTP/rabbitmq.healthcheck.local_alarms[{#SINGLETON}])=0` |AVERAGE | |
@@ -260,5 +261,3 @@ There are no template links in this template.
Please report any issues with the template at https://support.zabbix.com
-You can also provide feedback, discuss the template or ask for help with it at [ZABBIX forums](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387226-discussion-thread-for-official-zabbix-template-rabbitmq).
-
diff --git a/templates/app/rabbitmq_http/template_app_rabbitmq_http.yaml b/templates/app/rabbitmq_http/template_app_rabbitmq_http.yaml
index 21ca1a1ffc9..2301f7a8f15 100644
--- a/templates/app/rabbitmq_http/template_app_rabbitmq_http.yaml
+++ b/templates/app/rabbitmq_http/template_app_rabbitmq_http.yaml
@@ -1,7 +1,7 @@
zabbix_export:
version: '6.2'
- date: '2022-04-06T19:59:27Z'
- groups:
+ date: '2022-06-07T19:36:40Z'
+ template_groups:
-
uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
@@ -13,8 +13,6 @@ zabbix_export:
description: |
Get cluster metrics from RabbitMQ management plugin provided an HTTP-based API using HTTP 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
-
Template tooling version used: 0.41
groups:
-
@@ -1156,8 +1154,8 @@ zabbix_export:
parameters:
- |
var rabbit_version = parseInt(value.split('.')[0]) * 10000 +
- parseInt(value.split('.')[1]) * 100 +
- parseInt(value.split('.')[2])
+ parseInt(value.split('.')[1]) * 100 +
+ parseInt(value.split('.')[2])
return JSON.stringify(rabbit_version >= 30810 ? [{'{#SINGLETON}': ''}] : []);
tags:
-
@@ -1209,8 +1207,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Messages'
host: 'RabbitMQ cluster by HTTP'
+ name: 'RabbitMQ: Messages'
-
type: GRAPH_CLASSIC
x: '12'
@@ -1225,8 +1223,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Connections'
host: 'RabbitMQ cluster by HTTP'
+ name: 'RabbitMQ: Connections'
-
type: GRAPH_CLASSIC
'y': '5'
@@ -1241,8 +1239,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Messages status'
host: 'RabbitMQ cluster by HTTP'
+ name: 'RabbitMQ: Messages status'
-
type: GRAPH_CLASSIC
x: '12'
@@ -1258,8 +1256,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Queues'
host: 'RabbitMQ cluster by HTTP'
+ name: 'RabbitMQ: Queues'
-
type: GRAPH_CLASSIC
'y': '10'
@@ -1274,8 +1272,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Messages per second'
host: 'RabbitMQ cluster by HTTP'
+ name: 'RabbitMQ: Messages per second'
valuemaps:
-
uuid: 3380e05a15774dad92e77c983448698b
@@ -1297,8 +1295,6 @@ zabbix_export:
description: |
Get node metrics from RabbitMQ management plugin provided an HTTP-based API using HTTP 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
-
Template tooling version used: 0.41
groups:
-
@@ -1835,7 +1831,7 @@ zabbix_export:
name: 'RabbitMQ: has been restarted'
event_name: 'RabbitMQ: has been restarted (uptime < 10m)'
priority: INFO
- description: 'Uptime is less than 10 minutes'
+ description: 'Uptime is less than 10 minutes.'
manual_close: 'YES'
tags:
-
@@ -1905,8 +1901,8 @@ zabbix_export:
parameters:
- |
var rabbit_version = parseInt(value.split('.')[0]) * 10000 +
- parseInt(value.split('.')[1]) * 100 +
- parseInt(value.split('.')[2])
+ parseInt(value.split('.')[1]) * 100 +
+ parseInt(value.split('.')[2])
return JSON.stringify(rabbit_version < 30810 ? [{'{#SINGLETON}': ''}] : []);
-
uuid: ab89d103c015400fbbeecaaf9bf01400
@@ -2188,8 +2184,8 @@ zabbix_export:
parameters:
- |
var rabbit_version = parseInt(value.split('.')[0]) * 10000 +
- parseInt(value.split('.')[1]) * 100 +
- parseInt(value.split('.')[2])
+ parseInt(value.split('.')[1]) * 100 +
+ parseInt(value.split('.')[2])
return JSON.stringify(rabbit_version >= 30810 ? [{'{#SINGLETON}': ''}] : []);
-
uuid: cc1d85b6045b44b38f588cd9a4c6c62d
@@ -2813,14 +2809,14 @@ zabbix_export:
key: rabbitmq.get_queues
lld_macro_paths:
-
+ lld_macro: '{#NODE}'
+ path: $.node
+ -
lld_macro: '{#QUEUE}'
path: $.name
-
lld_macro: '{#VHOST}'
path: $.vhost
- -
- lld_macro: '{#NODE}'
- path: $.node
tags:
-
tag: class
@@ -2883,8 +2879,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Node status'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: Node status'
-
type: GRAPH_CLASSIC
x: '12'
@@ -2899,8 +2895,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Uptime'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: Uptime'
-
type: GRAPH_CLASSIC
'y': '5'
@@ -2915,8 +2911,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Disk free'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: Disk free'
-
type: GRAPH_CLASSIC
x: '12'
@@ -2932,8 +2928,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Memory used'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: Memory used'
-
type: GRAPH_CLASSIC
'y': '10'
@@ -2948,8 +2944,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: File descriptors'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: File descriptors'
-
type: GRAPH_CLASSIC
x: '12'
@@ -2965,8 +2961,8 @@ zabbix_export:
type: GRAPH
name: graphid
value:
- name: 'RabbitMQ: Sockets'
host: 'RabbitMQ node by HTTP'
+ name: 'RabbitMQ: Sockets'
valuemaps:
-
uuid: e65c3d3e8ea443a281b37c51ca461c26