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

    Strange new SNMP bug on 2.4 upgrade (huge CPU usage)

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 5 Posters 1.6k 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.
    • F
      fohdeesha
      last edited by

      I just upgraded to 2.4 from the latest 2.3.x. I noticed the processor was getting swamped at 60% usage or higher, and upon looking further I find it's all SNMPD. On 2.3.x snmpd took about 1%, with the same config. This is with nothing polling it.

      Here's where it gets strange - if I go into snmp settings, and uncheck "host resources", snmpd restarts and goes back to using less than 1% CPU usage. Fixes it across reboots, etc. Re-checking host resources brings back the 50%+ CPU usage every time.

      I've upgraded 3 completely seperate boxes. I got this bug on all of them, and unchecking Host Resources fixed it on all of them

      WTF is going on? Very motivated to figure this one out. Nothing in logs regarding snmpd

      1 Reply Last reply Reply Quote 0
      • GrimsonG
        Grimson Banned
        last edited by

        https://redmine.pfsense.org/issues/6882

        1 Reply Last reply Reply Quote 0
        • F
          fohdeesha
          last edited by

          @Grimson:

          https://redmine.pfsense.org/issues/6882

          Thanks, good to know I'm not crazy. I see in the comments they're getting it in vmware and kvm, I'll confirm its also happening in Xen

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            When I look at my settings doesn't even list hostres because it says not compatible with VM with cd/dvd drive..

            "The hostres module is not compatible with VMware virtual machines configured with a virtual CD/DVD Drive"

            snmpd.png
            snmpd.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • F
              fohdeesha
              last edited by

              @johnpoz:

              When I look at my settings doesn't even list hostres because it says not compatible with VM with cd/dvd drive..

              "The hostres module is not compatible with VMware virtual machines configured with a virtual CD/DVD Drive"

              If you read the comments of the redmine bug you'll see they added detection for VMware where it removes the option proactively, however this hasn't been added to kvm and xen environments

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

                We had not had any reports of it yet on 2.4 snapshots but apparently this can also happen with physical CD drives and other drives as well. Disabling the hostres module should be enough to fix the problem if it is the same bug.

                We have our eyes on a FreeBSD patch that may fix it for 2.4.1 (coming out hopefully later this week) so hopefully not an issue for much longer.

                If disabling hostres is not enough and you need SNMP, then you can also try switching to the NET-SNMP package which is superior in nearly every way to bsnmpd except that it doesn't have direct access to pf stats like bsnmpd.

                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
                • J
                  julicravo
                  last edited by

                  Thank you, guys!

                  sds,

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