diff options
author | mh <mh@immerda.ch> | 2008-10-01 21:28:10 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-10-01 21:28:10 +0000 |
commit | f4f092398a1104ed223d94f7022671a9deccfa96 (patch) | |
tree | 1beb58a68efd1713c3e81cc9660ac270b99e7269 /manifests/plugin.pp | |
parent | b7e757f96c1efd690e531c4c91e969867a2ebc91 (diff) |
adding default plugins for openbsd, refactor the same plugins together in the base class
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 4e922ed..27221bc 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -156,7 +156,13 @@ class munin::plugins::base { notify => Service['munin-node'], } - munin::plugin {'uptime': ensure => present, } + munin::plugin { + [ df, cpu, interrupts, load, memory, netstat, open_files, + processes, swap, uptime, users, vmstat + ]: + ensure => present, + } + include munin::plugins::interfaces case $kernel { openbsd: { @@ -201,22 +207,31 @@ class munin::plugins::interfaces inherits munin::plugins::base { class munin::plugins::linux inherits munin::plugins::base { munin::plugin { - [ df_abs, forks, memory, processes, cpu, df_inode, irqstats, - netstat, open_files, swap, df, entropy, interrupts, load, open_inodes, - vmstat - ]: + [ df_abs, forks, df_inode, irqstats, entropy, open_inodes ]: ensure => present; acpi: ensure => $acpi_available; } - - include munin::plugins::interfaces } class munin::plugins::debian inherits munin::plugins::base { munin::plugin { apt_all: ensure => present; } } +class munin::plugins::openbsd inherits munin::plugins::base { + munin::plugin { + [ df, cpu, interrupts, load, memory, netstat, open_files, + processes, swap, users, vmstat + ]: + ensure => present, + } + munin::plugin { + [ memory_pools, memory_types ]: + ensure => present, + } + +} + class munin::plugins::vserver inherits munin::plugins::base { munin::plugin { [ netstat, processes ]: @@ -242,7 +257,9 @@ class munin::plugins::dom0 inherits munin::plugins::physical { } class munin::plugins::physical inherits munin::plugins::base { - munin::plugin { iostat: } + case $kernel { + linux: { munin::plugin { iostat: } } + } } class munin::plugins::muninhost inherits munin::plugins::base { |