Run traceroute if device becomes unreachable?

Im not sure if it’s even possible, but it seems like it’d be a simple thing to do. I’m not sure where to begin, but I’d like to make Librenms run a traceroute when a device goes down(or some other trigger) to see exactly where the failure is and either put it in a log file or display it on a web page. Is this possible? I found a plug in or two that lead me to believe it is, but nothing saying this specifically. If there is any articles out there that you know of, please point me in there direction. I greatly appreciate it. Thanks

This has already been implemented.