Score:1

How can I get WAN interface bandwidth accurately via SNMP on Fortinet firewall?

aw flag

I am getting a sawtooth style of graph on Grafana when I am tying to monitor the ISP WAN interface of my Fortinet firewall. Can someone please guide me on getting the right graph for the WAN interface bandwidth? The fortinet shows a much smoother and flatter curve but my graph is a sawtooth, here is my OID, oid = "1.3.6.1.2.1.2.2.1.16.187" where 187 is the interface snmp index. Please guide me on this.

enter image description here

This is how it looks on Foritnet dashboard, enter image description here

Zac67 avatar
ru flag
1.3.6.1.2.1.2.2.1.16.x counts octets, not bandwidth. Just use the difference to the previous value.
djdomi avatar
za flag
@Zac67 can you explain a bit more without cliffhanging us? ;)
Zac67 avatar
ru flag
@djdomi mean bandwidth in bytes = (ifoctets@t1 - ifoctets@t0) / (t1 - t0)
xis10z avatar
aw flag
@Zac67 How can I get a diff between two values at different time stamps in the same series of datain Grafana? Can it be done via the Transform option?
xis10z avatar
aw flag
I am unable to figure out how to get a delta/diff between two values in a query result? I guess it's via Transform but there is no way to get a t0 and t1 for the same seres of data.
xis10z avatar
aw flag
@Zac67 any thoughts on how to implement your suggestion?
Zac67 avatar
ru flag
I'd guess you just set that data source to diff type, but I don't know the first thing about Grafana or I would have posted an answer.
djdomi avatar
za flag
Im unsure but mrtg had some nice tools to scan the target to fetch all kind of snmp mibs, just try them first?
xis10z avatar
aw flag
@Zac67 your original solution worked to capture interface bandwidth. Thanks! I was able to figure out the diff using "non-negative derivative" in Grafana.
djdomi avatar
za flag
please share the output of your solution as an answer please
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.