summaryrefslogtreecommitdiff
path: root/puppet/modules/check_mk/manifests/agent/mrpe.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:41 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:41 -0400
commit783f953a87ef0531dd0b43614a101362c3e592c5 (patch)
tree1b2b12314188537703cc79ee784f5be33c7c2ad6 /puppet/modules/check_mk/manifests/agent/mrpe.pp
parent8d50b8cf042eb3b25095281734c8dd58e606c018 (diff)
parentc9d50f333a81c716f3e227e9eb449dc76b6eb6e3 (diff)
Merge commit 'c9d50f333a81c716f3e227e9eb449dc76b6eb6e3' as 'puppet/modules/check_mk'
Diffstat (limited to 'puppet/modules/check_mk/manifests/agent/mrpe.pp')
-rw-r--r--puppet/modules/check_mk/manifests/agent/mrpe.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/puppet/modules/check_mk/manifests/agent/mrpe.pp b/puppet/modules/check_mk/manifests/agent/mrpe.pp
new file mode 100644
index 00000000..5bc5f331
--- /dev/null
+++ b/puppet/modules/check_mk/manifests/agent/mrpe.pp
@@ -0,0 +1,19 @@
+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
+ if !defined(Package['nagios-plugins-basic']) {
+ 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']
+ }
+}