From 8edbd64bb8d46845ac6f7f2f2d01b16c1976c7ca Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 4 Oct 2013 17:49:00 -0400 Subject: [PATCH] Monitor the queue processors for the missedmessage_emails and slow_queries queues (imported from commit 266b8f19b87a025ab35bd6dd4017bdf8a7694b49) --- .../modules/zulip/files/nagios3/commands.cfg | 5 +++++ .../zulip/files/nagios3/conf.d/services.cfg | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/servers/puppet/modules/zulip/files/nagios3/commands.cfg b/servers/puppet/modules/zulip/files/nagios3/commands.cfg index e126a87f15..a0189aeb26 100644 --- a/servers/puppet/modules/zulip/files/nagios3/commands.cfg +++ b/servers/puppet/modules/zulip/files/nagios3/commands.cfg @@ -126,6 +126,11 @@ define command { command_line /usr/lib/nagios/plugins/check_procs -C $ARG1$ -w $ARG2$ -c $ARG3$ } +define command { + command_name check_remote_arg_string + command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -a "$ARG1$" -w $ARG2$ -c $ARG3$' +} + define command { command_name check_fts_update_log command_line /usr/lib/nagios/plugins/check_by_ssh -l humbug -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_fts_update_log' diff --git a/servers/puppet/modules/zulip/files/nagios3/conf.d/services.cfg b/servers/puppet/modules/zulip/files/nagios3/conf.d/services.cfg index fab605af63..b72a145473 100644 --- a/servers/puppet/modules/zulip/files/nagios3/conf.d/services.cfg +++ b/servers/puppet/modules/zulip/files/nagios3/conf.d/services.cfg @@ -300,6 +300,22 @@ define service { contact_groups admins } +define service { + use generic-service + service_description Check missedmessage_emails queue processor + check_command check_remote_arg_string!manage.py process_queue missedmessage_emails!1:1!1:1 + hostgroup_name frontends + contact_groups admins +} + +define service { + use generic-service + service_description Check slow_queries queue processor + check_command check_remote_arg_string!manage.py process_queue slow_queries!1:1!1:1 + hostgroup_name frontends + contact_groups admins +} + define service { use generic-service hostgroup_name all