sensu-plugins-mailer icon indicating copy to clipboard operation
sensu-plugins-mailer copied to clipboard

Subscriptions recipients not honored

Open scott-fenton opened this issue 6 years ago • 2 comments

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": "[email protected]", "mail_to": ["[email protected]"], "delivery_method": "smtp", "smtp_address": "localhost", "smtp_port": "25", "smtp_domain": "localhost.local_domain", "subscriptions" : { "subscription1": { "mail_to": ["[email protected]", "[email protected]"] }, "subscription2": { "mail_to": ["[email protected]"] } # 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"] }

}

}

scott-fenton avatar Sep 06 '18 13:09 scott-fenton

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

shajithravi avatar May 13 '19 22:05 shajithravi

@majormoses Can you help here please?

shajithravi avatar May 28 '19 18:05 shajithravi