Send notifications based on subscriptions

@majormoses
Setting up multiple handlers wont help, I think.

Lets say I have 2 sets of clients

  1. client1 [ subscription is cpu]
  2. client2 [subscriptions are cpu, splunk]

If I have a cpu check [applied to all vms] and a splunk check [applied only to splunk vm]
So I dont need multiple cpu checks for each subscription.

Now, cpu applies to both splunk and non-splunk vms.
But splunk applies only to splunk vms.

With a common handler tied to a check, the cpu alert will go to all recipients.

Else I will have to create a check for each handler.

sensu-pluings-mailer has a subscriptions feature, but its not working.
see here: Sensu Plugins Mailer not honoring subscriptions based mail_to list