add apache_status for collectd to apache

add appserver header to all apache instances - just b/c
This commit is contained in:
Seth Vidal 2013-06-10 18:37:08 +00:00
parent ac6bbf9f76
commit 84e0086aca
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,5 @@
ExtendedStatus on
<Location /apache-status>
SetHandler server-status
</Location>

View file

@ -0,0 +1,5 @@
Header set AppTime "%D"
PassEnv HOSTNAME
Header set AppServer "{{ inventory_hostname }}"

View file

@ -32,3 +32,17 @@
- config
- hotfix
- name: add appserver headers.conf
template: src=$files/httpd/headers.conf.j2 dest=/etc/httpd/conf.d/headers.conf
notify:
- restart apache
tags:
- config
- name: add apache_status location for collectd
template: src=$files/httpd/apachestatus.conf dest=/etc/httpd/conf.d/apachestatus.conf
notify:
- restart apache
tags:
- config