summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/manifests/agent
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-11-16 15:15:10 +0100
committervarac <varacanero@zeromail.org>2015-11-16 15:16:07 +0100
commit543fd8cbacf66e4ce44b6761d130e3109f308d02 (patch)
treebc49f6345ddc0b6bfc55c8fd556e61a2ee2b505e /puppet/modules/site_check_mk/manifests/agent
parent7d0b6b25e49a1ccb70c4f502f7dfc58878b900cc (diff)
[feat] Remove redundant nagios check for mx procs
leap_cli integrates a check for running mx procs already, which is also integrated into nagios (called "Mx/Are_MX_daemons_running")
Diffstat (limited to 'puppet/modules/site_check_mk/manifests/agent')
-rw-r--r--puppet/modules/site_check_mk/manifests/agent/mx.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/puppet/modules/site_check_mk/manifests/agent/mx.pp b/puppet/modules/site_check_mk/manifests/agent/mx.pp
index 98757b59..20cbcade 100644
--- a/puppet/modules/site_check_mk/manifests/agent/mx.pp
+++ b/puppet/modules/site_check_mk/manifests/agent/mx.pp
@@ -1,3 +1,4 @@
+# check check_mk agent checks for mx service
class site_check_mk::agent::mx {
# watch logs
@@ -6,13 +7,13 @@ class site_check_mk::agent::mx {
}
# local nagios plugin checks via mrpe
+ # removed because leap_cli integrates a check for running mx procs already,
+ # which is also integrated into nagios (called "Mx/Are_MX_daemons_running")
augeas {
'Leap_MX_Procs':
incl => '/etc/check_mk/mrpe.cfg',
lens => 'Spacevars.lns',
- changes => [
- 'rm /files/etc/check_mk/mrpe.cfg/Leap_MX_Procs',
- 'set Leap_MX_Procs \'/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a "/usr/bin/python /usr/bin/twistd --pidfile=/var/run/leap_mx.pid --rundir=/var/lib/leap_mx/ --python=/usr/share/app/leap_mx.tac --logfile=/var/log/leap/mx.log"\'' ],
+ changes => 'rm /files/etc/check_mk/mrpe.cfg/Leap_MX_Procs',
require => File['/etc/check_mk/mrpe.cfg'];
}