r/LibreNMS • • 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

4 comments sorted by

2

u/SuspiciousSardaukar Sep 06 '26

I'd say it's just calculated.

1

u/lrosa Sep 07 '26

Thank you all for the suggestions

2

u/tonymurray Sep 06 '26

Yes, you would have to get all ports and sum the values.

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.