blob: 08fcd63265c33625d7d0e10866ea4b1fab585cea [file] [log] [blame]
{%- from "collectd/map.jinja" import client with context %}
<LoadPlugin network>
Globals false
</LoadPlugin>
{%- for backend_name in client.backend.iteritems() %}
<Plugin network>
{%- if backend.mode == 'client' %}
Server "{{ backend.host }}" "{{ backend.port }}"
# <Server "{{ backend.host }}" "{{ backend.port }}">
# SecurityLevel Encrypt
# Username "{{ backend.user }}"
# Password "{{ backend.password }}"
# </Server>
TimeToLive 128
{%- endif %}
{%- if backend.mode == 'server' %}
Listen "{{ backend.host }}" "{{ backend.port }}"
# <Listen "{{ backend.host }}" "{{ backend.port }}">
# SecurityLevel Sign
# AuthFile "/etc/collectd/passwd"
# Interface "{{ backend.interface }}"
# </Listen>
MaxPacketSize 1024
{%- endif %}
# # proxy setup (client and server as above):
# Forward true
#
# # statistics about the network backend itself
# ReportStats false
#
# # "garbage collection"
# CacheFlush 1800
</Plugin>
{%- endfor %}