Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscriptions recipients not honored #67

Open
scott-fenton opened this issue Sep 6, 2018 · 2 comments
Open

Subscriptions recipients not honored #67

scott-fenton opened this issue Sep 6, 2018 · 2 comments

Comments

@scott-fenton
Copy link

I'm running an instance of mailer, and I'm having trouble specifying extra recipients for my alerts. I've got a user specified in "mail_to" and further users specified in the subscriptions, but only the "mail_to" user is getting emails. My mailer.json looks like this:

{
"mailer" : {
"admin_gui" : "https://example.com/uchiwa/",
"mail_from": "sensu@example.com",
"mail_to": ["user1@example.com"],
"delivery_method": "smtp",
"smtp_address": "localhost",
"smtp_port": "25",
"smtp_domain": "localhost.local_domain",
"subscriptions" : {
"subscription1": {
"mail_to": ["user2@example.com",
"user3@example.com"]
},
"subscription2": {
"mail_to": ["user4@example.com"]
}
# further subscriptions omitted
}
},
"handlers": {
"mailer": {
"type": "pipe",
"command": "/opt/sensu/embedded/bin/handler-mailer.rb",
"severities": ["warning", "critical", "unknown"]
},
"mailer-crit": {
"type": "pipe",
"command": "/opt/sensu/embedded/bin/handler-mailer.rb",
"severities": ["critical", "unknown"]
}

}

}

@shajithravi
Copy link

Facing the same issue.
Did anyone figure out a way to send sensu alerts based on subscriptions?

@shajithravi
Copy link

@majormoses Can you help here please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants