Dzahn has uploaded a new change for review.

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

Change subject: add check for https://phabricator.wikimedia.org
......................................................................

add check for https://phabricator.wikimedia.org

T957

Change-Id: Ie790fd2e3b607e927260288c1c1adfaf95be0fee
---
A modules/nagios_common/files/check_commands/phab.cfg
M modules/phabricator/manifests/monitoring.pp
2 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/04/169604/1

diff --git a/modules/nagios_common/files/check_commands/phab.cfg 
b/modules/nagios_common/files/check_commands/phab.cfg
new file mode 100644
index 0000000..900a0d3
--- /dev/null
+++ b/modules/nagios_common/files/check_commands/phab.cfg
@@ -0,0 +1,8 @@
+# custom command to check phabricator behind misc-web
+# using the -S should also give us cert expiry monitoring
+# we are also checking for string 'Wikimedia' to be in there
+# so it should trigger if 200 but shows something else
+define command{
+       command_name    check_https_phabricator
+       command_line    /usr/lib/nagios/plugins/check_http -S -H 
'phabricator.wikimedia.org' -I misc-web-lb.eqiad.wikimedia.org -u 
'https://phabricator.wikimedia.org/' -s 'Wikimedia and MediaWiki'
+       }
diff --git a/modules/phabricator/manifests/monitoring.pp 
b/modules/phabricator/manifests/monitoring.pp
index 9d6c99d..b137f82 100644
--- a/modules/phabricator/manifests/monitoring.pp
+++ b/modules/phabricator/manifests/monitoring.pp
@@ -5,4 +5,9 @@
         nrpe_command => "/usr/lib/nagios/plugins/check_procs -w 10:40 -c 1:50 
--ereg-argument-array 'PhabricatorTaskmasterDaemon'",
     }
 
+    monitor_service { 'phabricator-https':
+        description   => 'https://phabricator.wikimedia.org',
+        check_command => 'check_https_phabricator',
+    }
+
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie790fd2e3b607e927260288c1c1adfaf95be0fee
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to