Updating emails on monitors.

This commit is contained in:
Samuel Clay 2020-06-08 15:11:42 -04:00
parent 684f807b75
commit e42f3011af
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ def main():
requests.post(
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
auth=("api", settings.MAILGUN_ACCESS_KEY),
data={"from": "NewsBlur Monitor: %s <%s>" % (hostname, admin_email),
data={"from": "NewsBlur Disk Monitor: %s <admin@%s.newsblur.com>" % (hostname, hostname),
"to": [admin_email],
"subject": "%s hit %s%% disk usage!" % (hostname, percent),
"text": "Usage on %s: %s" % (hostname, output)})

View file

@ -28,7 +28,7 @@ def main():
requests.post(
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
auth=("api", settings.MAILGUN_ACCESS_KEY),
data={"from": "NewsBlur Monitor: %s <%s>" % (hostname, admin_email),
data={"from": "NewsBlur Newsletter Monitor: %s <admin@%s.newsblur.com>" % (hostname, hostname),
"to": [admin_email],
"subject": "%s newsletters bounced: %s > %s > %s" % (hostname, accepted, delivered, bounced),
"text": "Newsletters are not being delivered! %s delivered, %s bounced" % (delivered, bounced)})

View file

@ -32,7 +32,7 @@ def main():
requests.post(
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
auth=("api", settings.MAILGUN_ACCESS_KEY),
data={"from": "NewsBlur Monitor: %s <%s>" % (hostname, admin_email),
data={"from": "NewsBlur Task Monitor: %s <admin@%s.newsblur.com>" % (hostname, hostname),
"to": [admin_email],
"subject": "%s feeds fetched falling: %s" % (hostname, feeds_fetched),
"text": "Feed fetches are falling (%s): %s" % (hostname, feeds_fetched, failed)})