summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/plugins/interfaces.pp2
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index bbabf2e..367ba8f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -40,6 +40,7 @@ class munin (
$munin_group = 'absent',
$cgi_graphing = false,
$cgi_owner = 'os_default',
+ $if_filter = 'eth\d+_\d+|sit0|virbr\d+_nic|vif\d+_\d+|veth\d+|vnet\d+|__tmp\d+',
) {
include munin::client
diff --git a/manifests/plugins/interfaces.pp b/manifests/plugins/interfaces.pp
index 35b41fd..2bbc1c6 100644
--- a/manifests/plugins/interfaces.pp
+++ b/manifests/plugins/interfaces.pp
@@ -2,7 +2,7 @@
class munin::plugins::interfaces {
# filter out many of the useless interfaces that show up
- $real_ifs = reject(split($::interfaces, ' |,'), 'eth\d+_\d+|sit0|virbr\d+_nic|vif\d+_\d+|veth\d+|vnet\d+|__tmp\d+')
+ $real_ifs = reject(split($::interfaces, ' |,'), $munin::if_filter)
$ifs = prefix($real_ifs, 'if_')
$if_err_plugin = $::operatingsystem ? {