Signed-off-by: Stephen Gran <steve@lobefin.net>
}
class apache2 {
+ include munin-node::apache
+
package {
apache2: ensure => installed;
logrotate: ensure => installed;
--- /dev/null
+class munin-node::apache {
+ activate_munin_check("apache_accesses");
+ activate_munin_check("apache_processes");
+ activate_munin_check("apache_volume");
+}
+
+define activate_munin_check($script) {
+ file { "/etc/munin/plugins/$script":
+ ensure => "/usr/share/munin/plugins/$script"
+ notify => Exec["munin-node restart"];
+ }
+}
+
class munin-node {
package { munin-node: ensure => installed }