Skip to main content
one_co_il
New Member
March 1, 2017
Solved

Get Wan Bandwidth via SNMP

  • March 1, 2017
  • 2 replies
  • 33550 views

Hi

I want to monitor each WAN Interface Traffic via SNMP, to get output similar to the value in Interface History Widget only via SNMP

Is there any way to get Wan1 and Wan2 Current Bandwidth?

I looked in to Fortigate MIB and the only Bandwidth MIB I Found is "fgHaStatsNetUsage" - Network Usage of Cluster (HA)

I dont Think this is the one I need,

any ideas?

    Best answer by Alby23

    You should use InOctects and OutOctects for the relevant interfaces, read those values every "x" time (i.e. every 60 seconds) then perform a delta between the last data and the previous one.

    In this way you'll have the number of octet in 60 seconds; if you multiply that number by 8, you'll have the bits.

    After that a simple math formula and you have the average Mbps for that time interval.

    2 replies

    Alby23
    Alby23Answer
    New Member
    March 1, 2017

    You should use InOctects and OutOctects for the relevant interfaces, read those values every "x" time (i.e. every 60 seconds) then perform a delta between the last data and the previous one.

    In this way you'll have the number of octet in 60 seconds; if you multiply that number by 8, you'll have the bits.

    After that a simple math formula and you have the average Mbps for that time interval.

    jintrah_FTNT
    Staff
    Staff
    March 1, 2017

    Hi,

    Below oids can be used

    IF-MIB:interfaces.ifTable.ifEntry.ifInOctets          - 1.3.6.1.2.1.2.2.1.10

    IF-MIB:interfaces.ifTable.ifEntry.ifOutOctets        -1.3.6.1.2.1.2.2.1.16

    one_co_il
    one_co_ilAuthor
    New Member
    March 2, 2017

    Tanks it's working more or less

    but there still some issue, how can i tell when the value is reset?

    for now i calc the values Delta with 10s delay, somtimes i get negetive value because the Values reset and the second Value is lower the the first

    tspark
    New Member
    May 4, 2017

    We use PRTG Network Monitor and their built-in SNMP bandwidth sensor. It works great when needing real-time and historic bandwidth usage. However I have found that with the latest version of FortiOS (5.4.4), we're not getting accurate bandwidth readings on VLANS, however the physical interfaces are still reporting as they should. I have not yet tried 5.6.0.

    Nicoke972
    New Member
    June 8, 2017

    Hi tspark,

     

    I use PRTG too. But I can not see the bandwidth in Mb/s in real time.

    harald21
    New Member
    June 13, 2017

    In the past I used MRTG to monitor my Fortinet devices (bandwith, cpu usage, memory usage, session statistics, . . .)

    You can customize the behaviour in the config file, and you can also monitor various values via SNMP-OID.

     

    Sincerely

    Harald