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

    NET-SNMP Package Now Available for pfSense 2.4 (SNMPv3, TLS, IPv6, and more)

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    20 Posts 7 Posters 10.3k 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.
    • D
      doktornotor Banned
      last edited by

      @jimp:

      I just wish there was an up-to-date patch or module for accessing pf counters without having to script it.

      Hmmm… https://www.packetmischief.ca/openbsd-snmp-mibs/ has been maintained up to ~2012 (OpenBSD 5.1). Not sure how much usable that is.

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

        That's the one I was looking at. They migrated their code to bsnmpd and left net-snmp behind. Which isn't surprising given that they were focused on OpenBSD, but bsnmpd isn't all it's cracked up to be.

        We could run them both together and proxy over the requests for the pf-specific parts but I'm not too crazy about that idea.

        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
        • D
          doktornotor Banned
          last edited by

          Yeah, no longer maintained, but the pf parts for net-snmp seem to be from 2011-2012… would not seem so hopelessly outdated to port over. Proxying, yeah, not excited about that either.

          1 Reply Last reply Reply Quote 0
          • C
            chrcoluk
            last edited by

            • No direct access to pf information

            What sort of information does this include?

            I plan to run snmpd on my pfSense unit but I have a decision to make bsnmpd or net-snmp.  The latter is my preference as I use that on dozens of server's so am used to it.

            pfSense CE 2.8.0

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

              Things like state table size, altq information, various packet info counters tracked by pf, state table metadata… Here's the MIB from bsnmpd so you can see what's in it: http://files.atx.pfsense.org/jimp/mibs/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
              • V
                Viktor
                last edited by

                Does this mean Observium (supports basically NET-SNMP for servers) can be used for detailed Pfsense monitoring? This sound very promising, as BSNMPd was providing limited  information. Looking forward to try on a productive system.

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

                  I don't use observium but if it has profiles for NET-SNMP then it should be able to get anything it would usually get for a NET-SNMP host from it.

                  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
                  • C
                    chrcoluk
                    last edited by

                    hmm, I finally got round to playing with this.

                    I did a full snmpwalk on bnsmpd data but no pf data to be found.

                    I may just use extend with net-snmpd instead.

                    pfSense CE 2.8.0

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

                      @chrcoluk:

                      I did a full snmpwalk on bnsmpd data but no pf data to be found.

                      I may just use extend with net-snmpd instead.

                      That's correct, net-snmpd has no special knowledge of pf. There is no current/supported net-snmp module for FreeBSD that can interface with pf. You could use some extend entries to call various pfctl commands to gather info, depending on what you need/want.

                      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
                      • C
                        chrcoluk
                        last edited by

                        it was bsnmpd running on pfsense when I ran the snmpwalk.

                        Also a suggestion for the net-snmp package

                        You use the flags -Ls but this floods the log everytime a snmpd server connects, I suggest changing to -LF 0-4 I already patched my local pfsense.

                        root@PFSENSE pkg # ps axww | grep snmp
                        78025  -  S        0:29.48 /usr/local/sbin/snmpd -LF 0-4 d -p /var/run/net_snmpd.pid -M /usr/share/snmp/mibs/:/usr/local/share/snmp/mibs -C -c /var/etc/netsnmpd.conf,/var/etc/netsnmpd-users.conf
                        

                        pfSense CE 2.8.0

                        1 Reply Last reply Reply Quote 0
                        • Q
                          q54e3w
                          last edited by

                          thx for this tip, my logs were being spammed also. Any idea idea if this will be rolled into a future upgrade?

                          For anyone else who needs to make the change, edit line 590 of /usr/local/pkg/net-snmp.inc
                          from

                          /usr/local/sbin/snmpd -Ls d \
                          

                          to

                          /usr/local/sbin/snmpd -LF 0-4 d \
                          
                          1 Reply Last reply Reply Quote 0
                          • N
                            Napsterbater
                            last edited by

                            Thanks for the tip about changing that line to reduce Log Spam.

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