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

      Settings seeming to be OK. I'd never touch them. Don't know whats wrong. Here's a screenshot:

      Cant figure out, why there are no Interfacec listed …

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

        I have all four checked and it appears to be OK for me on the most current snapshot:

        [2.0-BETA4][root@pfsense.localdomain]/root(1): snmpwalk -v 2c -c public localhost | wc -l
            6734

        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 updated my Alix to the latest pfSense NanoBSD version … m0n0mon can't read the interfaces again. A new SNMP walk starting with the OID .1.3 has only this short result:

          Variable = system.sysDescr.0
          Value  = wall.daheim.local 432368702 FreeBSD 8.1-RELEASE-p2
          Variable = system.sysObjectID.0
          Value  = 1.3.6.1.4.1.12325.1.1.2.1.1
          Variable = system.sysUpTime.0
          Value  = 76648
          Variable = system.sysContact.0
          Value  =
          Variable = system.sysName.0
          Value  = wall.daheim.local
          Variable = system.sysLocation.0
          Value  =
          Variable = system.sysServices.0
          Value  = 76
          Variable = system.8.0
          Value  = 1
          Variable = system.9.1.2.1
          Value  = 1.3.6.1.4.1.12325.1.1.1.10.2
          Variable = system.9.1.2.2
          Value  = 1.3.6.1.4.1.12325.1.1.1.10.3
          Variable = system.9.1.2.3
          Value  = 1.3.6.1.6.3.1
          Variable = system.9.1.2.4
          Value  = 1.3.6.1.4.1.12325.1.1
          Variable = system.9.1.3.1
          Value  = udp transport mapping
          Variable = system.9.1.3.2
          Value  = lsock transport mapping
          Variable = system.9.1.3.3
          Value  = The MIB module for SNMPv2 entities.
          Variable = system.9.1.3.4
          Value  = The MIB module for the Begemot SNMPd.
          Variable = system.9.1.4.1
          Value  = 0
          Variable = system.9.1.4.2
          Value  = 0
          Variable = system.9.1.4.3
          Value  = 1
          Variable = system.9.1.4.4
          Value  = 1
          Variable = snmp.snmpInPkts.0
          Value  = 535
          Variable = snmp.snmpInBadVersions.0
          Value  = 0
          Variable = snmp.snmpInBadCommunityNames.0
          Value  = 0
          Variable = snmp.snmpInBadCommunityUses.0
          Value  = 0
          Variable = snmp.snmpInASNParseErrs.0
          Value  = 0
          Variable = snmp.snmpEnableAuthenTraps.0
          Value  = 2
          Variable = snmp.31.0
          Value  = 0
          Variable = snmp.32.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.1.1.0
          Value  = 2048
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.1.2.0
          Value  = 2048
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.1.3.0
          Value  = 1
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.1.4.0
          Value  = 0.0.0.0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.1.5.0
          Value  = 3
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.4.1.3.0.0.0.0.161
          Value  = 1
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.7.1.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.7.2.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.7.3.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.7.4.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.8.1.0
          Value  = 2
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.8.2.0
          Value  = 0
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.8.3.0
          Value  = 7
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.9.1.2.19.47.118.97.114.47.114.117.110.47.115.110.109.112.100.46.115.111.99.107
          Value  = 1
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.9.1.3.19.47.118.97.114.47.114.117.110.47.115.110.109.112.100.46.115.111.99.107
          Value  = 4
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.10.1.1.2.3.117.100.112
          Value  = 1
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.10.1.1.2.5.108.115.111.99.107
          Value  = 1
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.10.1.1.3.3.117.100.112
          Value  = 1.3.6.1.4.1.12325.1.1.1.10.2
          Variable = .iso.org.dod.internet.private.enterprises.12325.1.1.1.10.1.1.3.5.108.115.111.99.107
          Value  = 1.3.6.1.4.1.12325.1.1.1.10.3
          Variable = .iso.org.dod.internet.6.3.1.1.6.1.0
          Value  = 1422193218

          Interfaces should be listed, cause they should have OID 1.3.6.1.2.1.2 … but they aren't listed!

          Btw ... after the update i have now errors in the dashboard at the Cpu Graphs section:

          Warning: include(/usr/local/www/widgets/widgets/cpu_graphs.widget.php): failed to open stream: No such file or directory in /usr/local/www/index.php on line 673 Warning: include(): Failed opening '/usr/local/www/widgets/widgets/cpu_graphs.widget.php' for inclusion (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /usr/local/www/index.php on line 673

          Is it possible, that in the embedded version the interfaces branch of the OIDs, aren't present?

          1 Reply Last reply Reply Quote 0
          • 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.