mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
Zabbix: fixes infra/tickets#12976 - add apache-status monitoring
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
1004
roles/apache/files/zabbix/apache-template.yml
Normal file
1004
roles/apache/files/zabbix/apache-template.yml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -87,3 +87,34 @@
|
||||
tags:
|
||||
- config
|
||||
- apache
|
||||
|
||||
# HTTPd monitoring for Fedora Zabbix
|
||||
- name: Zabbix API Block
|
||||
vars:
|
||||
ansible_zabbix_auth_key: "{{ zabbix_auth_key }}"
|
||||
ansible_network_os: "{{ zabbix_network_os }}"
|
||||
ansible_connection: "{{ zabbix_connection }}"
|
||||
ansible_httpapi_port: "{{ zabbix_httpapi_port }}"
|
||||
ansible_httpapi_use_ssl: "{{ zabbix_httpapi_use_ssl }}"
|
||||
ansible_httpapi_validate_certs: "{{ zabbix_httpapi_validate_certs }}"
|
||||
ansible_host: "{{ zabbix_server }}"
|
||||
ansible_zabbix_url_path: "{{ zabbix_url_path }}"
|
||||
tags:
|
||||
- apache
|
||||
- zabbix_api
|
||||
block:
|
||||
- name: Import HTTPd template file
|
||||
community.zabbix.zabbix_template:
|
||||
template_yaml: "{{ lookup('file', 'zabbix/apache-template.yml') }}"
|
||||
state: present
|
||||
- name: Ensure HTTPd hostgroup is present
|
||||
community.zabbix.zabbix_group:
|
||||
host_groups:
|
||||
- HTTPd servers
|
||||
state: present
|
||||
- name: Add self to HTTPd in Zabbix
|
||||
community.zabbix.zabbix_host:
|
||||
host_name: "{{ inventory_hostname }}"
|
||||
host_groups: HTTPd servers
|
||||
link_templates: HTTPd Status Monitoring
|
||||
force: false
|
||||
|
||||
Reference in New Issue
Block a user