Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prostrelov
    Senior Member
    • May 2012
    • 115

    #301
    patjking thx. it's work.

    Comment

    • zabbixx
      Member
      • Jul 2012
      • 71

      #302
      JS Error

      Hello all,
      am a nooby at zabbix and i try to setup some devices for testing..
      i have some mib files and i want to use the snmp_builder its a nice tool.

      @Sire
      thx for the patch file

      I have just downloaded the source files from zabbix (clean installation zabbix 2.0.1)

      but i get JS error (browser console) after i choose a mib in the dropdownmenu of the snmpbuilder, AND I can't see the tree on the left side..



      Code:
      [13:01:13.365] DynTable is not defined @ http://localhost/zabbix/snmp_builder.php:83
      [13:01:13.446] j("#oidtree").jstree is not a function @ http://localhost/zabbix/snmp_builder.php:72

      I do not undertand how the CMS of zabbix works but the DynTable.js should be already included...

      looking an the Code line of snmp_builder.php:83

      Code:
      // ]]></script><script type="text/javascript">// <![CDATA[
      
      			var oidview = new DynTable('oidview',{'headers' : ['OID Name','Type Of Information','Value']});
      			var itemlist = new DynTable('itemlist',{'headers' : ['Description','Type Of Information','Data type','Units','Custom multiplier','Delta'], 'observer' : {'tr': onClickItem}});
      		
      // ]]
      how can i fix this ?

      reg. zabbixx
      Last edited by zabbixx; 27-07-2012, 16:18.

      Comment

      • zabbixx
        Member
        • Jul 2012
        • 71

        #303
        @godfader
        have you fix the empty tree problem?

        Comment

        • patjking
          Junior Member
          • Jun 2012
          • 22

          #304
          Originally posted by zabbixx
          @godfader
          have you fix the empty tree problem?
          Not for zabbixx

          Comment

          • godfader
            Junior Member
            • Jul 2012
            • 9

            #305
            yes i did, you have to rename all the mibs to have an extension .mib

            Comment

            • patjking
              Junior Member
              • Jun 2012
              • 22

              #306
              @zabbixx Did you chown -hR www-data /var/www/zabbix ?

              and make sure Dyntable.js is in /var/www/zabbix/js/snmp_builder

              Comment

              • maruscya
                Senior Member
                Zabbix Certified Specialist
                • Jul 2007
                • 129

                #307
                Hello boys !!!

                Do you know if this tool works with Zabbix 2.0.x ?

                Comment

                • patjking
                  Junior Member
                  • Jun 2012
                  • 22

                  #308
                  I have just installed on 2.0.2

                  Comment

                  • zabbixx
                    Member
                    • Jul 2012
                    • 71

                    #309
                    Originally posted by patjking
                    @zabbixx Did you chown -hR www-data /var/www/zabbix ?

                    and make sure Dyntable.js is in /var/www/zabbix/js/snmp_builder
                    Hello patjking.
                    yes i change the owner of the zabbix path to www-data
                    Code:
                    admin@linuxBox:/usr/share/zabbix$ ls -als ./
                    insgesamt 1800
                      4 drwxr-xr-x  12 www-data root   4096 Jul 31 14:16 .
                     12 drwxr-xr-x 296 root     root  12288 Jul 26 13:23 ..
                      8 -rwxr-xr-x   1 www-data root   7344 Jul 25 14:37 acknow.php
                     20 -rwxr-xr-x   1 www-data root  17373 Jul 25 14:37 actionconf.php
                      8 -rwxr-xr-x   1 www-data root   5862 Jul 25 14:37 adm.gui.php
                      4 -rwxr-xr-x   1 www-data root   3434 Jul 25 14:37 adm.housekeeper.php
                      8 -rwxr-xr-x   1 www-data root   5404 Jul 25 14:37 adm.iconmapping.php
                      8 -rwxr-xr-x   1 www-data root   5422 Jul 25 14:37 adm.images.php
                      8 -rwxr-xr-x   1 www-data root   6276 Jul 25 14:37 adm.macros.php
                    .
                    .
                    .
                    DynTable.js is already in zabbix root dir, in zabbix/js dir, and in zabbix/snmp_builder dir...
                    but jsloader.php still does not load the files...

                    you have allready installed this plugin on zabbix 2.0.2 ))
                    from wicht directory do you aplay the patch? the patchfile creat this *.js files in the same directory how the patch file it self.


                    ok i try now the clear installation of this plugin on zabbix 2.0.2 and i hope it works ))

                    Comment

                    • patjking
                      Junior Member
                      • Jun 2012
                      • 22

                      #310
                      I opened the patch file and find replaced on zabbix-2.0.0 with zabbix-2.0.2 then saved patch.

                      I ran the patch from my Downloads/zabbix-2.0.2 folder after untaring zabbix and prior to running ./configure.

                      Comment

                      • zabbixx
                        Member
                        • Jul 2012
                        • 71

                        #311
                        hmm ok ))
                        i pacht after configure....

                        the patch file was directly in the root directory of the zabbix www.

                        the patch file creates some *.js. files but the location of this is wrong, a have take a look to the patchfile where the *.js files are listen... from there i got the info where to put the files

                        Code:
                        +++ zabbix/jsLoader.php	2012-04-13 11:47:51.000000000 +0400
                        @@ -30,11 +30,15 @@
                         
                         // available scripts 'scriptFileName' => 'path relative to js/'
                         $availableJScripts = array(
                        +	'snmp_builder.js' => 'snmp_builder/',
                        +	'DynTable.js' => 'snmp_builder/',
                         	'common.js' => '',
                         	'menu.js' => '',
                         	'prototype.js' => '',
                         	'jquery.js' => 'jquery/',
                         	'jquery-ui.js' => 'jquery/',
                        +	'jquery.cookie.js' => 'jquery/',
                        +	'jquery.jstree.js' => 'jquery/',
                         	'gtlc.js' => '',
                         	'functions.js' => '',
                         	'main.js' => '',
                        this js files will be created by this patch, you have put all this files to the right direction
                        Code:
                        jquery.cookie.js
                        jquery.jstree.js
                        DynTable.js
                        snmp_builder.js
                        so i create manualy js/snmp_builder/ path and put the to files (DynTable.js and snmp_builder.js) to it.

                        now the tree is visible and i can load the mib. files )))

                        now i will test it on a device.....

                        @patjking
                        did you move this js files to?
                        can you write down you patch comand (sorry im using normaly windows ;-) )?

                        Comment

                        • patjking
                          Junior Member
                          • Jun 2012
                          • 22

                          #312
                          My install notes

                          @zabbixx

                          attached are the notes I use when doing a quick install of a vm with zabbix and snmp builder, I have tried to make them human readable.

                          Please note this is not a guide these notes are specific to me and my environment.
                          Attached Files

                          Comment

                          • patjking
                            Junior Member
                            • Jun 2012
                            • 22

                            #313
                            Typo

                            step 32 has a typo mkdir /var/www/zabbix gedit

                            should read mkdir /var/www/zabbix

                            Comment

                            • mickal.vinqueur
                              Junior Member
                              • Aug 2012
                              • 1

                              #314
                              SNMPBUILDER display problem

                              It's been since Monday that snmpbuilder is built into the GUI. Nevertheless, I is not the tree on the left in the GUI and I do not visualize the OIDs in the table in the center. I'm on a version of an OS 1.8.13 Open SUSE 11.4. I have installed net snmp, php-pecl-json but that does not work.

                              Does anyone by chance know where that could come from?
                              You did not make any special handling with respect to the tutorial located at http://www.zabbix.com/wiki/howto/mon...p/snmp_builder.

                              Comment

                              • zabbixx
                                Member
                                • Jul 2012
                                • 71

                                #315
                                @patjking
                                thx for the guide, i will try it after i have config all the templates.

                                Comment

                                Working...