diff options
author | varac <varacanero@zeromail.org> | 2016-05-31 07:52:10 +0000 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-05-31 07:52:10 +0000 |
commit | 42ba6c23b5b6931f70baa09fc0af3406cc12768e (patch) | |
tree | cb926778ee249f3062bdac1b7147467be822409c /example/site_check_mk/manifests/agent/apt.pp | |
parent | 5e6368f34b7b85043c2e47753ae7681343886c40 (diff) | |
parent | 1095c6616dc9cd0aaedf611b7da3c1fc56dd2e5f (diff) |
Merge branch 'example' into 'master'
provide an example site_check_mk with basic examples to get users started
See merge request !15
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'] ]; + } +} |