sensu-plugins / sensu-plugins-aws

This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.
http://sensu-plugins.io
MIT License
81 stars 143 forks source link

sns handler usage for multiple sns topics #165

Open rich-pinto opened 8 years ago

rich-pinto commented 8 years ago

Hi,

I am unable to use the sns handler to send messages to different AWS sns topics. Am I doing something wrong or is the handler rb file hardcoded to accept handlers with name 'sns' only?

majormoses commented 7 years ago

I have not used it before but this might be it? https://github.com/sensu-plugins/sensu-plugins-aws/blob/master/bin/handler-sns.rb#L22 Sorry I have not really had the time to look through the in depth.

brywilk commented 6 years ago

I am also interested in this enhancement. We have multiple customers across a variety of AWS accounts that would be interested in leveraging SNS

majormoses commented 6 years ago

I looked through the code and it would not be that hard to implement it would look similar to the way the pagerduty handler works here: