Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SNMP traffic trouble

    Scheduled Pinned Locked Moved SNMP
    5 Posts 3 Posters 4.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vitafit
      last edited by

      I am having some issues here regarding the current (live) wan in/out traffic. I checked a few posts and so i came up with those two oids:
      In: .1.3.6.1.2.1.2.2.1.10.1
      Out: .1.3.6.1.2.1.2.2.1.16.1

      After a few attempts i figured out this has to be kind of the overall passed packets but not the current traffic at this moment. I also could not use the MIB-Files:
      http://files.pfsense.org/jimp/mibs/BEGEMOT-NETGRAPH.txt

      Any help on finding the right oids would be nice (WAN = em0). Second question: What's the values return format? Kbps?

      Thanks!

      Kind regards
      vitafit

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The problem is that interface indexes are different on each install. The OIDs in SNMP are based off the OS device probe order not the assignment in pfSense. So you have to look at the other OIDs to determine which ones are which.

        The most current MIBs are on your firewall under /usr/share/snmp/mibs/

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          renegade
          last edited by

          Can you give a hint where to find the correct OIDs? i have the MIBS and looked them up. ALL of them. But i did not find which value might help to retrieve the current traffic of my interfaces…

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            They're all under

            snmpwalk -v2c -c public 192.168.1.1 ifTable
            

            More specifically, you'll want IF-MIB::ifInOctets.1 (and however many numbers up, one per interface) and IfOutOctets

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • R
              renegade
              last edited by

              Thank you! That helped.
              Seems to be my part to subtract the last value from the value before to get the delta and with that the current throughput.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.