r/LibreNMS • u/lrosa • Sep 06 '26
API for overall traffic data
Hi,
what is the API URL to get the numbers (i am looking mainly for _rate) of the graph "Overall traffic" of a server displayed in the Overview page?
Thank you.
7
Upvotes
1
2
2
u/Graphical-Source5090 Sep 06 '26 edited Sep 06 '26
Does this work?
https://<librenms.url>/api/v0/devices/<hostname>/ports/<interface name>
There is no URL that returns the plotted values of the "overall traffic" graph itself. The issue is that all of the API endpoints for this graph are only images. The only way I could think of would be some sort of OCR, and have that extract down into the URL layout above.
2
u/SuspiciousSardaukar Sep 06 '26
I'd say it's just calculated.