diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-12 12:31:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-12 12:31:25 -0300 |
commit | 7beae39bc53042b9fbf214653d390c988a03ad1b (patch) | |
tree | 1d69809367a8dde2bcdf9ea4d1275f779eab98b5 /manifests/subsystem/monitor/master.pp | |
parent | 276e6c4762ba971d3bc86a9072c474251df56441 (diff) | |
download | puppet-nodo-7beae39bc53042b9fbf214653d390c988a03ad1b.tar.gz puppet-nodo-7beae39bc53042b9fbf214653d390c988a03ad1b.tar.bz2 |
Split munin-update and munin-graph on different cronjobs
Diffstat (limited to 'manifests/subsystem/monitor/master.pp')
-rw-r--r-- | manifests/subsystem/monitor/master.pp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/subsystem/monitor/master.pp b/manifests/subsystem/monitor/master.pp index c7241b3..c93ec0e 100644 --- a/manifests/subsystem/monitor/master.pp +++ b/manifests/subsystem/monitor/master.pp @@ -24,6 +24,42 @@ class nodo::subsystem::monitor::master { }, } + # See https://raymii.org/s/tutorials/Munin_optimalization_on_Debian.html + file { '/usr/local/bin/munin-graph': + ensure => $ensure, + owner => root, + group => root, + mode => 0755, + source => 'puppet:///modules/nodo/bin/munin-graph', + } + + file { '/etc/cron.d/munin-graph': + ensure => $ensure, + owner => root, + group => root, + mode => 0644, + content => "10 * * * * munin if [ -x /usr/local/bin/munin-graph ]; then /usr/local/bin/munin-graph; fi\n", + require => File['/usr/local/bin/munin-graph'], + } + + # We won't mess with the package, so we distribute our own munin-cron + file { '/usr/local/bin/munin-cron': + ensure => $ensure, + owner => root, + group => root, + mode => 0755, + source => 'puppet:///modules/nodo/bin/munin-cron', + } + + file { '/etc/cron.d/munin': + ensure => $ensure, + owner => root, + group => root, + mode => 0644, + source => 'puppet:///modules/nodo/etc/cron.d/munin', + require => File['/usr/local/bin/munin-cron'], + } + # # See https://raymii.org/s/tutorials/Munin_optimalization_on_Debian.html # https://munin.readthedocs.org/en/latest/master/rrdcached.html |