Dzahn has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/348165 )

Change subject: Phabricator: Add additial check just for checking phd
......................................................................


Phabricator: Add additial check just for checking phd

This additial check will check for if phd is running.

Change-Id: Ibfb610908220092f6977ed828598f08ff5b8ada4
---
M modules/phabricator/manifests/monitoring.pp
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/phabricator/manifests/monitoring.pp 
b/modules/phabricator/manifests/monitoring.pp
index c6baf0c..8deebba 100644
--- a/modules/phabricator/manifests/monitoring.pp
+++ b/modules/phabricator/manifests/monitoring.pp
@@ -19,6 +19,12 @@
             nrpe_command  => '/usr/lib/nagios/plugins/check_procs -c 3:150 -u 
phd',
             contact_group => $phab_contact_groups,
         }
+
+        nrpe::monitor_service { 'check_phab_phd':
+            description   => 'PHD should be running',
+            nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1: 
--ereg-argument-array  'php ./phd-daemon' -u phd",
+            contact_group => $phab_contact_groups,
+        }
     } else {
         $phab_contact_groups = 'admins,phabricator'
     }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibfb610908220092f6977ed828598f08ff5b8ada4
Gerrit-PatchSet: 5
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: 20after4 <[email protected]>
Gerrit-Reviewer: Chasemp <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to