sensu-plugins / sensu-plugins-mailer

This plugin is an email handler for Sensu.
http://sensu-plugins.io
MIT License
17 stars 37 forks source link

Subscriptions recipients not honored #67

Open scott-fenton opened 6 years ago

scott-fenton commented 6 years ago

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 commented 5 years ago

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

shajithravi commented 5 years ago

@majormoses Can you help here please?