From fe7fedd2527e90aae28420a8e1d490f540938a59 Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Mon, 8 Apr 2013 21:39:36 -0400 Subject: [PATCH] nagios: add check for send_invite_emails process. (imported from commit b30e55241249a02ee61fac2d3f7abecc4d8318bd) --- servers/puppet/modules/humbug/files/nagios3/commands.cfg | 5 +++++ .../modules/humbug/files/nagios3/conf.d/services.cfg | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/servers/puppet/modules/humbug/files/nagios3/commands.cfg b/servers/puppet/modules/humbug/files/nagios3/commands.cfg index d0364b4d91..7d838810da 100644 --- a/servers/puppet/modules/humbug/files/nagios3/commands.cfg +++ b/servers/puppet/modules/humbug/files/nagios3/commands.cfg @@ -106,6 +106,11 @@ define command{ command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "manage.py subscribe_new_users"' } +define command{ + command_name check_send_confirmation_emails + command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "manage.py send_confirmation_emails"' +} + define command{ command_name check_sync_public_streams command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "/home/humbug/humbug/bots/sync-public-streams"' diff --git a/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg b/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg index 2a7a2d98fd..64f3d8f2cc 100644 --- a/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg +++ b/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg @@ -188,6 +188,14 @@ define service { contact_groups admins } +define service { + use generic-service + service_description send confirmation emails + check_command check_send_confirmation_emails!22 + hostgroup_name frontends + contact_groups admins +} + define service { use generic-service service_description zmirror subscriptons syncing