diff --git a/roles/collectd/base/files/apache.conf b/roles/collectd/base/files/apache.conf index dacd82a7d9..441da4c581 100644 --- a/roles/collectd/base/files/apache.conf +++ b/roles/collectd/base/files/apache.conf @@ -1,6 +1,8 @@ LoadPlugin apache + URL "http://localhost/apache-status?auto" + diff --git a/roles/collectd/base/tasks/main.yml b/roles/collectd/base/tasks/main.yml index 8e342a1687..a59b828a8f 100644 --- a/roles/collectd/base/tasks/main.yml +++ b/roles/collectd/base/tasks/main.yml @@ -56,6 +56,14 @@ - restart collectd when: collectd_apache is defined +- name: Let collectd talk to apache over tcp + seboolean: name=collectd_tcp_network_connect state=yes persistent=yes + tags: + - collectd + ignore_errors: True + notify: + - restart collectd + when: collectd_apache is defined # Three tasks for handling our (two) custom selinux modules. - name: ensure a directory exists for our custom selinux module