-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handler-slack-multichannel.rb: several improvements #82
base: master
Are you sure you want to change the base?
handler-slack-multichannel.rb: several improvements #82
Commits on Apr 10, 2019
-
handler-slack-multichannel.rb: several improvements
- Add support for single channel defined as a string rather than an array (removes the need of having 2 different handlers) - Implement a retry strategy for handling slack api transitient errors (like timeouts). Retries hardcoded to 5 with 10 second timeout, but we should make this a setting - Exits with non zero status on api call errors, to allow sensu-server to catch the output and log it - Deals with non-nagios standard exit codes for checks (0-3), also known as "out of bounds" errors - Sets the color the same as UNKNOWN - Displays the exit code as it was returned by the check, for detailed information
Configuration menu - View commit details
-
Copy full SHA for 5f677d7 - Browse repository at this point
Copy the full SHA 5f677d7View commit details
Commits on Apr 11, 2019
-
Update bin/handler-slack-multichannel.rb
Keep client and check names in the title Co-Authored-By: kali-brandwatch <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3813622 - Browse repository at this point
Copy the full SHA 3813622View commit details -
Update bin/handler-slack-multichannel.rb
Change to string interpolation Co-Authored-By: kali-brandwatch <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 77fdc90 - Browse repository at this point
Copy the full SHA 77fdc90View commit details -
Update bin/handler-slack-multichannel.rb
Change to string interpolation Co-Authored-By: kali-brandwatch <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8812aa4 - Browse repository at this point
Copy the full SHA 8812aa4View commit details -
Update bin/handler-slack-multichannel.rb
Change to string interpolation Co-Authored-By: kali-brandwatch <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5992ed0 - Browse repository at this point
Copy the full SHA 5992ed0View commit details -
Small fixes to handler-slack-multichannel.rb
- Remove unnecessary puts for the whole request. - Fix syntax error on string interpolation. - Shorten error messages to keep clearer error messages and make rubocop happy about line length.
Configuration menu - View commit details
-
Copy full SHA for b0963fb - Browse repository at this point
Copy the full SHA b0963fbView commit details -
handler-slack-multichannel.rb: add configurable override for non stan…
…dard exit codes As discussed on sensu-plugins#82 (comment) and sensu-plugins#82 (comment) Add a configurable setting for which exit status code will be used when the check returns a non standard status (non [0..3]), defaulting to 3 (UNK) Set rescues on `color` and `translate_status` to use this setting. Should resolve both comments above
Configuration menu - View commit details
-
Copy full SHA for fac988a - Browse repository at this point
Copy the full SHA fac988aView commit details