From d89f5670bb5729fa6cbfe3ae53bedca89510259a Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Fri, 5 Apr 2013 14:15:08 -0700 Subject: [PATCH] Add nagios check to verify mailchimp is running on staging/app. (imported from commit 2aa79cc6252aadaa0a212b5c60eff9c5c55b7781) --- 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 fd880a9ca7..d0364b4d91 100644 --- a/servers/puppet/modules/humbug/files/nagios3/commands.cfg +++ b/servers/puppet/modules/humbug/files/nagios3/commands.cfg @@ -101,6 +101,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 process_user_activity"' } +define command{ + command_name check_process_mailchimp_signups + 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_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 51524c3f92..2a7a2d98fd 100644 --- a/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg +++ b/servers/puppet/modules/humbug/files/nagios3/conf.d/services.cfg @@ -180,6 +180,14 @@ define service { contact_groups page_admins } +define service { + use generic-service + service_description sync signups from humbug to mailchimp + check_command check_process_mailchimp_signups!22 + hostgroup_name frontends + contact_groups admins +} + define service { use generic-service service_description zmirror subscriptons syncing