Puppet Class: munin::plugins::interfaces
- Defined in:
- manifests/plugins/interfaces.pp
Overview
handle if_ and if_err_ plugins
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'manifests/plugins/interfaces.pp', line 2
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+|__tmp\d+')
$ifs = prefix($real_ifs, 'if_')
$if_err_plugin = $::operatingsystem ? {
'openbsd' => 'if_errcoll_',
default => 'if_err_',
}
$if_errs = prefix($real_ifs, $if_err_plugin)
munin::plugin { $ifs:
ensure => 'if_',
}
munin::plugin { $if_errs:
ensure => $if_err_plugin,
}
}
|