mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
zabbix: attach monitoring template to rabbitmq
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
@@ -85,4 +85,5 @@ varnish_group: proxies
|
||||
zabbix_templates:
|
||||
- group: "proxies" # Ansible group
|
||||
template: "external_hosts_http.json" # Template name in roles/zabbix/zabbix_templates/files/templatename.json
|
||||
custom_template: true # Is the template official template bundled with Zabbix or one of our custom templates
|
||||
hostgroup: "fedora external hosts" # Zabbix hostgroup
|
||||
|
||||
@@ -23,3 +23,8 @@ tcp_ports: [
|
||||
# HTTP API
|
||||
#15672,
|
||||
]
|
||||
zabbix_templates:
|
||||
- group: "rabbitmq" # Ansible group
|
||||
template: "RabbitMQ node by Zabbix agent" # Template name in roles/zabbix/zabbix_templates/files/templatename.json
|
||||
custom_template: false # Is the template official template bundled with Zabbix or one of our custom templates
|
||||
hostgroup: "fedora rabbitmq" # Zabbix hostgroup
|
||||
|
||||
@@ -30,3 +30,8 @@ tcp_ports: [
|
||||
# HTTP API
|
||||
#15672,
|
||||
]
|
||||
zabbix_templates:
|
||||
- group: "rabbitmq_stg" # Ansible group
|
||||
template: "RabbitMQ node by Zabbix agent" # Template name in roles/zabbix/zabbix_templates/files/templatename.json
|
||||
custom_template: false # Is the template official template bundled with Zabbix or one of our custom templates
|
||||
hostgroup: "fedora rabbitmq" # Zabbix hostgroup
|
||||
|
||||
@@ -56,4 +56,5 @@ virt_install_command: "{{ virt_install_command_two_nic_unsafe }}"
|
||||
zabbix_templates:
|
||||
- group: "releng_compose"
|
||||
template: "releng_compose_cronjobs.json"
|
||||
custom_template: true # Is the template official template bundled with Zabbix or one of our custom templates
|
||||
hostgroup: "fedora releng compose"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
template_json: "{{ lookup('file', item['template'] ) }}"
|
||||
state: present
|
||||
with_items: "{{ zabbix_templates }}" # Templates specific to an ansible group, can be overwridden in inventory/group_vars/group_name
|
||||
when: "{{ item['custom_template'] }}"
|
||||
tags:
|
||||
- zabbix_add_templates
|
||||
- zabbix_templates
|
||||
|
||||
Reference in New Issue
Block a user