diff options
author | mh <mh@immerda.ch> | 2008-10-10 18:48:10 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-10-10 18:48:10 +0000 |
commit | fb9b04497cee36428066c2e6f14b4473270a7b99 (patch) | |
tree | 6f9b90dcef586d64f3b2adc286dcc32e791e1909 /manifests/plugin.pp | |
parent | 1a6afef5c71eb98ec357163c1e345d10ee731acc (diff) |
openbsd uses if_errcoll: plugin
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 27221bc..878221f 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -197,11 +197,23 @@ class munin::plugins::base { class munin::plugins::interfaces inherits munin::plugins::base { $ifs = gsub(split($interfaces, " |,"), "(.+)", "if_\\1") - $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1") munin::plugin { $ifs: ensure => "if_"; - $if_errs: ensure => "if_err_"; } + case $operatingsystem { + openbsd: { + $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_errcoll_\\1") + munin::plugin{ + $if_errs: ensure => "if_errcoll_"; + } + } + default: { + $if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1") + munin::plugin{ + $if_errs: ensure => "if_err_"; + } + } + } } class munin::plugins::linux inherits munin::plugins::base { |