sensu-plugins / sensu-plugins-slack

Sensu Slack chat handlers
http://sensu-plugins.io
MIT License
30 stars 54 forks source link

the plugin ignores HTTP status code #106

Open trombik opened 4 years ago

trombik commented 4 years ago

when sending the data, the response is ignored. when the server returns non-200 status code, the plugin silently drop the error code such as 404.

https://github.com/sensu-plugins/sensu-plugins-slack/blob/375cd78b1d811bd00b22b3239c9f34568516c9a6/bin/handler-slack.rb#L181

and the result is success even when it is actually failure.