send alerts to multiple mail addresss

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks

You'll need to create an array more or less in the address section of your json config. Can you post up your json so I can illustrate?

···

Sent from my iPhone

On Sep 13, 2016, at 12:32 AM, kumar kittu <dvrkittu@gmail.com> wrote:

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks

Thanks James !!

here is my mailer.json file:

{

“mailer”: {

“admin_gui”: "http://xx.xx.xx.xx:3000 ",

“mail_from”: “abc@xyz.com”,

“mail_to”: “sensu@xyz.com”,

“smtp_address”: “email.xx.xx.xx.com”,

“smtp_port”: “xxx”,

“smtp_domain”: “xyz.com”,

“smtp_username”: “AAAAAAAAAAAA”,

“smtp_password”: “AAAAAAAAAAAAAAAAAAAA”,

“smtp_sasl_auth_enable”: “yes”

}

}

Please suggest ,i need to send to multiple mail addresss

···

On Tuesday, September 13, 2016 at 12:50:11 PM UTC+1, James Jelinek wrote:

You’ll need to create an array more or less in the address section of your json config. Can you post up your json so I can illustrate?

Sent from my iPhone

On Sep 13, 2016, at 12:32 AM, kumar kittu dvrk...@gmail.com wrote:

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks

As James suggested, you need to set the mail_to parameter to an array. Your mailer.json file would thus be:

{

“mailer”: {

"admin_gui": "[http://xx.xx.xx.xx:3000](http://xx.xx.xx.xx:3000) ",

"mail_from": "abx@xyz.com",

"mail_to": ["sensu@xyz.com","recipient2@xyz.com"],

"smtp_address": "[email.xx.xx.xx.com](http://email.xx.xx.xx.com)",

"smtp_port": "xxx",

"smtp_domain": "[xyz.com](http://xyz.com)",

"smtp_username": "AAAAAAAAAAAA",

"smtp_password": "AAAAAAAAAAAAAAAAAAAA",

"smtp_sasl_auth_enable": "yes"

}

}

``

···

On Tuesday, 13 September 2016 13:58:41 UTC+1, kumar kittu wrote:

Thanks James !!

here is my mailer.json file:

{

“mailer”: {

“admin_gui”: "http://xx.xx.xx.xx:3000 ",

“mail_from”: “a...@xyz.com”,

“mail_to”: “se...@xyz.com”,

“smtp_address”: “email.xx.xx.xx.com”,

“smtp_port”: “xxx”,

“smtp_domain”: “xyz.com”,

“smtp_username”: “AAAAAAAAAAAA”,

“smtp_password”: “AAAAAAAAAAAAAAAAAAAA”,

“smtp_sasl_auth_enable”: “yes”

}

}

Please suggest ,i need to send to multiple mail addresss

On Tuesday, September 13, 2016 at 12:50:11 PM UTC+1, James Jelinek wrote:

You’ll need to create an array more or less in the address section of your json config. Can you post up your json so I can illustrate?

Sent from my iPhone

On Sep 13, 2016, at 12:32 AM, kumar kittu dvrk...@gmail.com wrote:

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks

Thanks for chiming in, Joel. I just got to my desk and yes, definitely will want an array in the mail_to node. (thumbsup)

···

On Sep 13, 2016, at 9:06 AM, joel.smith1@hscic.gov.uk wrote:

As James suggested, you need to set the mail_to parameter to an array. Your mailer.json file would thus be:

{

“mailer”: {

"admin_gui": "[http://xx.xx.xx.xx:3000](http://xx.xx.xx.xx:3000/) ",
"mail_from": "abx@xyz.com",
"mail_to": ["sensu@xyz.com","recipient2@xyz.com"],
"smtp_address": "[email.xx.xx.xx.com](http://email.xx.xx.xx.com/)",
"smtp_port": "xxx",
"smtp_domain": "[xyz.com](http://xyz.com/)",
"smtp_username": "AAAAAAAAAAAA",
"smtp_password": "AAAAAAAAAAAAAAAAAAAA",
"smtp_sasl_auth_enable": "yes"

}

}

``

On Tuesday, 13 September 2016 13:58:41 UTC+1, kumar kittu wrote:

Thanks James !!

here is my mailer.json file:

{

“mailer”: {

“admin_gui”: "http://xx.xx.xx.xx:3000 ",

“mail_from”: “a...@xyz.com”,

“mail_to”: “se...@xyz.com”,

“smtp_address”: “email.xx.xx.xx.com”,

“smtp_port”: “xxx”,

“smtp_domain”: “xyz.com”,

“smtp_username”: “AAAAAAAAAAAA”,

“smtp_password”: “AAAAAAAAAAAAAAAAAAAA”,

“smtp_sasl_auth_enable”: “yes”

}

}

Please suggest ,i need to send to multiple mail addresss

On Tuesday, September 13, 2016 at 12:50:11 PM UTC+1, James Jelinek wrote:

You’ll need to create an array more or less in the address section of your json config. Can you post up your json so I can illustrate?

Sent from my iPhone

On Sep 13, 2016, at 12:32 AM, kumar kittu dvrk...@gmail.com wrote:

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks

Thanks James and Joel

Now able to get alerts to multiple mail address

···

On Tuesday, September 13, 2016 at 7:48:11 PM UTC+5:30, James Jelinek wrote:

Thanks for chiming in, Joel. I just got to my desk and yes, definitely will want an array in the mail_to node. (thumbsup)

On Sep 13, 2016, at 9:06 AM, joel....@hscic.gov.uk wrote:

As James suggested, you need to set the mail_to parameter to an array. Your mailer.json file would thus be:

{

“mailer”: {

"admin_gui": "[http://xx.xx.xx.xx:3000](http://xx.xx.xx.xx:3000/) ",
"mail_from": "abx@xyz.com",
"mail_to": ["sensu@xyz.com","recip...@xyz.com"],
"smtp_address": "[email.xx.xx.xx.com](http://email.xx.xx.xx.com/)",
"smtp_port": "xxx",
"smtp_domain": "[xyz.com](http://xyz.com/)",
"smtp_username": "AAAAAAAAAAAA",
"smtp_password": "AAAAAAAAAAAAAAAAAAAA",
"smtp_sasl_auth_enable": "yes"

}

}

``

On Tuesday, 13 September 2016 13:58:41 UTC+1, kumar kittu wrote:

Thanks James !!

here is my mailer.json file:

{

“mailer”: {

“admin_gui”: "http://xx.xx.xx.xx:3000 ",

“mail_from”: “a...@xyz.com”,

“mail_to”: “se...@xyz.com”,

“smtp_address”: “email.xx.xx.xx.com”,

“smtp_port”: “xxx”,

“smtp_domain”: “xyz.com”,

“smtp_username”: “AAAAAAAAAAAA”,

“smtp_password”: “AAAAAAAAAAAAAAAAAAAA”,

“smtp_sasl_auth_enable”: “yes”

}

}

Please suggest ,i need to send to multiple mail addresss

On Tuesday, September 13, 2016 at 12:50:11 PM UTC+1, James Jelinek wrote:

You’ll need to create an array more or less in the address section of your json config. Can you post up your json so I can illustrate?

Sent from my iPhone

On Sep 13, 2016, at 12:32 AM, kumar kittu dvrk...@gmail.com wrote:

Hi All,

I had set up Sensu ,used mailer.rb and mailer.json(in this i had kept one mail address) ,this is working perfectly and also mails are getting trigerred. But now i want the same alert to be send to multiple mail address which i will specify.I specified multiple mail address in mailer.json,but it is not working.

Could anyone please help me ,how to configure multiple mail addresses.

Thanks