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