4 Replies Latest reply on Aug 9, 2010 8:57 AM by byrona

    Trying to poll a very dumb linux box running mini_snmpd

    GaryP

      Afternoon all, got a little bit of a problem I've been scratching my head over. I'm trying to monitor a linux router, namely a Linksys WRT54GL running OpenWRT Backfire 10.03 (it's my home router, I run the University's Solarwinds install so I figure they can spare the licensing and cycles to monitor one extra little box ). Now these systems have limited RAM (32MB, hah, I remember when I aspired to having that much in my workstation!) so I'm running a cut-down implementation of net-snmp called mini_snmpd (http://members.aon.at/linuxfreak/linux/mini_snmpd.html) that uses ~10% of the memory of net-snmp.

      The daemon's all up and running quite happily with one of our NPM pollers talking to it but doing a 'list resources' only shows me the network interfaces of the device, no CPU, RAM or disk usage. Doing an snmpwalk at it, curiously, gives me exactly the same result unless I specify '.iso' as the starting point in the MIB to make the walk from, in which case I get everything I would hope for.

      It may be worth noting that mini_snmpd doesn't return a 'machine type' when it's polled so NPM has no idea what type of machine it is (it shows up as 'Unknown').

      So, the question is: how do I do the equivalent of 'snmpwalk -v 2c -c public <host> .iso' when I add it to NPM, or 'List resources', to enable it to see the additional devices/resources?

        • Re: Trying to poll a very dumb linux box running mini_snmpd
          byrona

          I am not familiar with mini_snmpd, only net-snmp.  Are there any configurations you can make to the mini_snmpd that will allow you to get rid of the required .iso?  I am guessing that if that wasn't required things would be working as you would like.

            • Re: Trying to poll a very dumb linux box running mini_snmpd
              bshopp

              byrona is right, can you determine a way to remove the .iso requirement then it should work fine.  Regarding unknown search thwack for the tell us you unknown devices post and put up there the requested info and we will add it to our discovery DB so it will become recognized

                • Re: Trying to poll a very dumb linux box running mini_snmpd
                  GaryP

                  Interestingly, from the SNMP FAQ, this appears to be correct behaviour:

                  http://net-snmp.sourceforge.net/docs/FAQ.html#Why_can_t_I_see_values_in_the__INSERT_ENTERPRISE_HERE__tree_

                   

                    By default, unless given an explicit starting OID, then the 'snmpwalk'
                    command will display the contents of the 'mib-2' tree, containing most
                    of the IETF-standard management information supported by the agent.
                    When the agent reaches the end of this tree, it will return the first
                    enterprise-specific value, and 'snmpwalk' will recognise that this
                    marks the end of the (implicitly) request tree, and stop.  No
                    enterprise-specific information will be displayed.
                  
                      To walk the whole tree, and see *all* the information that the
                    agent supports, specify a starting point of '.iso' or '.1'.

                  Compare the out from the two commands (with and without .iso specified as the starting point):

                  root@kahlua:~# snmpwalk -v 2c -c not_public localhost:1161
                  Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
                  Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
                  Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
                  Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
                  Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
                  Cannot find module (TUNNEL-MIB): At line 0 in (none)
                  Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
                  Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
                  Cannot find module (IP-MIB): At line 0 in (none)
                  Cannot find module (IF-MIB): At line 0 in (none)
                  Cannot find module (TCP-MIB): At line 0 in (none)
                  Cannot find module (UDP-MIB): At line 0 in (none)
                  Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
                  Cannot find module (SNMPv2-MIB): At line 0 in (none)
                  Cannot find module (SNMPv2-SMI): At line 0 in (none)
                  Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
                  Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
                  Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
                  iso.3.6.1.2.1.1.1.0 = STRING: "WRT54GL"
                  iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1
                  iso.3.6.1.2.1.1.3.0 = Timeticks: (23799496) 2 days, 18:06:34.96
                  iso.3.6.1.2.1.1.4.0 = STRING: "garyp@XXXXXXXX.XXX.XX"
                  iso.3.6.1.2.1.1.5.0 = STRING: "XXXXXX.XXX.XX"
                  iso.3.6.1.2.1.1.6.0 = STRING: "Nottingham"
                  iso.3.6.1.2.1.2.1.0 = INTEGER: 4
                  iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
                  iso.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
                  iso.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
                  iso.3.6.1.2.1.2.2.1.2.1 = STRING: "eth0.0"
                  iso.3.6.1.2.1.2.2.1.2.2 = STRING: "eth0.1"
                  iso.3.6.1.2.1.2.2.1.2.3 = STRING: "wlan0"
                  iso.3.6.1.2.1.2.2.1.2.4 = STRING: "aiccu"
                  iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.3 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.4 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 36798180
                  iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 966905617
                  iso.3.6.1.2.1.2.2.1.10.3 = Counter32: 37245385
                  iso.3.6.1.2.1.2.2.1.10.4 = Counter32: 4294766160
                  iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 456680
                  iso.3.6.1.2.1.2.2.1.11.2 = Counter32: 1409092
                  iso.3.6.1.2.1.2.2.1.11.3 = Counter32: 301034
                  iso.3.6.1.2.1.2.2.1.11.4 = Counter32: 4294957819
                  iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 659684634
                  iso.3.6.1.2.1.2.2.1.16.2 = Counter32: 118870273
                  iso.3.6.1.2.1.2.2.1.16.3 = Counter32: 296916810
                  iso.3.6.1.2.1.2.2.1.16.4 = Counter32: 4290436743
                  iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 799222
                  iso.3.6.1.2.1.2.2.1.17.2 = Counter32: 1074101
                  iso.3.6.1.2.1.2.2.1.17.3 = Counter32: 362267
                  iso.3.6.1.2.1.2.2.1.17.4 = Counter32: 4294940597
                  iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.4 = Counter32: 0
                  iso.3.6.1.2.1.25.1.1.0 = Timeticks: (57377011) 6 days, 15:22:50.11
                  root@kahlua:~# snmpwalk -v 2c -c not_public localhost:1161 .iso
                  Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
                  Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
                  Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
                  Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
                  Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
                  Cannot find module (TUNNEL-MIB): At line 0 in (none)
                  Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none)
                  Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
                  Cannot find module (IP-MIB): At line 0 in (none)
                  Cannot find module (IF-MIB): At line 0 in (none)
                  Cannot find module (TCP-MIB): At line 0 in (none)
                  Cannot find module (UDP-MIB): At line 0 in (none)
                  Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
                  Cannot find module (SNMPv2-MIB): At line 0 in (none)
                  Cannot find module (SNMPv2-SMI): At line 0 in (none)
                  Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
                  Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
                  Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
                  iso.3.6.1.2.1.1.1.0 = STRING: "WRT54GL"
                  iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1
                  iso.3.6.1.2.1.1.3.0 = Timeticks: (23800609) 2 days, 18:06:46.09
                  iso.3.6.1.2.1.1.4.0 = STRING: "garyp@XXXXXXXX.XXX.XX"
                  iso.3.6.1.2.1.1.5.0 = STRING: "XXXXXX.XXX.XX"
                  iso.3.6.1.2.1.1.6.0 = STRING: "Nottingham"
                  iso.3.6.1.2.1.2.1.0 = INTEGER: 4
                  iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.1.2 = INTEGER: 2
                  iso.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
                  iso.3.6.1.2.1.2.2.1.1.4 = INTEGER: 4
                  iso.3.6.1.2.1.2.2.1.2.1 = STRING: "eth0.0"
                  iso.3.6.1.2.1.2.2.1.2.2 = STRING: "eth0.1"
                  iso.3.6.1.2.1.2.2.1.2.3 = STRING: "wlan0"
                  iso.3.6.1.2.1.2.2.1.2.4 = STRING: "aiccu"
                  iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.2 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.3 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.8.4 = INTEGER: 1
                  iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 36798180
                  iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 966911883
                  iso.3.6.1.2.1.2.2.1.10.3 = Counter32: 37245385
                  iso.3.6.1.2.1.2.2.1.10.4 = Counter32: 4294770696
                  iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 456680
                  iso.3.6.1.2.1.2.2.1.11.2 = Counter32: 1409163
                  iso.3.6.1.2.1.2.2.1.11.3 = Counter32: 301034
                  iso.3.6.1.2.1.2.2.1.11.4 = Counter32: 4294957889
                  iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.13.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.14.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 659684634
                  iso.3.6.1.2.1.2.2.1.16.2 = Counter32: 118882511
                  iso.3.6.1.2.1.2.2.1.16.3 = Counter32: 296916810
                  iso.3.6.1.2.1.2.2.1.16.4 = Counter32: 4290446587
                  iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 799222
                  iso.3.6.1.2.1.2.2.1.17.2 = Counter32: 1074164
                  iso.3.6.1.2.1.2.2.1.17.3 = Counter32: 362267
                  iso.3.6.1.2.1.2.2.1.17.4 = Counter32: 4294940660
                  iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.19.4 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.2 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
                  iso.3.6.1.2.1.2.2.1.20.4 = Counter32: 0
                  iso.3.6.1.2.1.25.1.1.0 = Timeticks: (57378124) 6 days, 15:23:01.24
                  iso.3.6.1.4.1.2021.4.5.0 = INTEGER: 29660
                  iso.3.6.1.4.1.2021.4.6.0 = INTEGER: 9984
                  iso.3.6.1.4.1.2021.4.13.0 = INTEGER: 0
                  iso.3.6.1.4.1.2021.4.14.0 = INTEGER: 1440
                  iso.3.6.1.4.1.2021.4.15.0 = INTEGER: 8848
                  iso.3.6.1.4.1.2021.9.1.1.1 = INTEGER: 1
                  iso.3.6.1.4.1.2021.9.1.2.1 = STRING: "/tmp"
                  iso.3.6.1.4.1.2021.9.1.6.1 = INTEGER: 14832
                  iso.3.6.1.4.1.2021.9.1.7.1 = INTEGER: 13516
                  iso.3.6.1.4.1.2021.9.1.8.1 = INTEGER: 1316
                  iso.3.6.1.4.1.2021.9.1.9.1 = INTEGER: 9
                  iso.3.6.1.4.1.2021.9.1.10.1 = INTEGER: 2
                  iso.3.6.1.4.1.2021.10.1.1.1 = INTEGER: 1
                  iso.3.6.1.4.1.2021.10.1.1.2 = INTEGER: 2
                  iso.3.6.1.4.1.2021.10.1.1.3 = INTEGER: 3
                  iso.3.6.1.4.1.2021.10.1.2.1 = STRING: "Load-1"
                  iso.3.6.1.4.1.2021.10.1.2.2 = STRING: "Load-5"
                  iso.3.6.1.4.1.2021.10.1.2.3 = STRING: "Load-15"
                  iso.3.6.1.4.1.2021.10.1.3.1 = STRING: "0.00"
                  iso.3.6.1.4.1.2021.10.1.3.2 = STRING: "0.00"
                  iso.3.6.1.4.1.2021.10.1.3.3 = STRING: "0.00"
                  iso.3.6.1.4.1.2021.10.1.4.1 = STRING: "1"
                  iso.3.6.1.4.1.2021.10.1.4.2 = STRING: "5"
                  iso.3.6.1.4.1.2021.10.1.4.3 = STRING: "15"
                  iso.3.6.1.4.1.2021.10.1.5.1 = INTEGER: 0
                  iso.3.6.1.4.1.2021.10.1.5.2 = INTEGER: 0
                  iso.3.6.1.4.1.2021.10.1.5.3 = INTEGER: 0
                  iso.3.6.1.4.1.2021.11.50.0 = Counter32: 1568083
                  iso.3.6.1.4.1.2021.11.51.0 = Counter32: 0
                  iso.3.6.1.4.1.2021.11.52.0 = Counter32: 290526
                  iso.3.6.1.4.1.2021.11.53.0 = Counter32: 55357269
                  iso.3.6.1.4.1.2021.11.59.0 = Counter32: 157015882
                  iso.3.6.1.4.1.2021.11.60.0 = Counter32: 23672858
                  iso.3.6.1.4.1.99999.1.0 = INTEGER: 1152336530
                  iso.3.6.1.4.1.99999.2.0 = INTEGER: 709772394
                  iso.3.6.1.4.1.99999.2.0 = No more variables left in this MIB View (It is past the end of the MIB tree)