diff options
author | mh <mh@immerda.ch> | 2013-02-28 20:32:41 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-02-28 20:32:41 +0100 |
commit | 80c3e890becd31f704f3409094d6da1c137b844e (patch) | |
tree | ac638751e51aad10a9a4eda3d8685c27feb1f3d9 /manifests | |
parent | 6c5c5942e3626f2686112b7d760a296dc54fbe48 (diff) |
add munin plugin to this module
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/munin.pp | 8 | ||||
-rw-r--r-- | manifests/status.pp | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp new file mode 100644 index 0000000..8b5bda1 --- /dev/null +++ b/manifests/munin.pp @@ -0,0 +1,8 @@ +# manage apache monitoring things +class apache::munin { + munin::plugin{ [ 'apache_accesses', 'apache_processes', 'apache_volume' ]: } + munin::plugin::deploy { 'apache_activity': + source => 'apache/munin/apache_activity', + seltype => 'munin_services_plugin_exec_t', + } +} diff --git a/manifests/status.pp b/manifests/status.pp index 735414c..1f7ca89 100644 --- a/manifests/status.pp +++ b/manifests/status.pp @@ -1,12 +1,12 @@ -# manifests/status.pp - +# enable apache status page +# manage munin plugins if requested class apache::status { case $::operatingsystem { centos: { include apache::status::centos } defaults: { include apache::status::base } } if $apache::manage_munin { - include munin::plugins::apache + include apache::munin } } |