From 80c3e890becd31f704f3409094d6da1c137b844e Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 28 Feb 2013 20:32:41 +0100 Subject: add munin plugin to this module --- manifests/munin.pp | 8 ++++++++ manifests/status.pp | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 manifests/munin.pp (limited to 'manifests') 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 } } -- cgit v1.2.3