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

    Snmp problem: m0n0mon broken since a while now

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    16 Posts 2 Posters 4.9k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      The CPU graph widget was disabled, because it had some issues. I thought there was a check in the code to skip it if it wasn't found.

      I'll have to check snmp on my nanobsd install after I update it next time. I am testing on a full install so there could be a difference there.

      Can you paste the contents of /var/etc/snmpd.conf here?

      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
      • E
        EmL
        last edited by

        Ooops … that was magic! I'm wondering if you answered, bevor i'd posted  ;D

        location := ""
        contact := ""
        read := "public"
        system := 1     # pfSense
        %snmpd
        begemotSnmpdDebugDumpPdus       = 2
        begemotSnmpdDebugSyslogPri      = 7
        begemotSnmpdCommunityString.0.1 = $(read)
        begemotSnmpdCommunityDisable    = 1
        begemotSnmpdPortStatus.0.0.0.0.161 = 1
        begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
        begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
        
        # These are bsnmp macros not php vars.
        sysContact      = $(contact)
        sysLocation     = $(location)
        sysObjectId     = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
        
        snmpEnableAuthenTraps = 2
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Interesting, it's completely missing the section that should be in there if you really have those checkboxes set in the GUI.

          It should end with:

          
          begemotSnmpdModulePath."mibII"  = "/usr/lib/snmp_mibII.so"
          begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so"
          %netgraph
          begemotNgControlNodeName = "snmpd"
          begemotSnmpdModulePath."pf"     = "/usr/lib/snmp_pf.so"
          begemotSnmpdModulePath."hostres"     = "/usr/lib/snmp_hostres.so"
          
          

          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
          • E
            EmL
            last edited by

            I put your additional lines via pfSense load/edit/save in snmpd.conf and reboot pfsense (since i don't know how to restart a service manually) … and it's working now!

            1 Reply Last reply Reply Quote 0
            • E
              EmL
              last edited by

              I forgot to say: I expicit unchecked saved and checked the checkboxes in the SNMP dialog before. Nothing happened. There seems to be something going wrong.

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

                And when I check the boxes on mine, the config comes out as expected. Even if I check them one by one, the expected lines appear.

                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
                • E
                  EmL
                  last edited by

                  hmmm … but you have no embedded?!

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

                    I just tested that on my ALIX. It works fine there.

                    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
                    • E
                      EmL
                      last edited by

                      Then i have no clue what could be the reason. I have a old wrap at the company. If i got time next week i modify it to nopacket, perform a clean install on the wrap and report the result here.

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

                        When you check those boxes in the GUI and save, and then leave and come back to the page, are they still checked? Or did they uncheck themselves?

                        It could be something in your config that's doing it, but I'm not sure what that might be

                        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
                        • E
                          EmL
                          last edited by

                          I don't know … call me crazy now. I tried different things and every time after changing things i checked /var/etc/snmpd.conf. It's working now? Yesterday i made the screenshots and post the content of the config file. The essential lines were missing. This is what i did now:

                          First i just check and uncheck the boxes. Accordingly to the changes in the GUI the snmpd.conf was changed also. Then i tried to disabled completely SNMP services and save the settings. After that i enabled it again with checking the boxes. Works! Then the same but enabling without checking the boxes. Works too. Then checking the boxes ... works also.

                          It's not really nice not to know whats going wrong. But i can clearly say that i had this problem, not only on my machine. Since it's not a totally really needed essential feature (like IPSec), i accepted this behavior for a long time.

                          At the moment i hope, that it was a problem, that may be existed in older versions, and may be i upgraded it all the time, to the newer snapshots ... and the issue may only occur in touch with my existing config ... and it's now is away cause of the newer snapshot (wondering why i was yesterday not able to save the settings with same snapshot)?!

                          But thx very much for your help ... wishing you a relaxed weekend 8)

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