Code Monkey home page Code Monkey logo

Comments (6)

stevenviola avatar stevenviola commented on August 16, 2024 2

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.

gchukfeh avatar gchukfeh commented on August 16, 2024

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.

majormoses avatar majormoses commented on August 16, 2024

@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.

codepattern avatar codepattern commented on August 16, 2024

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.

stevenviola avatar stevenviola commented on August 16, 2024

@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.

majormoses avatar majormoses commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.