summaryrefslogtreecommitdiff
path: root/manifests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/plugins')
-rw-r--r--manifests/plugins/interfaces.pp6
-rw-r--r--manifests/plugins/vserver.pp9
2 files changed, 7 insertions, 8 deletions
diff --git a/manifests/plugins/interfaces.pp b/manifests/plugins/interfaces.pp
index de4b75b..03ed0e7 100644
--- a/manifests/plugins/interfaces.pp
+++ b/manifests/plugins/interfaces.pp
@@ -2,9 +2,9 @@
class munin::plugins::interfaces inherits munin::plugins::base {
$ifs = gsub(split($interfaces, " |,"), "(.+)", "if_\\1")
-
+
munin::plugin { $ifs: ensure => "if_"; }
-
+
case $operatingsystem {
openbsd: {
$if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_errcoll_\\1")
@@ -15,7 +15,7 @@ class munin::plugins::interfaces inherits munin::plugins::base {
default: {
$if_errs = gsub(split($interfaces, " |,"), "(.+)", "if_err_\\1")
munin::plugin{
- $if_errs: ensure => "if_err_";
+ $if_errs: ensure => "if_err_";
}
}
}
diff --git a/manifests/plugins/vserver.pp b/manifests/plugins/vserver.pp
index ffc4b0a..42a9bf4 100644
--- a/manifests/plugins/vserver.pp
+++ b/manifests/plugins/vserver.pp
@@ -1,9 +1,8 @@
class munin::plugins::vserver inherits munin::plugins::base {
- munin::plugin {
- [ netstat, processes ]:
- ensure => present;
- }
-
+ munin::plugin {
+ [ netstat, processes ]:
+ ensure => present;
+ }
}