Skip to content

make dhcpdSnmpPoolTable a net-snmp standard compliant table#3

Open
dhoffend wants to merge 1 commit intoohitz:masterfrom
dhoffend:fix-snmptable
Open

make dhcpdSnmpPoolTable a net-snmp standard compliant table#3
dhoffend wants to merge 1 commit intoohitz:masterfrom
dhoffend:fix-snmptable

Conversation

@dhoffend
Copy link
Copy Markdown

@dhoffend dhoffend commented Oct 15, 2017

Using the snmptable commands fails cause the mib is not compliant with normal net-snmp tables.

$ snmptable -c public ns1 NETTRACK-DHCPD-SNMP-MIB::dhcpdSnmpPoolTable
Was that a table? NETTRACK-DHCPD-SNMP-MIB::dhcpdSnmpPoolTable

After fixing the mib and extension it looks like:

$ snmptable -c public ns1 NETTRACK-DHCPD-SNMP-MIB::dhcpdSnmpPoolTable
SNMP table: NETTRACK-DHCPD-SNMP-MIB::dhcpdSnmpPoolTable

 dhcpdSnmpPoolIndex dhcpdSnmpPoolDescription dhcpdSnmpPoolSize dhcpdSnmpPoolActiveLeases dhcpdSnmpPoolExpiredLeases dhcpdSnmpPoolAvailableAddresses
                  1              "WLAN Gast"              2023                         0                       1180                            2023
                  2              "WLAN Orga"               245                         0                        167                             245
                  3              "WLAN Anki"               245                         0                        180                             245
                  4              "Spielfeld"              1640                         0                          0                            1640
                  5              "Westblock"               615                         0                        268                             615
                  6               "Ostblock"               615                         0                          0                             615
                  7          "Nordtribuehne"              1230                         0                        127                            1230
                  8           "Nordoberrang"              1025                         0                          0                            1025
                  9            "Trainerbank"               410                         0                          0                             410
                 11          "Spielfeld A-B"               205                         0                        118                             205
                 12          "Spielfeld C-D"               205                         0                        124                             205
                 13          "Spielfeld E-F"               205                         0                        131                             205
                 14          "Spielfeld G-H"               205                         0                        134                             205
                 15          "Spielfeld I-J"               205                         0                        123                             205
                 16          "Spielfeld K-L"               205                         0                        137                             205
                 17          "Spielfeld M-N"               205                         0                        139                             205
                 18          "Spielfeld O-P"               205                         0                        117                             205
                 21       "Trainerbank Heim"               205                         0                        119                             205
                 22            "Westblock A"               205                         0                        112                             205
                 23          "Westblock B-C"               205                         0                          0                             205
                 24          "Westblock D-E"               205                         0                          0                             205
                 25           "Ostblock A-B"               205                         0                        125                             205
                 26           "Ostblock C-D"               205                         0                        123                             205
                 27           "Ostblock E-F"               205                         0                        130                             205
                 28       "Trainerbank Gast"               205                         0                        114                             205
                 31      "Nordtribuehne A-B"               205                         0                        127                             205
                 32   "Nordtribuehne C-D(1)"               205                         0                        119                             205
                 33   "Nordtribuehne C-D(2)"               205                         0                        205                             205
                 34   "Nordtribuehne E-F(1)"               205                         0                          0                             205
                 35   "Nordtribuehne E-F(2)"               205                         0                        119                             205
                 36      "Nordtribuehne G-H"               205                         0                        130                             205
                 41      "Nord-Oberrang A-B"               205                         0                        127                             205
                 42      "Nord-Oberrang C-D"               205                         0                        132                             205
                 43      "Nord-Oberrang E-F"               205                         0                        140                             205
                 44      "Nord-Oberrang G-H"               205                         0                        144                             205
                 45      "Nord-Oberrang I-J"               205                         0                        131                             205
                 69                   "Team"               254                         0                        151                             254

ATTENTION: This change breaks existing setups where dhcpd-snmp is already in use but it makes it more compliant with other snmp pollers where you just say which table you want to poll and collect.

@bklang
Copy link
Copy Markdown

bklang commented Apr 10, 2018

We've tested this and it's working for us. Thanks @dhoffend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants