Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58906


Change subject: icinga: fix jenkins monitoring
......................................................................

icinga: fix jenkins monitoring

622bf3a8 / https://gerrit.wikimedia.org/r/#/c/58489/ tweaked the jenkins
command like to define a java system property. That makes check_jenkins
unable to find the process.  Using a wildcard regex between java and the
-jar would let us catch the jenkins process no matter how many system
properties we can set.

Change-Id: I58532453961c8c8ddc9d2c7fd723dbdad172a615
---
M templates/icinga/nrpe_local.cfg.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/06/58906/1

diff --git a/templates/icinga/nrpe_local.cfg.erb 
b/templates/icinga/nrpe_local.cfg.erb
index 9cbc02c..33214e8 100644
--- a/templates/icinga/nrpe_local.cfg.erb
+++ b/templates/icinga/nrpe_local.cfg.erb
@@ -8,7 +8,7 @@
 
 # process checks, we can't make this generic because we don't pass args via 
nrpe (security)
 command[check_ircecho]=/usr/lib/nagios/plugins/check_procs -w 1:4 -c 1:20 -a 
ircecho
-command[check_jenkins]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 
--ereg-argument-array '^/usr/bin/java -jar /usr/share/jenkins/jenkins.war'
+command[check_jenkins]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 
--ereg-argument-array '^/usr/bin/java .*-jar /usr/share/jenkins/jenkins.war'
 command[check_zuul]=/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 
--ereg-argument-array '^/usr/bin/python /usr/local/bin/zuul-server'
 command[check_mailman]=/usr/lib/nagios/plugins/check_procs -w 1:25 -c 1:35 -a 
mailman
 command[check_spamd]=/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1:40 -a 
spamd

-- 
To view, visit https://gerrit.wikimedia.org/r/58906
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58532453961c8c8ddc9d2c7fd723dbdad172a615
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to