zabbix: attach monitoring template to rabbitmq

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2024-05-16 09:13:24 +01:00
parent b083c70da2
commit 66defc189e
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
5 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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