From fb9b04497cee36428066c2e6f14b4473270a7b99 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 10 Oct 2008 18:48:10 +0000 Subject: openbsd uses if_errcoll: plugin --- manifests/plugin.pp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'manifests/plugin.pp') 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 { -- cgit v1.2.3