Alerta transport not working, how to debug?

I created an alerta transport. When I click on the “Test transport” button I get a pop-up telling “Test to alerta failed - general error”

I looked in every log file I could think of (/opt/librenms/logs/librenms.log, /var/log/nginx/access.log, /var/log/nginx/error.log) but I couldn’t find anything, even after putting APP_DEBUG=true in .env.

Another transport (telegram) works fine.

Try https://docs.librenms.org/Alerting/Testing/#transports

1 Like

Thank you. Would have been nice to have a more informative error in the popup and/or have it logged somewhere.
Since the alerta transport is not documented (at least not here), these were my errors:

  • the url has to point directly to the alert endpoint (http://alertahost/api/alert) and not to the api url (http://alertahost/api/). Silly me for not noticing that the fiels is named “Api endpoint”.
  • after that I mistakenly wrote the alarm category capitalized while they were configured as lowercase in alerta.
1 Like

@olivluca Maybe you can make PR with examples for alerta transport? Should be usefull for everybody who wish to implement it in future

Good idea

1 Like