Browse Source

Scratch using interfaces_override

pull/113/head
Jaymes Mosher 7 years ago
parent
commit
aa2a52cf9b
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      linux/map.jinja
  2. +1
    -1
      linux/meta/collectd.yml

+ 0
- 1
linux/map.jinja View File

@@ -210,7 +210,6 @@
'crit': '5%',
},
'netlink': {
'interface_override': False,
'interfaces': [],
'interface_regex': '^[a-z0-9]+$',
'ignore_selected': False,

+ 1
- 1
linux/meta/collectd.yml View File

@@ -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) %}

Loading…
Cancel
Save