sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.

Home Page:http://sensuapp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sensu - Handler type set subdue does not work

h2aguilar opened this issue · comments

Hey Guys, I was trying to implement a subdue for a handler of type set:

"appsupport_bh": {
"type": "set",
"handlers": [
"appsupport_email",
"appsupport_sms"
],
"subdue": {
"at": "handler",
"days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
],
"begin": "7AM",
"end": "7PM"
}

But it doesn't seem to work does subdue only work with handlers and not in handler group?

Hi @h2aguilar thanks for raising this concern. I can see how subduing the entire set may be desirable but this currently expected behavior.

Attributes defined on handler sets are not applied to the handlers they contain. I'll ensure we update the documentation to note this.