openbsd uses if_errcoll: plugin
authormh <mh@immerda.ch>
Fri, 10 Oct 2008 18:48:10 +0000 (18:48 +0000)
committermh <mh@immerda.ch>
Fri, 10 Oct 2008 18:48:10 +0000 (18:48 +0000)
manifests/plugin.pp

index 27221bc..878221f 100644 (file)
@@ -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 {