Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Sending a test alert does not show AlarmCallbackException information #2109

Closed magicdude4eva closed 7 years ago

magicdude4eva commented 8 years ago

Problem description

When an Alarmcallback plugin throws an exception during a "Send test alert", the web-interface does not display exception information specific to the plugin, but rather a generic message:

Sending dummy alert failed!
Unable to send dummy alert for stream »Stream name«: cannot POST http://IP:12900/streams/56fe3ffaf50b69149fb68c4a/alerts/sendDummyAlert (500)

Steps to reproduce the problem

  1. Write an Alarmcallback which throws an AlarmCallbackException
  2. Send a test alert
  3. Notice that the popup-notification does not display any exception information provided by the plugin

    Environment

    • Graylog Version: Graylog 2.0.0-beta.3 (1d03037)
joschi commented 7 years ago

This has been fixed in Graylog 2.2.0.

Email Alert Callback test error