First rough cut at a logserver setup. Will need lots more tweaking.
This commit is contained in:
parent
061a72dae4
commit
d445a1df19
8 changed files with 287 additions and 2 deletions
5
roles/collectd/base/files/network-server.conf
Normal file
5
roles/collectd/base/files/network-server.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
LoadPlugin network
|
||||
|
||||
<Plugin "network">
|
||||
Listen "0.0.0.0"
|
||||
</Plugin>
|
|
@ -20,6 +20,14 @@
|
|||
copy: src=network-client.conf dest=/etc/collectd.d/network.conf
|
||||
notify:
|
||||
- restart collectd
|
||||
when: not inventory_hostname.startswith('log')
|
||||
|
||||
# install collectd-network config
|
||||
- name: /etc/collectd.d/network.conf
|
||||
copy: src=network-server.conf dest=/etc/collectd.d/network.conf
|
||||
notify:
|
||||
- restart collectd
|
||||
when: inventory_hostname.startswith('log')
|
||||
|
||||
# apache - localhost only - pretty much any apache server
|
||||
- name: install collectd-apache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue