# About AWS SES handler

**URL:** <https://discourse.sensu.io/t/about-aws-ses-handler/106>\
**Category:** Sensu Classic (EOL)\
**Created:** [December 4, 2013, 9:05pm UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106 "2013-12-04T21:05:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariano\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mariano\_Gonzalez](https://discourse.sensu.io/u/Mariano_Gonzalez)\
**Post date:** [December 4, 2013, 9:05pm UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106/1 "2013-12-04T21:05:06Z")

</div>

Hi there.

I’m trying to use SES as a handler for my checks. I’ve a SNS handler working normally now, and I want to add a SES one.

Thing is it’s not working and sensu doesn’t even see it.

- check

/sensu/conf.d/check\_ntp.json

{

```
"checks": {

    "check_ntp": {

        "handlers": ["sns" , "mailer-ses"],

        "command": "/etc/sensu/plugins/check_ntp_time -H [pool.ntp.org](http://pool.ntp.org) -w 30 -c 60",

        "interval": 60,

        "occurrences": 5,

        "refresh": 1800,

        "flapping": true,

        "subscribers": ["server-01"]

    }

}

```

}

- handler

/sensu/conf.d/handler\_ses.json

{

```
"handlers": {

    "mailer-ses": {

        "type": "pipe",

        "command": "/etc/sensu/handlers/ses.rb",

    }

}

```

}

/sensu/conf.d/mailer-ses.json

{

“mailer-ses”: {

“mail\_from”: “sensu@domain”,

“mail\_to”: “mi\_account@domain”,

“aws\_access\_key”: “my\_aws\_access\_key”,

“aws\_secret\_key”: “my\_aws\_secret\_key”

}

}

(The values replaced are the correct ones, as seen in my SES AWS console).

- and the .rb

/sensu/handlers/mailer-ses.rb

In /var/log/sensu/sensu-server.log it’s not mentioned that this check has a mailer-ses handler, just a sns handler.

Is anything wrong with this configuration?

Thanks!!

> **···**
>
> –  
> Mariano Gabriel González

---

<div class="post-metadata">

**Author:** ![Piavlo](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Piavlo](https://discourse.sensu.io/u/Piavlo)\
**Post date:** [December 5, 2013, 6:43pm UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106/2 "2013-12-05T18:43:13Z")

</div>

> Hi there.  
> I'm trying to use SES as a handler for my checks. I've a SNS handler working normally now, and I want to add a SES one.
> 
> Thing is it's not working and sensu doesn't even see it.

My first guess would be that sensu does not have permissions to read the json file with sns handler defined

> **···**
>
> On 12/04/2013 11:05 PM, Mariano Gonzï¿½lez wrote:
> 
> > - check
> > 
> > /sensu/conf.d/check\_ntp.json
> > 
> > {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"check\_ntp": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"handlers": ["sns" , "mailer-ses"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/etc/sensu/plugins/check\_ntp\_time -H pool.ntp.org \<[http://pool.ntp.org](http://pool.ntp.org)\> -w 30 -c 60",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 60,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"occurrences": 5,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh": 1800,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"flapping": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"subscribers": ["server-01"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;}  
> > }
> > 
> > - handler
> > 
> > /sensu/conf.d/handler\_ses.json
> > 
> > {  
> > "handlers": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"mailer-ses": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "pipe",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/etc/sensu/handlers/ses.rb",  
> > &nbsp;&nbsp;&nbsp;&nbsp;}  
> > }
> > 
> > /sensu/conf.d/mailer-ses.json
> > 
> > {  
> > &nbsp;&nbsp;"mailer-ses": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"mail\_from": "sensu@domain",  
> > &nbsp;&nbsp;&nbsp;&nbsp;"mail\_to": "mi\_account@domain",  
> > &nbsp;&nbsp;&nbsp;&nbsp;"aws\_access\_key": "my\_aws\_access\_key",  
> > &nbsp;&nbsp;&nbsp;&nbsp;"aws\_secret\_key": "my\_aws\_secret\_key"  
> > &nbsp;&nbsp;}  
> > }
> > 
> > (The values replaced are the correct ones, as seen in my SES AWS console).
> > 
> > - and the .rb
> > 
> > /sensu/handlers/mailer-ses.rb
> > 
> > In /var/log/sensu/sensu-server.log it's not mentioned that this check has a mailer-ses handler, just a sns handler.
> > 
> > Is anything wrong with this configuration?  
> > Thanks!!
> > 
> > --  
> > Mariano Gabriel Gonzï¿½lez

---

<div class="post-metadata">

**Author:** ![Mariano\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mariano\_Gonzalez](https://discourse.sensu.io/u/Mariano_Gonzalez)\
**Post date:** [December 6, 2013, 1:18pm UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106/3 "2013-12-06T13:18:16Z")

</div>

Hi. This message came as a spam in my inbox. I’m not sure if it’s correct, but please send it again as I cannot read it. Thanks!!

> **···**
>
> El jueves, 5 de diciembre de 2013 15:43:13 UTC-3, Alexander Piavlo escribió:
> 
> > On 12/04/2013 11:05 PM, Mariano Gonzï¿½lez wrote:
> > 
> > > Hi there.  
> > > I’m trying to use SES as a handler for my checks. I’ve a SNS handler  
> > > working normally now, and I want to add a SES one.
> > > 
> > > Thing is it’s not working and sensu doesn’t even see it.  
> > > My first guess would be that sensu does not have permissions to read the  
> > > json file with sns handler defined
> > > 
> > > - check
> > > 
> > > /sensu/conf.d/check\_ntp.json
> > > 
> > > {  
> > > “checks”: {  
> > > “check\_ntp”: {  
> > > “handlers”: [“sns” , “mailer-ses”],  
> > > “command”: "/etc/sensu/plugins/check\_ntp\_time -H [pool.ntp.org](http://pool.ntp.org)
> > 
> > > \<[http://pool.ntp.org](http://pool.ntp.org)\> -w 30 -c 60",  
> > > “interval”: 60,  
> > > “occurrences”: 5,  
> > > “refresh”: 1800,  
> > > “flapping”: true,  
> > > “subscribers”: [“server-01”]  
> > > }  
> > > }  
> > > }
> > > 
> > > - handler
> > > 
> > > /sensu/conf.d/handler\_ses.json
> > > 
> > > {  
> > > “handlers”: {  
> > > “mailer-ses”: {  
> > > “type”: “pipe”,  
> > > “command”: “/etc/sensu/handlers/ses.rb”,  
> > > }  
> > > }  
> > > }
> > > 
> > > /sensu/conf.d/mailer-ses.json
> > > 
> > > {  
> > > “mailer-ses”: {  
> > > “mail\_from”: “sensu@domain”,  
> > > “mail\_to”: “mi\_account@domain”,  
> > > “aws\_access\_key”: “my\_aws\_access\_key”,  
> > > “aws\_secret\_key”: “my\_aws\_secret\_key”  
> > > }  
> > > }
> > > 
> > > (The values replaced are the correct ones, as seen in my SES AWS console).
> > > 
> > > - and the .rb
> > > 
> > > /sensu/handlers/mailer-ses.rb
> > > 
> > > In /var/log/sensu/sensu-server.log it’s not mentioned that this check  
> > > has a mailer-ses handler, just a sns handler.
> > > 
> > > Is anything wrong with this configuration?  
> > > Thanks!!
> > > 
> > > –  
> > > Mariano Gabriel Gonzï¿½lez

---

<div class="post-metadata">

**Author:** ![Mariano\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mariano\_Gonzalez](https://discourse.sensu.io/u/Mariano_Gonzalez)\
**Post date:** [December 6, 2013, 3:37pm UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106/4 "2013-12-06T15:37:25Z")

</div>

Sorry, I’ve missed your answer. I’ve checked and all .json and .rb files have 755 permissions.

> **···**
>
> El miércoles, 4 de diciembre de 2013 18:05:06 UTC-3, Mariano González escribió:
> 
> > Hi there.
> 
> > I’m trying to use SES as a handler for my checks. I’ve a SNS handler working normally now, and I want to add a SES one.
> 
> > 
> 
> > Thing is it’s not working and sensu doesn’t even see it.
> 
> > 
> 
> > - check
> 
> > 
> 
> > /sensu/conf.d/check\_ntp.json
> 
> > 
> 
> > {
> 
> > ```
> > "checks": {
> > 
> > ```
> 
> > ```
> > "check_ntp": {
> > 
> > ```
> 
> > ```
> > "handlers": ["sns" , "mailer-ses"],
> > 
> > ```
> 
> > ```
> > "command": "/etc/sensu/plugins/check_ntp_time -H [pool.ntp.org](http://pool.ntp.org) -w 30 -c 60",
> > 
> > ```
> 
> > ```
> > "interval": 60,
> > 
> > ```
> 
> > ```
> > "occurrences": 5,
> > 
> > ```
> 
> > ```
> > "refresh": 1800,
> > 
> > ```
> 
> > ```
> > "flapping": true,
> > 
> > ```
> 
> > ```
> > "subscribers": ["server-01"]
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > }
> 
> > 
> 
> > - handler
> 
> > 
> 
> > /sensu/conf.d/handler\_ses.json
> 
> > 
> 
> > {
> 
> > ```
> > "handlers": {
> > 
> > ```
> 
> > ```
> > "mailer-ses": {
> > 
> > ```
> 
> > ```
> > "type": "pipe",
> > 
> > ```
> 
> > ```
> > "command": "/etc/sensu/handlers/ses.rb",
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > }
> 
> > 
> 
> > /sensu/conf.d/mailer-ses.json
> 
> > 
> 
> > {
> 
> > “mailer-ses”: {
> 
> > “mail\_from”: “sensu@domain”,
> 
> > “mail\_to”: “mi\_account@domain”,
> 
> > “aws\_access\_key”: “my\_aws\_access\_key”,
> 
> > “aws\_secret\_key”: “my\_aws\_secret\_key”
> 
> > }
> 
> > }
> 
> > 
> 
> > (The values replaced are the correct ones, as seen in my SES AWS console).
> 
> > 
> 
> > - and the .rb
> 
> > 
> 
> > /sensu/handlers/mailer-ses.rb
> 
> > 
> 
> > In /var/log/sensu/sensu-server.log it’s not mentioned that this check has a mailer-ses handler, just a sns handler.
> 
> > 
> 
> > Is anything wrong with this configuration?
> 
> > Thanks!!
> 
> > 
> 
> > 
> 
> > –  
> > Mariano Gabriel González

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:05am UTC](https://discourse.sensu.io/t/about-aws-ses-handler/106/5 "2018-11-22T02:05:03Z")

</div>


