blob: 0062678ae5644a8a94d7f1b312f19154ada08c49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# handle if_ and if_err_ plugins
class munin::plugins::interfaces inherits munin::plugins::base {
$ifs = regsubst(split($interfaces, " |,"), "(.+)", "if_\\1")
munin::plugin {
$ifs: ensure => "if_";
}
case $operatingsystem {
openbsd: {
$if_errs = regsubst(split($interfaces, " |,"), "(.+)", "if_errcoll_\\1")
munin::plugin{
$if_errs: ensure => "if_errcoll_";
}
}
default: {
$if_errs = regsubst(split($interfaces, " |,"), "(.+)", "if_err_\\1")
munin::plugin{
$if_errs: ensure => "if_err_";
}
}
}
}
|