send alerts to different mails ID's based on environment type

Hi All,

I have successfully installed Sensu and able to get alerts in my mail box.

Now I need to send alerts based on environment type

for example:

If environment is “ABC” then send alert to abc@gmail.com

If environment is “xyz” then send alert to xyz@gmail.com

I searched a lot but not able to get the solution.

Please help me out.

Thanks

Comments inline.

···

On 29-Nov-2016, at 4:57 PM, kumar kittu dvrkittu@gmail.com wrote:

Hi All,

I have successfully installed Sensu and able to get alerts in my mail box.

Now I need to send alerts based on environment type

for example:

If environment is “ABC” then send alert to abc@gmail.com

If environment is “xyz” then send alert to xyz@gmail.com

I searched a lot but not able to get the solution.

Please help me out.

If you use the mailer handler from https://github.com/sensu-plugins/sensu-plugins-mailer,

then you can use subscriptions to map a sensu client to a group.

https://sensuapp.org/docs/latest/reference/clients.html#client-subscriptions

Regards.

@shankerbalan