diff --git a/utils/monitor_disk_usage.py b/utils/monitor_disk_usage.py index 0fadb6126..f3f28d44f 100755 --- a/utils/monitor_disk_usage.py +++ b/utils/monitor_disk_usage.py @@ -15,8 +15,8 @@ def main(): hostname = socket.gethostname() percent = int(percent.strip('%')) admin_email = settings.ADMINS[0][1] - - if percent > 95: + if True: + #if percent > 95: requests.post( "https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME, auth=("api", settings.MAILGUN_ACCESS_KEY), diff --git a/utils/monitor_newsletter_delivery.py b/utils/monitor_newsletter_delivery.py index 7cafb09ba..3f530287e 100755 --- a/utils/monitor_newsletter_delivery.py +++ b/utils/monitor_newsletter_delivery.py @@ -23,8 +23,8 @@ def main(): delivered = stats['delivered']['total'] accepted = stats['delivered']['total'] bounced = stats['failed']['permanent']['total'] + stats['failed']['temporary']['total'] - - if bounced / float(delivered) > 0.5: + if True: + #if bounced / float(delivered) > 0.5: requests.post( "https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME, auth=("api", settings.MAILGUN_ACCESS_KEY), diff --git a/utils/monitor_redis_bgsave.py b/utils/monitor_redis_bgsave.py index d45cfcc48..35b6c2029 100755 --- a/utils/monitor_redis_bgsave.py +++ b/utils/monitor_redis_bgsave.py @@ -17,8 +17,8 @@ def main(): hostname = socket.gethostname() modified_minutes = datetime.datetime.now() - modified log_tail = os.popen('tail -n 100 /var/log/redis.log').read() - - if modified < ten_min_ago: + if True: + #if modified < ten_min_ago: requests.post( "https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME, auth=("api", settings.MAILGUN_ACCESS_KEY), diff --git a/utils/monitor_task_fetches.py b/utils/monitor_task_fetches.py index f0405be9e..221d1cac0 100755 --- a/utils/monitor_task_fetches.py +++ b/utils/monitor_task_fetches.py @@ -36,8 +36,8 @@ def main(): failed = True elif redis_task_fetches <= 0: failed = True - - if failed: + if True: + #if failed: requests.post( "https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME, auth=("api", settings.MAILGUN_ACCESS_KEY), diff --git a/utils/monitor_work_queue.py b/utils/monitor_work_queue.py index 4a1443a43..28f5bef62 100755 --- a/utils/monitor_work_queue.py +++ b/utils/monitor_work_queue.py @@ -34,7 +34,8 @@ def main(): if work_queue_size > 100 and work_queue_size > (redis_work_queue + QUEUE_DROP_AMOUNT): failed = True - if failed: + if True: + #if failed: requests.post( "https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME, auth=("api", settings.MAILGUN_ACCESS_KEY),