Dzahn has uploaded a new change for review.

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

Change subject: ircd/ircecho: add icinga process monitoring
......................................................................

ircd/ircecho: add icinga process monitoring

Bug:T135948
Change-Id: I3b03e178f1643ba74a254db5c42b0115c34f3b84
---
M modules/mw_rc_irc/manifests/irc_echo.pp
M modules/mw_rc_irc/manifests/ircserver.pp
2 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/77/290077/1

diff --git a/modules/mw_rc_irc/manifests/irc_echo.pp 
b/modules/mw_rc_irc/manifests/irc_echo.pp
index 8a492b5..1284fc1 100644
--- a/modules/mw_rc_irc/manifests/irc_echo.pp
+++ b/modules/mw_rc_irc/manifests/irc_echo.pp
@@ -38,4 +38,11 @@
         provider => 'systemd',
         require  => File['/etc/systemd/system/ircecho.service'],
     }
+
+    # icinga check if bot process is running
+    nrpe::monitor_service { "ircecho-process":
+        description  => "ircecho bot process",
+        nrpe_command => "/usr/lib/nagios/plugins/check_procs -c 1:1 -C irc 
--ereg-argument-array 'python /usr/local/bin/udpmxircecho.py'",
+    }
+
 }
diff --git a/modules/mw_rc_irc/manifests/ircserver.pp 
b/modules/mw_rc_irc/manifests/ircserver.pp
index 912d772..82633ab 100644
--- a/modules/mw_rc_irc/manifests/ircserver.pp
+++ b/modules/mw_rc_irc/manifests/ircserver.pp
@@ -50,6 +50,12 @@
         require  => File['/etc/systemd/system/ircd.service'],
     }
 
+    # icinga check if server process is running
+    nrpe::monitor_service { "ircd-process":
+        description  => "irc server process",
+        nrpe_command => "/usr/lib/nagios/plugins/check_procs -c 1:1 -C irc 
--ereg-argument-array 'python /usr/bin/ircd -foreground'",
+    }
+
     diamond::collector { 'IRCDStats':
         source   => 'puppet:///modules/mw_rc_irc/monitor/ircd_stats.py',
         settings => {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b03e178f1643ba74a254db5c42b0115c34f3b84
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