Commit f06e5dc4 authored by Wágner Ferenc's avatar Wágner Ferenc
Browse files

Activate Munin plugins for Apache measurements

parent 3575ca66
......@@ -20,7 +20,13 @@
vars:
- nss_cn: listserv.niif.hu
- list_domain: listserv.niif.hu
- munin_extra_packages:
- munin-plugins-apache
- munin_custom_plugins:
apache_accesses: apache_accesses
apache_volume: apache_volume
apache_process_detail: apache_process_detail
entropy: entropy
exim_mailstats: exim_mailstats
exim_mailqueue: exim_mailqueue
......
......@@ -61,3 +61,13 @@
owner: root
group: root
mode: 0644
- name: Configure Munin plugins
become: yes
template:
src: apache.ansible
dest: /etc/munin/plugin-conf.d/apache.ansible
owner: root
group: root
mode: 0644
notify: Restart munin-node
[apache_*]
env.url https://{{ list_domain }}:%d/server-status?auto
env.ports 443
[apache_process_detail]
env.url https://{{ list_domain }}/server-status?auto
......@@ -53,6 +53,14 @@ LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
# Munin plugins
LoadModule status_module /usr/lib/apache2/modules/mod_status.so
LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
<Location /server-status>
SetHandler server-status
Require local
</Location>
## ports.conf:
Listen 443
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment