- file { "/etc/munin/munin-node.conf":
- source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf",
- "puppet:///munin-node/common/munin-node.conf" ],
- require => Package["munin-node"],
- notify => Exec["munin-node restart"],
+ activate_munin_check {
+ "cpu":;
+ "df":;
+ "df_abs":;
+ "df_inode":;
+ "entropy":;
+ "forks":;
+ "interrupts":;
+ "iostat":;
+ "irqstats":;
+ "load":;
+ "memory":;
+ "ntp_offset":;
+ "ntp_states":;
+ "open_files":;
+ "open_inodes":;
+ "processes":;
+ "swap":;
+ "uptime":;
+ "vmstat":;
+ }
+
+ case $spamd {
+ "true": {
+ activate_munin_check { "spamassassin":; }
+ }
+ }
+
+ case $vsftpd {
+ "true": {
+ package {
+ "logtail": ensure => installed;
+ }
+ activate_munin_check {
+ "vsftpd":;
+ "ps_vsftpd": script => "ps_";
+ }
+ }
+ }
+
+ file {
+ "/etc/munin/munin-node.conf":
+ content => template("munin-node/munin-node.conf.erb"),
+ require => Package["munin-node"],
+ notify => Exec["munin-node restart"];
+
+ "/etc/munin/plugin-conf.d/munin-node":
+ content => template("munin-node/munin-node.plugin.conf.erb"),
+ require => Package["munin-node"],
+ notify => Exec["munin-node restart"];