@@ -210,7 +210,6 @@ | |||
'crit': '5%', | |||
}, | |||
'netlink': { | |||
'interface_override': False, | |||
'interfaces': [], | |||
'interface_regex': '^[a-z0-9]+$', | |||
'ignore_selected': False, |
@@ -4,7 +4,7 @@ local_plugin: | |||
plugin: netlink | |||
template: linux/files/collectd_netlink.conf | |||
ignore_selected: {{ monitoring.netlink.ignore_selected }} | |||
{%- if monitoring.netlink.interface_override and monitoring.netlink.interfaces is list %} | |||
{%- if monitoring.netlink.interfaces is list and monitoring.netlink.interfaces|length > 0 %} | |||
{%- set interfaces = monitoring.netlink.interfaces %} | |||
{%- else %} | |||
{%- set interfaces = salt['linux_netlink.ls'](monitoring.netlink.interface_regex) %} |