Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iamlearning
    Junior Member
    • Jun 2013
    • 4

    #376
    password for sudo -s -u www-data

    HI Martin
    thanks for your quick response , i tried same steps at GitHub the link you sent, but when run sudo -s -u www-data asking for password i could not resolve that but I used different and i did complete the patch even i change the path still i am getting the Paths in the Mib. I iwll check the log but in the mean time if you can help me to resolve the password for www-data will be great.


    thanks in advance

    Regards

    Comment

    • iamlearning
      Junior Member
      • Jun 2013
      • 4

      #377
      Zabbix 2.0.6 --- Please Help

      HI I have patched successfully but under SNMP builder in the MIB: area i only see the directory , explained in attachments
      where i am missing !!!!!!
      web server log is empty
      please help too much

      Thanks

      FIXED :For me in order to populate the MIB: list i have to move all MIB to mibs root directory for me that is /usr/share/mibs and add an extension .mib with all files and Boom It worked .
      but Question Here : do i have to move all mibs files from all folder to mibs root folder ? some of them has same same like IF-MIB in cisco and ietf please advise!!!!!!!!

      thanks in advance
      Attached Files
      Last edited by iamlearning; 12-06-2013, 23:09. Reason: FIxed

      Comment

      • iamlearning
        Junior Member
        • Jun 2013
        • 4

        #378
        ERROR in web server log

        Please any have idea i am getting following web server error messages.
        i have OID tree
        following is just an example I have same message in thousands in web server log file


        Code:
         
        Bad operator (INTEGER): At line 73 in /usr/share/mibs/SNMPv2-PDU.mib
        Cannot find module (IANA-MAU-MIB): At line 15 in /usr/share/mibs/MAU-MIB.mib
        Did not find 'IANAifMauTypeListBits' in module #-1 (/usr/share/mibs/MAU-MIB.mib)
        Did not find 'IANAifMauMediaAvailable' in module #-1 (/usr/share/mibs/MAU-MIB.mib)
        Did not find 'IANAifMauAutoNegCapBits' in module #-1 (/usr/share/mibs/MAU-MIB.mib)
        Did not find 'IANAifJackType' in module #-1 (/usr/share/mibs/MAU-MIB.mib)
        Cannot find module (IANATn3270eTC-MIB): At line 15 in /usr/share/mibs/TN3270E-RT-MIB.mib
        Did not find 'IANATn3270eAddrType' in module #-1 (/usr/share/mibs/TN3270E-RT-MIB.mib)
        Did not find 'IANATn3270eAddress' in module #-1 (/usr/share/mibs/TN3270E-RT-MIB.mib)
        Cannot find module (IANA-RTPROTO-MIB): At line 18 in /usr/share/mibs/PIM-STD-MIB.mib
        Did not find 'IANAipRouteProtocol' in module #-1 (/usr/share/mibs/PIM-STD-MIB.mib)
        Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
        Undefined identifier: mib-2 near line 18 of /usr/share/mibs/IPATM-IPMC-MIB.mib
        Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB): At line 16 in /usr/share/mibs/NHRP-MIB.mib
        Did not find 'AddressFamilyNumbers' in module #-1 (/usr/share/mibs/NHRP-
        after downloading Cisco MIBS i am getting following error too in apache2 log please any IDEA

        Code:
        Cannot adopt OID in CISCO-PRODUCTS-MIB: ciscoTrouter ::= { ciscoProducts 3 }
        Cannot adopt OID in CISCO-PRODUCTS-MIB: ciscoTerminalServer ::= { ciscoProducts 2 }
        Cannot adopt OID in CISCO-PRODUCTS-MIB: ciscoGatewayServer ::= { ciscoProducts 1 }
        Cannot adopt OID in CISCO-PRODUCTS-MIB: ciscoProductsMIB ::= { ciscoModules 2 }
        No log handling enabled - turning on stderr logging
        Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2195 in /usr/share/mibs/IPSEC-SPD-MIB.mib
        Undefined OBJECT-GROUP (diffServMultiFieldClfrNextFree): At line 2157 in /usr/share/mibs/IPSEC-SPD-MIB.mib
        Undefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup): At line 2062 in /usr/share/mibs/IPSEC-SPD-MIB.mib
        Bad operator (INTEGER): At line 73 in /usr/share/mibs/SNMPv2-PDU.mib
        MIB search path: /usr/share/mibs
        Cannot find module (CISCO-SMI): At line 18 in /usr/share/mibs/CISCO-PRODUCTS-MIB.mib
        Did not find 'ciscoModules' in module #-1 (/usr/share/mibs/CISCO-PRODUCTS-MIB.mib)
        Did not find 'ciscoProducts' in module #-1 (/usr/share/mibs/CISCO-PRODUCTS-MIB.mib)
        Unlinked OID in CISCO-PRODUCTS-MIB: ciscoNXNAM1 ::= { ciscoProducts 1865 }
        Undefined identifier: ciscoProducts near line 1665 of /usr/share/mibs/CISCO-PRODUCTS-MIB.mib
        Unlinked OID in CISCO-PRODUCTS-MIB: ciscoCDScde2502s5 ::= { ciscoProducts 1863 }
        Undefined identifier: ciscoProducts near line 1664 of /usr/share/mibs/CISCO-PRODUCTS-MIB.mib
        Unlinked OID in CISCO-PRODUCTS-MIB: ciscoRAIE1783ZMS8T8E2TGP ::= { ciscoProducts 1850 }
        Undefined identifier: ciscoProducts near line 1663 of /usr/share/mibs/CISCO-PRODUCTS-MIB.mib
        SOLVED
        I just removed all the mibs from the default directory and uploaded manually form the upload option in snmp builder and every thing work great no a single error in web server log

        Actually i followed

        to upload cisco mibs for some reason it didn't work form me then i follow Cisco upload instruction and it worked

        I have question if some one can help me , in my case i have to get info about Cisco 1250 AP active Client so i need to add CISCO-DOT11-ASSOCIATION-MIB and i followed instruction @


        before i have to upload CISCO-DOT11-ASSOCIATION-MIB
        i have to upload 12 MIB files as mentioned on cisco site, in future if i have to add more do i have to upload that many dependencies or there is other easy way to upload
        please if you can clear this concept for me will be highly Appreciated.

        At the end i would Say Snmp_builder is a great add on and Kudos the the team who made it .
        Last edited by iamlearning; 13-06-2013, 23:27. Reason: Solved

        Comment

        • Spoonman
          Member
          • Aug 2013
          • 45

          #379
          snmpbuilder for Appliance 2.0.8

          Hi,

          can someone please tell me in simple steps how to install snmpbuilder2.x into the ZABBIX 2.0.8 appliance ......
          It worked fine in 1.8.
          Now in 2.0.8 I get an empty OID tree (I followed all the steps mentioned in this thread).
          I'm using the OpenSuse ready-made appliance, not CentOS, Debian or Ubuntu.

          Edit:
          When I do a "inspect element" in my browser of the empty OID Tree, these 2 errors are shown:
          1. Uncaught ReferenceError: DynTable is not defined
          2. Uncaught TypeError: Object [object Object] has no method 'jstree'
          Last edited by Spoonman; 26-08-2013, 17:05. Reason: extra info

          Comment

          • Patjomkin
            Member
            • Nov 2012
            • 50

            #380
            Hello!
            I have problem:

            ccitt
            ccitt OBJECT-TYPE
            -- FROM #-1
            ::= { 0 }

            Warning. Incorrect value for "MIB"

            Сan see screenshot:


            Mibs for my device:



            Zabbix 2.0.8
            (snmpbuilder + patch 2.0.5)

            May be anybody can hep me?
            Last edited by Patjomkin; 09-09-2013, 13:05.

            Comment

            • janosch
              Junior Member
              • Nov 2013
              • 5

              #381
              Has anyone already tested the SNMP Builder on Zabbix 2.2.0? Does it work properly or have changes to be made to get it run?

              Comment

              • Erikih
                Junior Member
                • Nov 2013
                • 2

                #382
                Originally posted by janosch
                Has anyone already tested the SNMP Builder on Zabbix 2.2.0? Does it work properly or have changes to be made to get it run?
                This is the farest as i can get on 2.2.0

                Click image for larger version

Name:	zabbix_snmpbuilder.jpg
Views:	1
Size:	50.3 KB
ID:	312391

                It would be nice if snmp builder works on 2.2.0 as you can monitor Virtual machines also. Tried a fresh instal of debian + zabbix 2.2.0 but still the same. So i'm thinking about uninstalling zabbix and install 2.0.9 as snmp builder works much better on that build.

                Comment

                • Sviridoff
                  Junior Member
                  • Dec 2013
                  • 1

                  #383
                  SNMP builder on 2.2.0

                  Originally posted by Erikih
                  This is the farest as i can get on 2.2.0

                  [ATTACH]6370[/ATTACH]

                  It would be nice if snmp builder works on 2.2.0 as you can monitor Virtual machines also. Tried a fresh instal of debian + zabbix 2.2.0 but still the same. So i'm thinking about uninstalling zabbix and install 2.0.9 as snmp builder works much better on that build.
                  Hi All! I have the same problem on 2.2.0. Does anyone have any how to fix this?

                  Comment

                  • nefarioustaco
                    Junior Member
                    • Jan 2014
                    • 1

                    #384
                    Mostly working in 2.2.1 -

                    I have managed to get this working by fixing up the code - Import MIB still fails but I can browse SNMP mibs and use this to add items to templates now (as it was in 1.8.x) There have been several API changes in Zabbix since the original release which broke the snmp_builder

                    Start with this version installed with your Zabbix setup - instructions are included - https://github.com/atimonin/snmpbuilder

                    From Zabbix root:
                    The following files have to be fixed to get this to work:
                    /include/menu.inc.php
                    /include/page_header.php
                    /snmp_builder.php
                    /jsLoader.php

                    The diffs including my fixes can be viewed at http://pastebin.com/iXYsZBVY

                    I hope this helps others out, just make sure you start with the snmp builder 2.0.5 from github and then edit the files I indicated and add my fixes (or use patch)

                    Cheers,
                    nTaco

                    Comment

                    • DanPolimi
                      Junior Member
                      • Jan 2014
                      • 1

                      #385
                      It works!

                      Great! It works for me on Zabbix ver 2.2.1...
                      Many thanks!

                      Originally posted by nefarioustaco
                      I have managed to get this working by fixing up the code - Import MIB still fails but I can browse SNMP mibs and use this to add items to templates now (as it was in 1.8.x) There have been several API changes in Zabbix since the original release which broke the snmp_builder

                      Start with this version installed with your Zabbix setup - instructions are included - https://github.com/atimonin/snmpbuilder

                      From Zabbix root:
                      The following files have to be fixed to get this to work:
                      /include/menu.inc.php
                      /include/page_header.php
                      /snmp_builder.php
                      /jsLoader.php

                      The diffs including my fixes can be viewed at http://pastebin.com/iXYsZBVY

                      I hope this helps others out, just make sure you start with the snmp builder 2.0.5 from github and then edit the files I indicated and add my fixes (or use patch)

                      Cheers,
                      nTaco

                      Comment

                      • sia
                        Junior Member
                        • Dec 2013
                        • 3

                        #386
                        Help

                        Originally posted by DanPolimi
                        Great! It works for me on Zabbix ver 2.2.1...
                        Many thanks!
                        Good day! Can you help me install snmp builder for zabbix 2.2.1 on centos 6.4? could you please send me the user manual for installation?
                        Thank's!

                        Comment

                        • neo32
                          Senior Member
                          • Nov 2013
                          • 149

                          #387
                          Originally posted by nefarioustaco
                          I have managed to get this working by fixing up the code - Import MIB still fails but I can browse SNMP mibs and use this to add items to templates now (as it was in 1.8.x) There have been several API changes in Zabbix since the original release which broke the snmp_builder

                          Start with this version installed with your Zabbix setup - instructions are included - https://github.com/atimonin/snmpbuilder

                          From Zabbix root:
                          The following files have to be fixed to get this to work:
                          /include/menu.inc.php
                          /include/page_header.php
                          /snmp_builder.php
                          /jsLoader.php

                          The diffs including my fixes can be viewed at http://pastebin.com/iXYsZBVY

                          I hope this helps others out, just make sure you start with the snmp builder 2.0.5 from github and then edit the files I indicated and add my fixes (or use patch)

                          Cheers,
                          nTaco
                          Many Many Thanx!!! Your post is very important! Thanx for your help! ))

                          Comment

                          • Lizard
                            Junior Member
                            • Feb 2014
                            • 2

                            #388
                            MIB Upload

                            To fix the "Import MIB" just takes a few changes.

                            Go to /include/views/administration.snmp_builder.php

                            Change line 36 from:
                            $mibForm->addItem(makeFormFooter(array(new CSubmit('import', _('Import'))), new CButtonCancel()));
                            to:
                            $mibForm->addItem(makeFormFooter(new CSubmit('import', _('Import')),new CButtonCancel()));

                            Comment

                            • Spoonman
                              Member
                              • Aug 2013
                              • 45

                              #389
                              Many thanks for the research !
                              Can someone please make a fresh and complete 2.2.x snmpbuilder from all the different modifcations made by different people ?
                              Or better....... can it be merged into the next Zabbix release ?
                              Last edited by Spoonman; 20-02-2014, 12:45.

                              Comment

                              • whitevv
                                Junior Member
                                • Feb 2014
                                • 6

                                #390
                                MIB import error

                                CentOS+zabbix 2.2.1 + patch 2.2.x

                                when i try import MIB, i get error

                                Fatal error: Call to a member function useJQueryStyle() on a non-object in /usr/share/zabbix/include/html.inc.php on line 539
                                Last edited by whitevv; 26-02-2014, 14:05.

                                Comment

                                Working...