diff options
author | kwadronaut <kwadronaut@leap.se> | 2018-11-14 11:09:02 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2018-11-14 11:09:02 +0100 |
commit | 06b521b6887d33b4cfa650c0d26850c8d1cc0ef8 (patch) | |
tree | caa0bac49dfd2573462acef06b68d2ea69d8cdb8 /example/site_check_mk/manifests/agent/apt.pp | |
parent | 6ffee2d778992b783bd29a1ddeaab61baf6d47aa (diff) | |
parent | 15aba17d007e076ea09e50c837081ee1bec1b301 (diff) |
Diffstat (limited to 'example/site_check_mk/manifests/agent/apt.pp')
-rw-r--r-- | example/site_check_mk/manifests/agent/apt.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/example/site_check_mk/manifests/agent/apt.pp b/example/site_check_mk/manifests/agent/apt.pp new file mode 100644 index 0000000..a74a906 --- /dev/null +++ b/example/site_check_mk/manifests/agent/apt.pp @@ -0,0 +1,25 @@ +class site_check_mk::agent::apt { + include check_mk::agent::mrpe + + + # we deliver a wrapper to check_apt that makes it more useful + augeas { + "Apt": + incl => '/etc/check_mk/mrpe.cfg', + lens => 'Spacevars.lns', + changes => 'set APT "/usr/local/lib/nagios/plugins/check_apt -t 30"', + require => [ File['/usr/local/lib/nagios/plugins' ], Package['check-mk-agent'] ]; + } + + # installing a local plugin, so include this to get the dirs + include site_nagios::localplugin + + file { + '/usr/local/lib/nagios/plugins/check_apt': + source => 'puppet:///modules/site_check_mk/agent/apt/check_apt', + owner => root, + group => root, + mode => '0750', + require => [ File['/usr/local/lib/nagios/plugins' ], Package['nagios-plugins-basic'] ]; + } +} |