Ad Widget

Collapse

Support of SNMP data having dynamic index, where to find it ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cygace
    Junior Member
    • Feb 2008
    • 22

    #1

    Support of SNMP data having dynamic index, where to find it ?

    The new version announce this new function : " Support of SNMP data having dynamic index? See SNMP section for more details. "

    Where can I find this snmp section ? I looked into the new manual but there is nothing mentioned about this new feature.

    This feature is really important for me thus if someone could help I would appreciate a lot

    Thanks
  • Cygace
    Junior Member
    • Feb 2008
    • 22

    #2
    Does anybody has the answer ?

    Comment

    • jesmit
      Junior Member
      • Feb 2008
      • 20

      #3
      I'm wondering the exact same thing. I've looked around items and discovery, but if I put in an index OID I just get "unsupported" error messages.

      I don't need my hand held, but if someone could point out some documentation so I can test this setup it would be very helpful.

      Comment

      • Cygace
        Junior Member
        • Feb 2008
        • 22

        #4
        Does anybody has a solution?

        Thanks

        Comment

        • just2blue4u
          Senior Member
          • Apr 2006
          • 347

          #5
          Just to get this right:
          You are searching for a way to say Zabbix:
          "There is a branch which shows CPU data for every core, go and search all values which are the LoadAVG1 for the single Cores and name them CPU LoadAVG<corenumber>"

          If i got you right, i'm searching for such a way, too.
          I haven't tried to use autodiscovery for that. Maybe i can get it to work that way...
          Big ZABBIX is watching you!
          (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

          Comment

          • Cygace
            Junior Member
            • Feb 2008
            • 22

            #6
            Here my problem is more with the cisco logged in users on the access point. It use dynamic index with various value thus I can't predict them

            This is why I need really this function

            Comment

            • nelsonab
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2006
              • 1233

              #7
              Originally posted by Cygace
              Here my problem is more with the cisco logged in users on the access point. It use dynamic index with various value thus I can't predict them

              This is why I need really this function
              Could you put a script between the cisco device and Zabbix? IE the script will troll the SNMP data and then return the right information back to Zabbix.
              RHCE, author of zbxapi
              Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
              Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

              Comment

              • jesmit
                Junior Member
                • Feb 2008
                • 20

                #8
                It seems like Cygace is having the same issues as myself. I *could* implement many workarounds, including a script to act as a frontend to snmptable. What I was really hoping for was for this to be included in the 1.5/6 branch.

                It's not a huge deal for me if it is not included, but the release notes seemed to indicate it was included. I just can't figure out how to use it.

                Comment

                • naushit
                  Junior Member
                  • Mar 2008
                  • 9

                  #9
                  Usage example

                  I am also looking for an example how to use SNMP dynamic index.

                  Any pointer will be helpful.

                  Thanks in advance.

                  Comment

                  • rolandsym
                    Member
                    • Jul 2007
                    • 76

                    #10
                    SNMP Dynamic example?

                    Hi,
                    I'd like to see one example or at least a some syntax. In the next few weeks I'm going to have some down time and I'd like to be able to convert current snmp templates and add more info(like VPN monitoring and wireless client list). Any thrown bones would be appreciated.

                    Rolandsym

                    Comment

                    • jcollie
                      Junior Member
                      • Dec 2006
                      • 11

                      #11
                      Example Syntax

                      Based on looking at the code, this is what I've found out:

                      <base OID of data>[index,<base OID of index>,<string to search for>]

                      As far as I can tell "index" must literally be "index". It appears that in the future there may be some more use for that parameter. So for example, to get the ifInOctets value for the GigabitEthernet0/1 interface on a Cisco device, you'd use something like the following:

                      ifInOctets[index,ifDescr,GigabitEthernet0/1]

                      Note that this will make many more SNMP queries each time the item is polled. There doesn't seem to be any caching mechanism yet.

                      Comment

                      • lukus
                        Junior Member
                        • May 2008
                        • 9

                        #12
                        Originally posted by jcollie
                        <base OID of data>[index,<base OID of index>,<string to search for>]
                        .
                        I can confirm that it works. For example, say you do an snmpwalk like this:

                        Code:
                        $ snmpwalk -On -v2c -c public 10.3.0.1
                        .1.3.6.1.2.1.25.2.3.1.3.32 = STRING: /home
                        .1.3.6.1.2.1.25.2.3.1.3.33 = STRING: /tmp
                        .1.3.6.1.2.1.25.2.3.1.3.34 = STRING: /usr
                        .1.3.6.1.2.1.25.2.3.1.6.32 = INTEGER: 534320
                        .1.3.6.1.2.1.25.2.3.1.6.33 = INTEGER: 3
                        .1.3.6.1.2.1.25.2.3.1.6.34 = INTEGER: 819200
                        If you want the value for /home you would use an OID string like this:

                        Code:
                        .1.3.6.1.2.1.25.2.3.1.6[index,.1.3.6.1.2.1.25.2.3.1.3,/home]

                        Comment

                        • Alexei
                          Founder, CEO
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Sep 2004
                          • 5654

                          #13
                          Shame on me, I was absolutely sure the information is already in the Manual!
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • JoelG
                            Member
                            • Aug 2007
                            • 32

                            #14
                            Does it need to be unique?

                            In the example above, does the string (for example, /home) have to be unique?

                            If I have multiple indexes with type (sonet, for example), could it correctly parse out the different interfaces?

                            Here is a snippet from snmpwalk:

                            Code:
                            IF-MIB::ifNumber.0 = INTEGER: 6
                            IF-MIB::ifIndex.2001 = INTEGER: 2001
                            IF-MIB::ifIndex.2002 = INTEGER: 2002
                            IF-MIB::ifIndex.2003 = INTEGER: 2003
                            IF-MIB::ifIndex.3001 = INTEGER: 3001
                            IF-MIB::ifIndex.8001 = INTEGER: 8001
                            IF-MIB::ifIndex.8002 = INTEGER: 8002
                            IF-MIB::ifDescr.2001 = STRING: Local SDH/SONET STM-1 radio Interface
                            IF-MIB::ifDescr.2002 = STRING: Local SDH/SONET STM-1 line Interface
                            IF-MIB::ifDescr.2003 = STRING: Local SDH/SONET STM-1 line Interface
                            IF-MIB::ifDescr.3001 = STRING: Local SDH/SONET STM-1 radio Interface
                            IF-MIB::ifDescr.8001 = STRING: Local Serial line NMS PPP Interface
                            IF-MIB::ifDescr.8002 = STRING: Local Ethernet NMS Interface
                            IF-MIB::ifType.2001 = INTEGER: sonet(39)
                            IF-MIB::ifType.2002 = INTEGER: sonet(39)
                            IF-MIB::ifType.2003 = INTEGER: sonet(39)
                            IF-MIB::ifType.3001 = INTEGER: sonet(39)
                            IF-MIB::ifType.8001 = INTEGER: ppp(23)
                            IF-MIB::ifType.8002 = INTEGER: ethernetCsmacd(6)
                            What if I was only interested in the radio interfaces, and not the the line?

                            Comment

                            • jcollie
                              Junior Member
                              • Dec 2006
                              • 11

                              #15
                              Originally posted by JoelG
                              In the example above, does the string (for example, /home) have to be unique?
                              If the strings are not unique, I'm pretty sure the code will always pick the first one it sees. You could also try searching through IF-MIB::ifName and IF-MIB::ifAlias to see if there's a unique string.

                              Comment

                              Working...