add apache_status for collectd to apache
add appserver header to all apache instances - just b/c
This commit is contained in:
parent
ac6bbf9f76
commit
84e0086aca
3 changed files with 24 additions and 0 deletions
5
files/httpd/apachestatus.conf
Normal file
5
files/httpd/apachestatus.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
ExtendedStatus on
|
||||
|
||||
<Location /apache-status>
|
||||
SetHandler server-status
|
||||
</Location>
|
5
files/httpd/headers.conf.j2
Normal file
5
files/httpd/headers.conf.j2
Normal file
|
@ -0,0 +1,5 @@
|
|||
Header set AppTime "%D"
|
||||
PassEnv HOSTNAME
|
||||
Header set AppServer "{{ inventory_hostname }}"
|
||||
|
||||
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue