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

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

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

plugin: netlink plugin: netlink
template: linux/files/collectd_netlink.conf template: linux/files/collectd_netlink.conf
ignore_selected: {{ monitoring.netlink.ignore_selected }} 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 %} {%- set interfaces = monitoring.netlink.interfaces %}
{%- else %} {%- else %}
{%- set interfaces = salt['linux_netlink.ls'](monitoring.netlink.interface_regex) %} {%- set interfaces = salt['linux_netlink.ls'](monitoring.netlink.interface_regex) %}

Loading…
Cancel
Save