summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMatt Taggart <taggart@riseup.net>2014-05-16 11:52:32 -0700
committerMatt Taggart <taggart@riseup.net>2015-04-16 21:08:58 +0000
commit7893decc59cc67d446e65f7045e0de5ee929252e (patch)
treea4bd77e5df1bcc4b727749fe2c5acd349269b083 /manifests
parent4a6e0fe8b1c17d2b35da7b7e548c01d93ee1ea9c (diff)
add mrpe subclass to setup the needed things for doing mrpe checks, so that those checks can just include it (stolen from the leap site_check_mk, seems like a good thing to have in the shared module)
Diffstat (limited to 'manifests')
-rw-r--r--manifests/agent/mrpe.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/agent/mrpe.pp b/manifests/agent/mrpe.pp
new file mode 100644
index 0000000..749550a
--- /dev/null
+++ b/manifests/agent/mrpe.pp
@@ -0,0 +1,17 @@
+class check_mk::agent::mrpe {
+ # check_mk can use standard nagios plugins using
+ # a wrapper called mrpe
+ # see http://mathias-kettner.de/checkmk_mrpe.html
+ # this subclass is provided to be included by checks that use mrpe
+
+ # FIXME: this is Debian specific and should be made more generic
+ package { 'nagios-plugins-basic':
+ ensure => latest,
+ }
+
+ # ensure the config file exists, individual checks will add lines to it
+ file { '/etc/check_mk/mrpe.cfg':
+ ensure => present,
+ require => Package['check-mk-agent']
+ }
+}