diff options
author | varac <varacanero@zeromail.org> | 2014-02-12 18:45:17 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-12 18:45:17 +0100 |
commit | 1c8c4f6f3b68ba1da13e6b6374c6c55fe8214789 (patch) | |
tree | 0c298d3bcbf0a69db7524c2ec7fe93de130a1727 /puppet/modules/site_check_mk/manifests/agent | |
parent | 9431d1c9da024f98f5c6eb7cf2eff68b2e3a1926 (diff) |
execute nagios plugins locally with mrpe
Diffstat (limited to 'puppet/modules/site_check_mk/manifests/agent')
-rw-r--r-- | puppet/modules/site_check_mk/manifests/agent/mrpe.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/manifests/agent/mrpe.pp b/puppet/modules/site_check_mk/manifests/agent/mrpe.pp new file mode 100644 index 00000000..37df7f74 --- /dev/null +++ b/puppet/modules/site_check_mk/manifests/agent/mrpe.pp @@ -0,0 +1,17 @@ +class site_check_mk::agent::mrpe { + # check_mk can use standard nagios plugins using + # a wrapper called mrpe + # see http://mathias-kettner.de/checkmk_mrpe.html + + package { 'nagios-plugins-basic': + ensure => latest, + } + + file { '/etc/check_mk/mrpe.cfg': + ensure => present + } -> + file_line { 'Apt': + line => 'APT /usr/lib/nagios/plugins/check_apt', + path => '/etc/check_mk/mrpe.cfg', + } +} |