mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Updating emails on monitors.
This commit is contained in:
parent
684f807b75
commit
e42f3011af
3 changed files with 3 additions and 3 deletions
|
@ -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)})
|
||||
|
|
|
@ -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)})
|
||||
|
|
|
@ -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)})
|
||||
|
|
Loading…
Add table
Reference in a new issue