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