Elukey has submitted this change and it was merged.

Change subject: Add Nagios process alarms for statsv and EL varnishkafka 
instance
......................................................................


Add Nagios process alarms for statsv and EL varnishkafka instance

On cache::text there are two more varnishkafka instances running,
collecting data for statsv and eventlogging.

Change-Id: I1da5280b2040f63a560775c1d9bde34e461897ab
---
M modules/role/manifests/cache/kafka/eventlogging.pp
M modules/role/manifests/cache/kafka/statsv.pp
M modules/role/manifests/cache/kafka/webrequest.pp
3 files changed, 21 insertions(+), 4 deletions(-)

Approvals:
  Elukey: Looks good to me, approved
  Ottomata: Looks good to me, but someone else must approve
  Ema: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/modules/role/manifests/cache/kafka/eventlogging.pp 
b/modules/role/manifests/cache/kafka/eventlogging.pp
index 57802a5..c0e2b8b 100644
--- a/modules/role/manifests/cache/kafka/eventlogging.pp
+++ b/modules/role/manifests/cache/kafka/eventlogging.pp
@@ -27,6 +27,14 @@
 
     include ::standard
 
+    # Generate icinga alert if varnishkafka is not running.
+    nrpe::monitor_service { 'varnishkafka-eventlogging':
+        description   => 'Varnishkafka log producer',
+        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1 -a 
'/usr/bin/varnishkafka -S /etc/varnishkafka/eventlogging.conf'",
+        contact_group => 'admins,analytics',
+        require       => Class['::varnishkafka'],
+    }
+
     $cache_type = hiera('cache::cluster')
     $graphite_metric_prefix = 
"varnishkafka.${::hostname}.eventlogging.${cache_type}"
 
diff --git a/modules/role/manifests/cache/kafka/statsv.pp 
b/modules/role/manifests/cache/kafka/statsv.pp
index 15115b4..29f3e44 100644
--- a/modules/role/manifests/cache/kafka/statsv.pp
+++ b/modules/role/manifests/cache/kafka/statsv.pp
@@ -37,6 +37,14 @@
 
     include ::standard
 
+    # Generate icinga alert if varnishkafka is not running.
+    nrpe::monitor_service { 'varnishkafka-statsv':
+        description   => 'Varnishkafka log producer',
+        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1 -a 
'/usr/bin/varnishkafka -S /etc/varnishkafka/statsv.conf'",
+        contact_group => 'admins,analytics',
+        require       => Class['::varnishkafka'],
+    }
+
     $cache_type = hiera('cache::cluster')
     $graphite_metric_prefix = "varnishkafka.${::hostname}.statsv.${cache_type}"
 
diff --git a/modules/role/manifests/cache/kafka/webrequest.pp 
b/modules/role/manifests/cache/kafka/webrequest.pp
index 447cfa9..4ea2ced 100644
--- a/modules/role/manifests/cache/kafka/webrequest.pp
+++ b/modules/role/manifests/cache/kafka/webrequest.pp
@@ -111,10 +111,11 @@
     include ::standard
 
     # Generate icinga alert if varnishkafka is not running.
-    nrpe::monitor_service { 'varnishkafka':
-        description  => 'Varnishkafka log producer',
-        nrpe_command => '/usr/lib/nagios/plugins/check_procs -c 1: -C 
varnishkafka',
-        require      => Class['::varnishkafka'],
+    nrpe::monitor_service { 'varnishkafka-webrequest':
+        description   => 'Varnishkafka log producer',
+        nrpe_command  => "/usr/lib/nagios/plugins/check_procs -c 1 -a 
'/usr/bin/varnishkafka -S /etc/varnishkafka/webrequest.conf'",
+        contact_group => 'admins,analytics',
+        require       => Class['::varnishkafka'],
     }
 
     $cache_type = hiera('cache::cluster')

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1da5280b2040f63a560775c1d9bde34e461897ab
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: BBlack <bbl...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Ema <e...@wikimedia.org>
Gerrit-Reviewer: Ottomata <o...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to