Hashar has uploaded a new change for review.
https://gerrit.wikimedia.org/r/51174
Change subject: WIP monitoring lucene search boxes
......................................................................
WIP monitoring lucene search boxes
Experiment to get monitoring of our Lucene search boxes.
Patch is lacking a map of methods/project available on each of the
boxes.
Change-Id: I27516dc613a4b2f433ce156ba697c26ad4fe28f0
---
M manifests/search.pp
M templates/icinga/checkcommands.cfg.erb
M templates/nagios/checkcommands.cfg.erb
3 files changed, 18 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/74/51174/1
diff --git a/manifests/search.pp b/manifests/search.pp
index e651a27..83e2a42 100644
--- a/manifests/search.pp
+++ b/manifests/search.pp
@@ -105,6 +105,9 @@
if $lucene::server::indexer == false {
monitor_service { "lucene": description => "Lucene",
check_command => "check_lucene", retries => 6 }
+
+ # Each box hosts different databases
+ monitor_service { 'lucene_search': description =>
'Lucene search', check_command =>
"check_lucene_frontend!$lucene_project_to_check" }
}
}
diff --git a/templates/icinga/checkcommands.cfg.erb
b/templates/icinga/checkcommands.cfg.erb
index a345992..1841b4c 100644
--- a/templates/icinga/checkcommands.cfg.erb
+++ b/templates/icinga/checkcommands.cfg.erb
@@ -189,6 +189,13 @@
command_line $USER1$/check_tcp -t 90 -w 10 -p 8123 -H $HOSTADDRESS$
}
+# Http query on a Lucene search box
+# ARG1: lucene method to invoke (search, prefix, related ..)
+# ARG2: a wikimedia database name
+define command{
+ command_name check_lucene_frontend
+ command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$'
-p 8123 -u '/$ARG1$/$ARG2$/Main_page'
+ }
define command {
command_name check_bgpstate
diff --git a/templates/nagios/checkcommands.cfg.erb
b/templates/nagios/checkcommands.cfg.erb
index 9162497..1d3b5ce 100644
--- a/templates/nagios/checkcommands.cfg.erb
+++ b/templates/nagios/checkcommands.cfg.erb
@@ -177,6 +177,14 @@
command_line $USER1$/check_tcp -t 90 -w 10 -p 8123 -H $HOSTADDRESS$
}
+# Http query on a Lucene search box
+# ARG1: lucene method to invoke (search, prefix, related ..)
+# ARG2: a wikimedia database name to use
+define command{
+ command_name check_lucene_frontend
+ command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$'
-p 8123 -u '/$ARG1$/$ARG2$/Main_page'
+ }
+
define command {
command_name check_bgpstate
--
To view, visit https://gerrit.wikimedia.org/r/51174
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27516dc613a4b2f433ce156ba697c26ad4fe28f0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits