Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kelsen
    Junior Member
    • Jan 2013
    • 8

    #361
    I'm receiving this error trying to load BEGEMOT mib.

    Function: get_oid_tree. Command: snmptranslate -Ts -M /usr/local/share/snmp/mibs -m BEGEMOT-PF-MIB. Error: 127. Message:

    snmp_builder 2.

    using the same command on the command line its works.

    Comment

    • patjking
      Junior Member
      • Jun 2012
      • 22

      #362
      Permissions on the file maybe?

      or supporting mibs not in the same directory.

      can you see the mib in the dropdown list??

      Comment

      • kelsen
        Junior Member
        • Jan 2013
        • 8

        #363
        Yes, all mibs are listed.
        chmod 777 doesn't worked.
        All mibs are .txt, is that wrong?

        Comment

        • peter@cloud
          Junior Member
          • Aug 2012
          • 4

          #364
          .txt is fine

          I have all mibs in my system with .txt extensions. works great.
          command line may take the mibs from another location, depending on how that is configured on your system.

          Comment

          • patjking
            Junior Member
            • Jun 2012
            • 22

            #365
            Have you tried

            chown –hR www-data /usr/local/share/snmp/mibs


            www-data being your web user account.


            and check your appache event logs when you load the mib

            Comment

            • Blinkiz
              Junior Member
              • Mar 2011
              • 27

              #366
              Hi
              SNMP Builder is really great.
              May I do a feature request?

              In all MIB files it exist DESCRIPTION that describes snmp item and value. I would like that to be imported into the description of the item in zabbix.

              SNMP Builder already getting information about syntax and other stuff from the MIB, why not also fetch the description field?


              Thanks!
              Last edited by Blinkiz; 31-01-2013, 09:54.

              Comment

              • kelsen
                Junior Member
                • Jan 2013
                • 8

                #367
                Apache error log show :
                "snmptranslate: error while loading shared libraries: libnetsnmp.so.30: cannot open shared object file: No such file or directory"

                But I followed this link http://web.archiveorange.com/archive...ypg6Qne6jc4IfD and seems to be working cause from command line it works.

                root@ubuntukel:/usr/local/share/snmp/mibs# ldd `which snmpget`
                linux-gate.so.1 => (0xb7772000)
                libnetsnmp.so.30 => /usr/local/lib/libnetsnmp.so.30 (0xb76a5000)

                Comment

                • Blinkiz
                  Junior Member
                  • Mar 2011
                  • 27

                  #368
                  Kelsen,
                  Try to run the command with the same permission as apache.
                  Something like su www-data -c "ldd `which snmpget`"
                  Do you get the error?

                  Comment

                  • kelsen
                    Junior Member
                    • Jan 2013
                    • 8

                    #369
                    There is no error.

                    root@ubuntukel:/usr/local/share/snmp/mibs# su www-data -c "ldd `which snmpget`"
                    linux-gate.so.1 => (0xb7722000)
                    libnetsnmp.so.30 => /usr/local/lib/libnetsnmp.so.30 (0xb7655000)

                    Edit: copiyng libnetsnmp.so.30 to /usr/lib doesn't show the error anymore, but doensn't load the mib tree either.
                    Last edited by kelsen; 31-01-2013, 15:49.

                    Comment

                    • Blinkiz
                      Junior Member
                      • Mar 2011
                      • 27

                      #370
                      Am sorry to hear Kelsen that you have problem with SNMP Builder. I can not help you, I do not know the solution.
                      The troubleshooting basics says you need to simplify the problem so it gets easier to solve.
                      I would recommend creating a little PHP script that do what SNMP Builder to.
                      Code:
                      $cmd = "snmptranslate -Td -OS -M ".MIBS_ALL_PATH." -m ALL $oid";
                      This is one example what SNMP Builder is running with a exec() that involves snmptranslate. Create a little PHP script that does something similar.
                      Last edited by Blinkiz; 31-01-2013, 16:24.

                      Comment

                      • kelsen
                        Junior Member
                        • Jan 2013
                        • 8

                        #371
                        I just wanted to use this to simplify the work, so,if it won't work, I think i won't need to do an script.
                        Anyway, thank you!

                        Comment

                        • G3r0m3G
                          Junior Member
                          • Dec 2012
                          • 16

                          #372
                          Hello,

                          I have same problem like Todd :



                          One difference, the "Information" table is populated correctly but not "Item list"

                          In addition, when I click on an entry in OID Tree I have this error message in httpd error log :

                          No log handling enabled - turning on stderr logging
                          .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.0: Unknown Object Identifier (Index out of range: 0 (ifIndex))
                          Error in packet
                          Reason: (noSuchName) There is no such variable name in this MIB.
                          Failed object: IF-MIB::ifEntry.0
                          Zabbix 2.0.4 on CentOS 6.3 x64 with snmp_builder package for 2.0

                          Do you help me ?

                          Comment

                          • churnd
                            Junior Member
                            • Sep 2012
                            • 3

                            #373
                            I'm having this problem:

                            # patch -p1 < /root/snmpbuilder/atimonin-snmpbuilder-27e161b/snmpbuilder-2.0.patch
                            patching file include/menu.inc.php
                            Hunk #1 succeeded at 214 (offset -4 lines).
                            patching file include/page_header.php
                            Hunk #1 succeeded at 149 (offset 1 line).
                            patching file jsLoader.php
                            Hunk #1 FAILED at 47.
                            1 out of 1 hunk FAILED -- saving rejects to file jsLoader.php.rej

                            *edit*

                            I just patched jsLoader.php manually & that seemed to work OK.
                            Last edited by churnd; 14-03-2013, 17:14.

                            Comment

                            • iamlearning
                              Junior Member
                              • Jun 2013
                              • 4

                              #374
                              snmpbuilder.diff.gz came form where

                              Hello Sire and other I just jump into this and bit I start follwo Sire post #231 downlaod zabbix-2.0.0-snmpbuilder.patch.gz for my 2.0.6 zabbix installation . how do i get snmpbuilder.diff.gz file to proceed .
                              also i did patched with diffrent method i found https://github.com/atimonin/snmpbuilder but in the builder OID tree was empty MIB was showing the direcoty .

                              Please any one can help me and clear this


                              Thanks in advance

                              Comment

                              • Martins
                                Junior Member
                                • May 2012
                                • 25

                                #375
                                Last week I install snmp builder with your second option - https://github.com/atimonin/snmpbuilder

                                And all goes well, except, that dist_name should be distname at point 2.
                                What errors is in your webserver error log?

                                Maybe you should change your mibs directory in snmp_builder.php.
                                Line 44:
                                $mibs_dir = '/usr/share/snmp/mibs';

                                Comment

                                Working...