summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/manifests/agent/haproxy.pp
blob: 6d52efba70108016f64a189970df62d0ffb00c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class site_check_mk::agent::haproxy {

  include site_check_mk::agent::package::nagios_plugins_contrib

  # local nagios plugin checks via mrpe
  augeas { 'haproxy':
    incl    => '/etc/check_mk/mrpe.cfg',
    lens    => 'Spacevars.lns',
    changes => [
      'rm /files/etc/check_mk/mrpe.cfg/Haproxy',
      'set Haproxy \'/usr/lib/nagios/plugins/check_haproxy -u "http://localhost:8000/haproxy;csv"\'' ],
    require => File['/etc/check_mk/mrpe.cfg'];
  }

}