Skip to content
Snippets Groups Projects
Commit 5bd8505a authored by jurgenhaas's avatar jurgenhaas
Browse files

Configure pythin plugins

parent 0e852e72
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,8 @@
- automake
- pkg-config
- uuid-dev
- python-dev
- python-yaml
#FireQOS available from 15.04
#- firehol
......@@ -65,6 +67,28 @@
notify:
- "Re-start NetData"
- name: "Configure Python Plugin"
template:
src='python.d.conf'
dest='/etc/netdata/python.d.conf'
owner='netdata'
group='netdata'
mode=644
notify:
- "Re-start NetData"
- name: "Configure Plugins"
template:
src='{{ item }}.conf'
dest='/etc/netdata/python.d/{{ item }}.conf'
owner='netdata'
group='netdata'
mode=644
with_items:
- 'mysql'
notify:
- "Re-start NetData"
- name: "Check if KSM is available"
stat: path='/sys/kernel/mm/ksm'
register: ksm
......
update_every: 5
local:
user: 'root'
password: '{{ mysql_root_password|default("root") }}'
host: '127.0.0.1'
port: '3306'
# This is the configuration for python.d.plugin
enabled: yes
example: no
mysql: {{ (groups['dbserver-mysql'] is defined and inventory_hostname in groups['dbserver-mysql'])|ternary("yes", "no") }}
phpfpm: no
apache: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }}
nginx: no
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment