Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sparky
    Member
    • Jun 2010
    • 54

    #121
    Hi Guys

    I have made the suggested changes to both ;files, but I'm now receiving the error 'TafelTree is undefined'

    I've checked the changes a few times and they are correct. I will admit I understand nothing about what is actually going on in this code but could someone point me in the right direction?

    I'm guessing there is a field 'TafelTree' that the code is seeing, but does not know what to do with it because I've left it out somewhere...

    Comment

    • Sparky
      Member
      • Jun 2010
      • 54

      #122
      Ok, so I managed to solve this. For some reason I had to put it in this order.
      DynTable.js
      snmp_builder.js
      Tree.js

      Comment

      • Axilla
        Senior Member
        • Aug 2010
        • 130

        #123
        I'm trying to get this working... I'm trying to apply the patch for 1.8.2 but I don't see a jsLoader.php ...

        Where can I find it? I'm also getting this error.

        Cannot find module (SNMPv2-SMI): At line 149 in /usr/local/share/zabbix/snmp_builder/mibs/powernet401.mib

        Any help appreciated.

        Comment

        • Axilla
          Senior Member
          • Aug 2010
          • 130

          #124
          nm, i think i figured it out.

          Comment

          • Axilla
            Senior Member
            • Aug 2010
            • 130

            #125
            Originally posted by Axilla
            nm, i think i figured it out.
            I figured out why I was getting that error... Cleared it up.. but I can't get SNMP Builder to load the .MIB files...

            If I select one everything shows up blank... I don't have jsLoader.php --- any help appreciated

            Comment

            • Peteris
              Member
              • Feb 2010
              • 89

              #126
              Web site is down, where can I get latest version of this tool?

              Comment

              • akitogo
                Junior Member
                • Sep 2010
                • 3

                #127
                Download snmp_builder

                you can download it at: http://github.com/giapnguyen/snmpbuilder

                Comment

                • Peteris
                  Member
                  • Feb 2010
                  • 89

                  #128
                  Thank you! Hope it works on 1.8.3.

                  Comment

                  • akitogo
                    Junior Member
                    • Sep 2010
                    • 3

                    #129
                    Originally posted by Axilla
                    I figured out why I was getting that error... Cleared it up.. but I can't get SNMP Builder to load the .MIB files...

                    If I select one everything shows up blank... I don't have jsLoader.php --- any help appreciated
                    Hi,

                    we are running zabbix 1.8.2 on CentOs. I had several problems to get it working:

                    1. correct path to JS files:
                    Code:
                    $page['scripts'] = array('../snmp_builder/Tree.js','../snmp_builder/snmp_builder.js','../snmp_builder/DynTable.js','scriptaculous/effects.js','scriptaculous/dragdrop.js');
                    Please use Firefox and Firebug to verify that JS files are loading correctly

                    2. I found in /var/log/http/zabbix-error_log
                    Code:
                    PHP Fatal error:  Call to undefined function json_encode() in /var/www/html/zabbix/snmp_builder.php
                    So I had to
                    Code:
                    yum -y install php-pecl-json
                    don't forget to restart httpd

                    3. The a part of the tree showed up but I had an error with snmptranslate which was installed but could not be executed, so I had to change all exex paths to
                    Code:
                    /usr/local/bin/snmptranslate
                    Last edited by akitogo; 02-09-2010, 09:35.

                    Comment

                    • akitogo
                      Junior Member
                      • Sep 2010
                      • 3

                      #130
                      Originally posted by Peteris
                      Thank you! Hope it works on 1.8.3.
                      Check this thread, there are some changes to JS for 1.8.3

                      Comment

                      • dudink
                        Junior Member
                        • Aug 2009
                        • 20

                        #131
                        Originally posted by akitogo
                        Check this thread, there are some changes to JS for 1.8.3
                        I have zabbix 1.8.3. If you select any MIB is issued a blank screen. It seems in this version of SNMP Builder does not work

                        Comment

                        • danrog
                          Senior Member
                          • Sep 2009
                          • 164

                          #132
                          The fix for this is a few posts back.

                          Comment

                          • scatmanoleg
                            Junior Member
                            • Oct 2010
                            • 5

                            #133
                            Originally posted by akitogo
                            Hi,

                            we are running zabbix 1.8.2 on CentOs. I had several problems to get it working:

                            1. correct path to JS files:
                            Code:
                            $page['scripts'] = array('../snmp_builder/Tree.js','../snmp_builder/snmp_builder.js','../snmp_builder/DynTable.js','scriptaculous/effects.js','scriptaculous/dragdrop.js');
                            Please use Firefox and Firebug to verify that JS files are loading correctly

                            2. I found in /var/log/http/zabbix-error_log
                            Code:
                            PHP Fatal error:  Call to undefined function json_encode() in /var/www/html/zabbix/snmp_builder.php
                            So I had to
                            Code:
                            yum -y install php-pecl-json
                            don't forget to restart httpd

                            3. The a part of the tree showed up but I had an error with snmptranslate which was installed but could not be executed, so I had to change all exex paths to
                            Code:
                            /usr/local/bin/snmptranslate
                            we are running zabbix 1.8.3 on OpenSUSE (Zabbix Appliance on VMWare)
                            we do this, but MIB tree is empty.
                            on /var/log/apache2/error_log - no errors
                            Click image for larger version

Name:	zabbix.jpg
Views:	1
Size:	38.5 KB
ID:	309168

                            Comment

                            • dudink
                              Junior Member
                              • Aug 2009
                              • 20

                              #134
                              I confirm, I have the same.
                              /var/log/httpd-error.log no errors.

                              FreeBSD 8.1-RELEASE, Zabbix 1.8.3.
                              Last edited by dudink; 07-10-2010, 10:32.

                              Comment

                              • TranceMaker
                                Member
                                • Nov 2008
                                • 31

                                #135
                                deleted X_x
                                Last edited by TranceMaker; 15-10-2010, 12:01.

                                Comment

                                Working...