summaryrefslogtreecommitdiff
path: root/puppet/modules/passenger/manifests/munin.pp
blob: 36bc53f24b387f62b7eacb6821cbd512397937a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class passenger::munin {

  case $passenger_memory_munin_config { '':
    { $passenger_memory_munin_config = "user root\nenv.passenger_memory_stats /usr/sbin/passenger-memory-stats" }
  }

  case $passenger_stats_munin_config { '':
    { $passenger_stats_munin_config = "user root\n" }
  }

  munin::plugin::deploy {
    'passenger_memory_stats':
      source => 'passenger/munin/passenger_memory_stats',
      config => $passenger_memory_munin_config;
    'passenger_stats':
      source => 'passenger/munin/passenger_stats',
      config => $passenger_stats_munin_config;
  }

}