I’m working with the alerting system of LibreNMS and modified the Alert Template to only display the information I want.
Now, the default template shows you how long a BGP peer was established before it went down.
The entities name is ‘bgpPeerFsmEstablishedTime’ and it displays the amount of seconds a BGP session was up.
How would I convert this value to a better readable value, such as Days + Hours + Minutes and last but not least Seconds ( )
You could try to put a bit of php/laravel in your template for conversion etc.
check some examples here where it is used for utilization conversion etc…
Laravel :
echo CarbonInterval::seconds(90060)->cascade()->forHumans();
or maybe
Let us know how you get on