我很难collectd.conf
通过. 期望监控的网络接口列表如下:interface
salt
collectd.conf
<Plugin interface>
Interface "em1"
Interface "em2"
</Plugin>
我已经确定我需要使用 asalt mine
将谷物拉入主控器 - 这是通过如下所示的支柱 sls 实现的:
mine_functions:
network.interfaces: []
在我的collectd.conf
我有:
<Plugin interface>
{% for host, info in salt['mine.get']('*','network.interfaces').items() %}
{% if host == grains['id'] %}
{% for interface in info %}
Interface "{{ interface }}"
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
</Plugin>
但是,它似乎对我不起作用:(