zabbix: attach monitoring template to rabbitmq
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
parent
b083c70da2
commit
66defc189e
5 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue