Custom Alert Message

Hi there guys

I'd like to know if there is a way to customize the alert message body, I mean, given an alert, I want to include extra text on it describing what's going on

For example, I want to include a text saying. " Expect other kind of alerts being trigered because of this one, we'll take care of this..", or any other of advice..

Is that possible?

Thanks

Regards

If you are using a handler that allows customization, then take advantage of that.
For example the normal sensu email handler takes a template argument:

https://github.com/sensu-plugins/sensu-plugins-mailer/blob/master/bin/handler-mailer.rb#L46

Or modify whatever handlers you are using as you see fit to meet your needs.

For example you could edit a handler and make it your own

https://github.com/sensu-plugins/sensu-plugins-mailer/blob/master/bin/handler-mailer.rb#L140

if you need more than what a template can offer. (Custom logic, ruby function calls, etc)

···

On Sun, May 28, 2017 at 10:35 AM, Net Warrior netwarrior863@gmail.com wrote:

Hi there guys

I’d like to know if there is a way to customize the alert message body, I mean, given an alert, I want to include extra text on it describing what’s going on

For example, I want to include a text saying. " Expect other kind of alerts being trigered because of this one, we’ll take care of this…", or any other of advice…

Is that possible?

Thanks

Regards

Thank you very much!!
Regards

···

On 28/05/17 18:46, Kyle Anderson wrote:

If you are using a handler that allows customization, then take advantage of that.
For example the normal sensu email handler takes a template argument:
https://github.com/sensu-plugins/sensu-plugins-mailer/blob/master/bin/handler-mailer.rb#L46

Or modify whatever handlers you are using as you see fit to meet your needs.
For example you could edit a handler and make it your own
https://github.com/sensu-plugins/sensu-plugins-mailer/blob/master/bin/handler-mailer.rb#L140
if you need more than what a template can offer. (Custom logic, ruby function calls, etc)

On Sun, May 28, 2017 at 10:35 AM, Net Warrior <netwarrior863@gmail.com > <mailto:netwarrior863@gmail.com>> wrote:

    Hi there guys

    I'd like to know if there is a way to customize the alert message
    body, I mean, given an alert, I want to include extra text on it
    describing what's going on

    For example, I want to include a text saying. " Expect other kind
    of alerts being trigered because of this one, we'll take care of
    this..", or any other of advice..

    Is that possible?

    Thanks

    Regards