Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

How to disable email alerts for a particular check? #13

Open
supervacuo opened this issue Jun 19, 2013 · 2 comments
Open

How to disable email alerts for a particular check? #13

supervacuo opened this issue Jun 19, 2013 · 2 comments

Comments

@supervacuo
Copy link
Contributor

Maybe I'm just being dim.

  • I set ALERT_EMAILS in conf.py to include my email address.
  • Most checks are configured with no alert_emails option (as I want to receive notifications)
  • I am trying to suppress notifications for a few services...

Setting alert_emails: False or alert_emails: (nothing) leads to a TypeError.

Setting alert_emails: [] (an empty list; the default in run_checks.py) results in emails being sent as before.

Setting alert_emails: \n - (a list with 1 empty item) leads to TypeError: sequence item 0: expected string, NoneType found.

conf.py says "unless specified otherwise in the checks.yaml". So... how do I specify?

@ipmb
Copy link
Member

ipmb commented Jun 19, 2013

@yml any thoughts?

@yml
Copy link
Member

yml commented Jun 20, 2013

You can set the alert_emails on each check and let the global one empty. I can understand that this is sub optimal it would be nicer to be able to silence a check.

  • alert_emails: False look like a good approach too me.

yml added a commit that referenced this issue Jun 20, 2013
yml added a commit that referenced this issue Jun 23, 2013
Deactivate the email notification on a per check basis.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants