summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/manifests/agent
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-02-28 23:05:52 +0100
committervarac <varacanero@zeromail.org>2014-03-03 17:36:39 +0100
commitefb262a0337493b7a7954ccdd72119d8519370af (patch)
treee318a6cc2982ffddce752b241144844fba870e09 /puppet/modules/site_check_mk/manifests/agent
parent34b7c8ebb3462fea880c848d960261cabd4a6a9f (diff)
check leap_mx (Feature #5175)
Diffstat (limited to 'puppet/modules/site_check_mk/manifests/agent')
-rw-r--r--puppet/modules/site_check_mk/manifests/agent/mx.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/manifests/agent/mx.pp b/puppet/modules/site_check_mk/manifests/agent/mx.pp
index c4d3ea13..2dd50400 100644
--- a/puppet/modules/site_check_mk/manifests/agent/mx.pp
+++ b/puppet/modules/site_check_mk/manifests/agent/mx.pp
@@ -1,5 +1,19 @@
class site_check_mk::agent::mx {
+ # watch logs
+ file { '/etc/check_mk/logwatch.d/leap_mx.cfg':
+ source => 'puppet:///modules/site_check_mk/agent/logwatch/leap_mx.cfg',
+ }
+
+ # local nagios plugin checks via mrpe
+ file_line {
+ 'Leap_MX_Procs':
+ line => 'Leap_MX_Procs /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a leap_mx',
+ path => '/etc/check_mk/mrpe.cfg';
+ }
+
+
+ # check stale files in queue dir
file { '/usr/lib/check_mk_agent/local/check_leap_mx.sh':
source => 'puppet:///modules/site_check_mk/agent/local_checks/mx/check_leap_mx.sh',
mode => '0755'