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

    SNMP OID for State Table?

    Scheduled Pinned Locked Moved SNMP
    7 Posts 4 Posters 8.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.
    • M
      mevans336
      last edited by

      Last week we had a situation where we hit the pre-set 10,000 state limit of our 1.2.3 device, which manifested itself in all sorts of problems with our application.

      Is there a way to monitor the state table via SNMP?

      1 Reply Last reply Reply Quote 0
      • M
        Metu69salemi
        last edited by

        i have no knowledge for the question itself, but if you have more ram than 10MB then you should have bigger state table, if you change the size for it

        1 Reply Last reply Reply Quote 0
        • M
          mevans336
          last edited by

          @Metu69salemi:

          i have no knowledge for the question itself, but if you have more ram than 10MB then you should have bigger state table, if you change the size for it

          Thank you Metu. I bumped it to 40,000 and we're still only utilizing around 3% of total RAM. We are awfully close to our MBUF limit however.

          This is not critical, as it is being replaced in the next few weeks and will then be upgraded to 2.0. But having the comfort of knowing that we can monitor for this situation would be handy.

          pfsense.jpg
          pfsense.jpg_thumb

          1 Reply Last reply Reply Quote 0
          • D
            dhatz
            last edited by

            You can change mbufs in /boot/loader.conf e.g.

            kern.ipc.nmbclusters=32768

            1 Reply Last reply Reply Quote 0
            • M
              mevans336
              last edited by

              @dhatz:

              You can change mbufs in /boot/loader.conf e.g.

              kern.ipc.nmbclusters=32768

              Thank you, but I have no idea what the impact of that would be. What is the impact of raising the MBUF limit?

              To clarify, I am being asked by our CTO to monitor this. Either we can, or we can't, but I would like to provide an answer one way or the other.

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

                The SNMP OIDs for various pf bits can be found here in the pf MIB:

                http://files.pfsense.org/jimp/BEGEMOT-PF-MIB.txt

                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
                • M
                  mevans336
                  last edited by

                  @jimp:

                  The SNMP OIDs for various pf bits can be found here in the pf MIB:

                  http://files.pfsense.org/jimp/BEGEMOT-PF-MIB.txt

                  Ah ha! Perfect! Right there at the top of the MIB is pfStateTable with a object-type description of "Number of entries in the state table."

                  That sounds like exactly what I need.

                  Thank you.

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