Alert Event Text not showing up on the Alerts Dashboard correctly

I have been working on tuning the BGP alert template and I have it working correctly for the API transport and Cisco Spark channel… But the event / alert text in the Alerts window on our dashboard looks to be coming from the Default alert tempate.

The event text that comes through on the Spark channel is what i would expect to come through on the Alerts dashboard. If I am wrong here, how do I correct it so that the event text is meaningful…???

BGP Alert Spark

post what you are using for the alert template

BGP Template

BACKBONE :: %title
Severity: %severity
{if %state == 0}Time elapsed: %elapsed
{/if}
Timestamp: %timestamp
Unique-ID: %uid
Rule: {if %name}%name{else}%rule{/if}
{if %faults}
{foreach %faults}
Peer: %value.astext
Peer IP: %value.bgpPeerIdentifier
Peer AS: %value.bgpPeerRemoteAs
Peer State: %value.bgpPeerState
{/foreach}
{/if}

also, the alerts dashboard is separate from the transport template.

@kkrum, What transport would I need to add to the alert template to get it into the dashboard ???

Im not sure, but you cant change the alert dashboard info that’s a whole separate thing.

I guess you could but that would involve code changes.

So I am about to ask a dumb question… What use is the Alert widgets for dashboards if the information for the alert cannot be altered to something useful and meaningful…???

Code changes are always welcome if you feel that something that needs to changed submit a PR in git hub and or feature request in the community forums.

I guess the original intention was just to show alerts in the dashboards.

@kkrumm, I am not a coder :frowning: Is there a widget that I can add that will show this type of information to the dashboard…??

https://docs.librenms.org/#Extensions/Dashboards/#widgets

@krumm, I have the alerts widget added to my overview dashboard. It really is not very useful in comparison to what we are exporting off LibreNMS with Cisco Spark & the API transport.

The question that I am getting asked internally is why we need a separate system to get good event text / info.

What are other people using or how are they set up so that the alert widget is useful…??

The widget doesn’t pull the data from the transports or templates, it gets it directly from the DB and only does a rather naive approach on finding useful fields (AKA it shows anything with ID in the keyword).

This hasn’t been changed since the very first draft but it’s a no-brainer to have it formatted by the template definitions instead.

1 Like

@Patrick_Topping (@Kevin_Krumm) , I’m curious if you can share how you got the Cisco Spark transport working for alerts. I have the transport configured, and when I “test transport” it sends the test message successfully to my Spark room. But it isn’t sending BGP events (which do show up on the dashboard) to Spark, and I can’t figure out why. Thanks in advance if you see this!

Check your alert template for errors.
Also @evilcamel please don’t hijack other users threads.

I wasn’t trying to hijack anyone’s thread. The thread seems pretty dead since last Nov. I was simply trying to get some helpful info from a fellow user who seemed to have been able to get something working that I was having an issue with.

@evilcamel That’s why you start your own thread and let those users reply to own thread.

:roll_eyes:

f0o,

Have you been able to make this change on your system…?? The text in the alerts is fairly useless for anything besides device up/down & interface up/down.