Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mario5046
    Junior Member
    • Nov 2014
    • 2

    #451
    Ok. I will try your method.
    Yes. Zabbix 2.4 is ok

    Comment

    • spaww
      Senior Member
      Zabbix Certified Specialist
      • May 2009
      • 178

      #452
      All,

      I found the bug about MIB Import.
      Is only update Zabbix-Extras and SNMP-Builder import process will work again in Zabbix 2.4.

      Special Thanks to Theo and Jader for help-me in debug !
      Adail Horst
      OCA/OCP - Oracle Application Server
      ZABBIX Certified Specialist
      http://www.spinola.net.br/blog (Blog sobre Zabbix e tecnologia)

      Comment

      • mmidgett
        Junior Member
        • Aug 2012
        • 14

        #453
        Im getting this error after running the zabbix extra script on 2.2.1

        Function: get_oid_tree. Command: /snmptranslate -Ts -M /usr/share/zabbix/extras/snmp-builder/mibs -m MIKROTIK-MIB. Error: 127. Message:

        Its the / in front that is keeping it from working. I can run the command without the /

        Comment

        • spaww
          Senior Member
          Zabbix Certified Specialist
          • May 2009
          • 178

          #454
          Originally posted by mmidgett
          Im getting this error after running the zabbix extra script on 2.2.1

          Function: get_oid_tree. Command: /snmptranslate -Ts -M /usr/share/zabbix/extras/snmp-builder/mibs -m MIKROTIK-MIB. Error: 127. Message:

          Its the / in front that is keeping it from working. I can run the command without the /
          Mmidgett,

          Zabbix Extras 2.1 is for use with Zabbix 2.4... not Zabbix 2.2... the name of some funcions are changed since 2.4...
          Adail Horst
          OCA/OCP - Oracle Application Server
          ZABBIX Certified Specialist
          http://www.spinola.net.br/blog (Blog sobre Zabbix e tecnologia)

          Comment

          • OriginNG
            Junior Member
            • Dec 2014
            • 15

            #455
            Originally posted by mmidgett
            Im getting this error after running the zabbix extra script on 2.2.1

            Function: get_oid_tree. Command: /snmptranslate -Ts -M /usr/share/zabbix/extras/snmp-builder/mibs -m MIKROTIK-MIB. Error: 127. Message:

            Its the / in front that is keeping it from working. I can run the command without the /
            Had the same problem and had net-snmp-utils not installed before I installed snmpbuilder. Fixed the issue by reinstalling snmpbuilder after I installed net-snmp-utils.

            Joop

            Comment

            • AlexYoung
              Member
              • Jul 2013
              • 37

              #456
              Hi, I'm using 2.4 and getting nothing in my OID Tree and i've enabled error logging and it's saying

              PHP Code:
              Fatal error: Class 'JSON' not found in /usr/share/zabbix/snmp_builder.php on line 706 
              the code is

              PHP Code:
               // Javascript GUI init
                  
              if ($mib)
                  {
                      
              $oid_tree get_oid_tree($mib);
                      
                      
              $json = new CJSON(); 

              Comment

              • donb
                Junior Member
                • Feb 2015
                • 2

                #457
                MIB tree works, no items or oid values in main screen...

                I have the same problem, where I cannot see or add the items in.. I am able to view the MiB tree.. but that's pretty useless if you cant import to template..

                CO-IP-IF-MIB: ciscoIPIfMIBCompliance1 ::= { ciscoIPIfMIBCompliances 2 }
                Cannot adopt OID in CISCO-IP-IF-MIB: ciscoIPIfMIBCompliance ::= { ciscoIPIfMIBCompliances 1 }
                Cannot adopt OID in CISCO-MAC-NOTIFICATION-MIB: ciscoMacNotificationMIBObjects ::= { ciscoMacNotificationMIB 1 }
                Cannot adopt OID in CISCO-MAC-NOTIFICATION-MIB: cmnMIBNotificationPrefix ::= { ciscoMacNotificationMIB 2 }
                Cannot adopt OID in CISCO-MAC-NOTIFICATION-MIB: cmnMIBConformance ::= { ciscoMacNotificationMIB 3 }
                Cannot adopt OID in CISCO-MAC-NOTIFICATION-MIB: cmnMIBCompliances ::= { cmnMIBConformance 1 }
                Cannot adopt OID in CISCO-MAC-NOTIFICATION-MIB: cmnMIBGroups ::= { cmnMIBConformance 2 }


                Anyone able to help with this?

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #458
                  for the record, https://www.zabbix.org/wiki/Snmp_builder tries to document how to get it running on different versions of zabbix, but it needs some help
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • ciconet
                    Junior Member
                    • Feb 2015
                    • 15

                    #459
                    Originally posted by AlexYoung
                    Hi, I'm using 2.4 and getting nothing in my OID Tree and i've enabled error logging and it's saying

                    PHP Code:
                    Fatal error: Class 'JSON' not found in /usr/share/zabbix/snmp_builder.php on line 706 
                    the code is

                    PHP Code:
                     // Javascript GUI init
                        
                    if ($mib)
                        {
                            
                    $oid_tree get_oid_tree($mib);
                            
                            
                    $json = new CJSON(); 

                    Hi Alex

                    Are you solved this issue ?
                    I have the same....

                    Comment

                    • makemeasandwich
                      Member
                      • Apr 2015
                      • 34

                      #460
                      any news on this topic ?

                      Comment

                      • spaww
                        Senior Member
                        Zabbix Certified Specialist
                        • May 2009
                        • 178

                        #461
                        Originally posted by makemeasandwich
                        any news on this topic ?
                        The version with zabbix extras (for zabbix 2.4) works fine !
                        Adail Horst
                        OCA/OCP - Oracle Application Server
                        ZABBIX Certified Specialist
                        http://www.spinola.net.br/blog (Blog sobre Zabbix e tecnologia)

                        Comment

                        • makemeasandwich
                          Member
                          • Apr 2015
                          • 34

                          #462
                          Originally posted by spaww
                          The version with zabbix extras (for zabbix 2.4) works fine !

                          Yes the installation works. But the whole function about it doesnt't. So that its useless =( you cannot view anything.

                          Here is what I mean:



                          and the mib is not broken if I view it in ireasoning mib browser it works just fine.

                          Comment

                          • spaww
                            Senior Member
                            Zabbix Certified Specialist
                            • May 2009
                            • 178

                            #463
                            Originally posted by makemeasandwich
                            Yes the installation works. But the whole function about it doesnt't. So that its useless =( you cannot view anything.

                            Here is what I mean:



                            and the mib is not broken if I view it in ireasoning mib browser it works just fine.
                            makemeasandwich... works fine... I use this yesterday without problems...
                            what is your enviroment ? OS ? Install from sources or from packages ?
                            Adail Horst
                            OCA/OCP - Oracle Application Server
                            ZABBIX Certified Specialist
                            http://www.spinola.net.br/blog (Blog sobre Zabbix e tecnologia)

                            Comment

                            • makemeasandwich
                              Member
                              • Apr 2015
                              • 34

                              #464
                              Originally posted by spaww
                              makemeasandwich... works fine... I use this yesterday without problems...
                              what is your enviroment ? OS ? Install from sources or from packages ?
                              hello,

                              can you show me a screenshot ? Im running ubuntu 14.04 LTS . Zabbix installed from Packages.

                              Thanks for the help!

                              Kind regards,

                              makemeasandwich

                              Comment

                              • makemeasandwich
                                Member
                                • Apr 2015
                                • 34

                                #465
                                Hello,

                                this is what I mean. This is a standard MIB that was included in extras.

                                I compared the mib with another mib browser.

                                The one from the zabbix add in doesn't show the OID's also the tree isn't displayed correctly.










                                Kind regards,

                                makemeasandwich

                                Comment

                                Working...