Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peteris
    Member
    • Feb 2010
    • 89

    #91
    I downloaded SNMPv2-SMI.mib from internet

    But still there is an error:

    Attempt to define a root oid (iso): At line 9 in /usr/share/snmp/mibs/SNMPv2-SMI.mib

    Comment

    • jhgrc
      Member
      • Jun 2009
      • 52

      #92
      Originally posted by Peteris
      I downloaded SNMPv2-SMI.mib from internet

      But still there is an error:
      It seems that your SNMP mib tries to define new root. So the SNMPv2 MIB probably is not correct one? Are you using net-snmp, try mibs from there.

      --

      MIBs are are a tree structure. SNMPv2-SMI.mib has it own dependencies. So you need to download all MIBs. And some other MIB probably defines root OID, so your installed MIB cannot do it.
      Last edited by jhgrc; 10-03-2010, 13:59.

      Comment

      • odium4u
        Junior Member
        • Sep 2008
        • 20

        #93
        This addon works great, thank you for making this.

        I request only one feature if possible; a toggle for SNMP v2c or v1 queries. There are many devices that currently still use v1 as default/standard, NetApp filers being one.

        Thanks and keep up the great work.

        Comment

        • jscleveland
          Junior Member
          • Feb 2010
          • 1

          #94
          Unknown Object Identifier (Index out of range: 0

          .iso.org.dod.internet.private.enterprises.trango.t bw.m5830sap.su.suInfoTable.suInfoEntry.suRSSIFromS U.0: Unknown Object Identifier (Index out of range: 0 (suID))

          It seems like the '0' on the end of the OID is the problem because walking the OID without the '0' works fine:
          snmpwalk -Os -c <mystring> -v 1 <myIP> 1.3.6.1.4.1.5454.1.20.3.6.1.16
          enterprises.5454.1.20.3.6.1.16.7 = INTEGER: -70
          enterprises.5454.1.20.3.6.1.16.11 = INTEGER: -73
          enterprises.5454.1.20.3.6.1.16.21 = INTEGER: -72
          enterprises.5454.1.20.3.6.1.16.24 = INTEGER: 0

          Any idea why the '0' gets appended?
          Last edited by jscleveland; 09-04-2010, 20:58.

          Comment

          • r0k5t4r
            Member
            • Jun 2009
            • 91

            #95
            How to download the files?

            Hi, this might be a very very stupid question but how can I easily download snmpbuilder? In the text on your page it says unzip snmp_builder.zip. Where is the zip?

            Comment

            • $0s
              Junior Member
              • Apr 2010
              • 9

              #96
              "Download Source" button at the right-top

              Comment

              • r0k5t4r
                Member
                • Jun 2009
                • 91

                #97
                LOL

                Thanks a lot. Was looking for it but couldn't find it.

                Comment

                • $0s
                  Junior Member
                  • Apr 2010
                  • 9

                  #98
                  Hi All!
                  Zabbix 1.8.2 + freebsd 8.0

                  SNMP Builder show MIBs tree, but don't show mib tables.

                  In httpd-error.log:
                  Code:
                  Must have exactly one table name
                  USAGE: snmptable [OPTIONS] AGENT TABLE-OID
                  
                    Version:  5.4.2.1
                    Web:      http://www.net-snmp.org/
                    Email:    [email protected]
                  
                  OPTIONS:
                    -h, --help            display this help message
                   ................................................[all keys for snmptable command]
                  Must have exactly one table name
                  USAGE: snmptable [OPTIONS] AGENT TABLE-OID
                  
                    Version:  5.4.2.1
                    Web:      http://www.net-snmp.org/
                    Email:    [email protected]
                  
                  OPTIONS:
                  In what there can be a problem? Please help!

                  Comment

                  • uweiss
                    Junior Member
                    • Jun 2006
                    • 27

                    #99
                    Great tool! That should be integrated into the core.

                    Just trying it out because i want to monitor a BlackBerry server.

                    Added the BB MIB to the mibs directory and started browsing around. But whenever i click on a value (like the "routerBaseStatsPropertydevicesConnected" you see on the screen shot) i always get a "Wrong Type (should be INTEGER): NULL"

                    Executed snmpwalk from my Zabbix box and i get the correct value:
                    Code:
                    snmpwalk -v2c -c xxxx 172.30.3.4  .1.3.6.1.4.1.3530.6.7.35.20.5.1.4
                    SNMPv2-SMI::enterprises.3530.6.7.35.20.5.1.4.1.14 = INTEGER: 0
                    Don't know if the MIB itself is wrong ore something within snmp_builder.

                    Or is it becuase snmp_builder tries to access:
                    .1.3.6.1.4.1.3530.6.7.35.20.5.1.4.0

                    but the value is here:
                    .1.3.6.1.4.1.3530.6.7.35.20.5.1.4.14

                    Thanks
                    Urs
                    Attached Files

                    Comment

                    • tothz
                      Junior Member
                      • Apr 2010
                      • 7

                      #100
                      menu error

                      Hy

                      I tried to install snmp_builder, but got a following error..If I change label in menu.inc.php to existing label (for example S_LOCALES) it works well...
                      The system zabbix 1.8.2.. Any idea?
                      thanks
                      zoltan
                      Attached Files

                      Comment

                      • asterroid
                        Junior Member
                        • May 2010
                        • 2

                        #101
                        Hi, great stuff.

                        But I have a problem... I install it and when I click "SNMP Builder" of 'Administration Menu', in /var/log/httpd/error_log shows:
                        "PHP Fatal error: Class 'CWidget' not found in /var/www/html/snmp_builder.php on line 293, referer: http://zabbix.xxx.com/snmp_builder.php?sid=0267e50311f5d4ab."

                        Where is CWidget class? What's it?

                        Thanks you for all.

                        Comment

                        • elvar
                          Senior Member
                          • Feb 2008
                          • 226

                          #102
                          Any chance we'll see a version of this released soon which works with 1.8.2? I really like this addon.



                          Thanks!

                          Comment

                          • avtor01
                            Junior Member
                            • May 2010
                            • 5

                            #103
                            Originally posted by $0s
                            Hi All!
                            Zabbix 1.8.2 + freebsd 8.0

                            SNMP Builder show MIBs tree, but don't show mib tables.

                            In httpd-error.log:
                            Code:
                            Must have exactly one table name
                            USAGE: snmptable [OPTIONS] AGENT TABLE-OID
                            
                              Version:  5.4.2.1
                              Web:      http://www.net-snmp.org/
                              Email:    [email protected]
                            
                            OPTIONS:
                              -h, --help            display this help message
                             ................................................[all keys for snmptable command]
                            Must have exactly one table name
                            USAGE: snmptable [OPTIONS] AGENT TABLE-OID
                            
                              Version:  5.4.2.1
                              Web:      http://www.net-snmp.org/
                              Email:    [email protected]
                            
                            OPTIONS:
                            In what there can be a problem? Please help!
                            I had a similar problem. It was connected with the fact that the script snmp_builder.php option to snmptable were listed in the wrong sequence. Verified in:
                            Code:
                            > snmptable -v 2c -c public -M /usr/local/share/snmp/mibs/ -m CISCO-RTTMON-MIB 172.17.10.1 rttMonCtrlOperTable -Ci -CH -Cf \",\"
                            Must have exactly one table name
                            USAGE: snmptable [OPTIONS] AGENT TABLE-OID
                            
                              Version:  5.4.2.1
                              Web:      http://www.net-snmp.org/
                              Email:    [email protected]
                            , but:
                            Code:
                            > snmptable -v 2c -c public -M /usr/local/share/snmp/mibs/ -m CISCO-RTTMON-MIB -Ci -CH -Cf \",\" 172.17.10.1 rttMonCtrlOperTable
                            1","0:0:01:53.85","","0:0:00:00.00","10816","true","false","false","32442","2147483647 seconds","active","false
                            2","0:0:01:53.87","","0:0:00:00.00","10816","false","false","false","100710","2147483647 seconds","active","false
                            3","0:0:01:53.89","","0:0:00:00.00","10816","false","false","false","32143","2147483647 seconds","active","false
                            4","0:0:01:53.91","","0:0:00:00.00","10592","false","false","false","60158","2147483647 seconds","active","false
                            So I changed the line:
                            PHP Code:
                            exec("snmptable -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid -Ci -Ch -Cf \",\""$results); 
                            like so:
                            PHP Code:
                            exec("snmptable -v 2c -c $community -M ".MIBS_ALL_PATH." -Ci -Ch -Cf \",\" -m ALL $server_ip $oid "$results); 
                            , and:
                            PHP Code:
                            exec("snmptable -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid -Ci -CH -Cf \",\""$results); 
                            like so:
                            PHP Code:
                            exec("snmptable -v 2c -c $community -M ".MIBS_ALL_PATH." -Ci -CH -Cf \",\" -m ALL $server_ip $oid "$results); 
                            in file snmp_builder.php (lines 489 and 492). I hope this helps and you

                            PS Sorry for my English - it's all google translate

                            Comment

                            • $0s
                              Junior Member
                              • Apr 2010
                              • 9

                              #104
                              Originally posted by avtor01
                              I hope this helps and you

                              PS Sorry for my English - it's all google translate
                              Great Thanks!!
                              It helps me!

                              Comment

                              • giapnguyen
                                Member
                                • Aug 2009
                                • 33

                                #105
                                Originally posted by elvar
                                Any chance we'll see a version of this released soon which works with 1.8.2? I really like this addon.



                                Thanks!
                                Unfortunately, I've switched my job and don't touch zabbix server any more . But I will try to revise 1.8.2 to help you guys soon.
                                I hope someone adopt the project for me. It really helpful. Some useful features I suggest
                                - Enter a oid to create zabbix item; sometimes you know an oid and don't want to navigate a tree to add new one. SNMPBuild help to convert oid into item automatically.
                                - Search oid by description, oid name so on
                                - Goto mass update after submit items.

                                Comment

                                Working...