apache: add Munin configuration for Apache server-status URL

This commit is contained in:
Jérémy Lecour 2019-01-01 21:08:51 +01:00
parent 6fadd4edb1
commit 41c1ed5a70
2 changed files with 16 additions and 1 deletions

View file

@ -11,6 +11,7 @@ The **patch** part changes incrementally at each release.
## [Unreleased]
### Added
* apache: add Munin configuration for Apache server-status URL
* evomaintenance: database variables must be set or the task fails
* redis: Configure munin when working in instance mode
* redis: add a variable to disable the restart handler

View file

@ -39,3 +39,17 @@
dest: /var/www/index.html
regexp: '__SERVERSTATUS_SUFFIX__'
replace: "{{ apache_serverstatus_suffix }}"
- name: Munin configuration has a section for apache
lineinfile:
dest: /etc/munin/plugin-conf.d/munin-node
line: "[apache_*]"
create: no
- name: apache-status URL is configured for Munin
lineinfile:
dest: /etc/munin/plugin-conf.d/munin-node
line: "env.url http://127.0.0.1/server-status-{{ apache_serverstatus_suffix }}?auto"
regexp: "env.url http://127.0.0.1/server-status"
insertafter: "[apache_*]"
create: no