Comments (6)
I've created a pull request to be able to add contacts for particular checks, which is especially useful for standalone checks which don't have a subscription to send e-mails to. This mimics the Sensu Enterprise contact routing configuration, while keeping the existing functionality in the handler as well.
Hopefully we can get this into the mailer handler since it's something we're all looking for.
from sensu-plugins-mailer.
Hi there,
I'm also trying to send alerts to different groups for different checks. This is a great and very useful feature, please look into adding it.
Essentially, the contact routing feature from Sensu Enterprise is what I'm looking for: https://sensuapp.org/docs/0.24/enterprise/contact-routing.html
from sensu-plugins-mailer.
@stevenviola that has been merged and released but it looks like it's ported as being buggy in #55 any chance you can take a look since you are probably more familiar with this code than I am. When I have some more time I will try to triage it as well.
from sensu-plugins-mailer.
Hi Team, just trying to get an understanding a bit more on this plugin. Is it possible to pass a To: argument / email in the check result rather than specifying it in the server side config? All of these configurations seem to suggest that they need to pre-defined in the mailer config or contact routing.
from sensu-plugins-mailer.
@codepattern the contact routing in this plugin works the same way as contact routing does in the Enterprise version, and requires the e-mail addresses to be listed in the config on the sensu-server.
Quickly looking over the plugin, if you don't want to specify the e-mail address on the sensu-server at all, I think your only option is to add a mail_to
parameter to your client config, and specify the e-mail address there. This would then apply to all checks on that client. There doesn't look like a way to have a mail_to
on a per check basis.
from sensu-plugins-mailer.
We could add support to have mail_to
come from check
-> client
-> server
in that order and is a pretty common pattern that handlers follow. I'd be 👍 to reviewing a PR that does that.
from sensu-plugins-mailer.
Related Issues (20)
- New issues comes yesterday for handler-mailer.rb
- `build_body': undefined method `[]' for nil:NilClass HOT 2
- -j, --json_config help text and documentation are misleading HOT 1
- warning: event filtering in sensu-plugin is deprecated HOT 13
- Send mail with google SMTP HOT 1
- subscriptions do not seem to work
- Support sending emails to multiple senders HOT 2
- default mailer handler fails in embedded ruby HOT 5
- receiving the alerts before the refresh interval HOT 2
- contact based routing only accepts 1 email address HOT 20
- contact based routing only accepts 1 email address - same as #55 HOT 15
- Code explanation HOT 2
- High CPU consumption by mailer handler HOT 1
- Mailer breaks when you specify an ERB template HOT 11
- `require': cannot load such file -- mail HOT 5
- Handler is not being executed HOT 1
- handler-mailer.rb with Office365 - 504 5.7.4 Unrecognized authentication type HOT 2
- Subscriptions recipients not honored HOT 2
- Update sensu-plugin conservative dep 2.7 to pick up new Sensu Go event data mapping
- Handler still does internal filtering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensu-plugins-mailer.