Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • atimonin
    Junior Member
    • Jun 2012
    • 10

    #316
    snmpbuilder on github

    I've installed snmpbuilder on zabbix 2.0.2 using sources and patches from Sire.

    I've downloaded all (with README file) to http://github.com/atimonin/snmpbuilder

    So all interested may download it from there.

    Comment

    • sire
      Senior Member
      • Jul 2010
      • 210

      #317
      Vote for adding SNMP Builder to Zabbix

      Please vote for adding SNMP Builder to Zabbix mainstream here: https://support.zabbix.com/browse/ZBXNEXT-1369
      Regards,
      Sergey Syreskin

      Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

      Temporary out of Zabbix business

      Comment

      • SSM
        Junior Member
        • May 2012
        • 3

        #318
        JS errors #302

        Thank you very match for SNMP_builder and Zabbix too.
        They are very usefull products.

        And I had install snmp_builder from https://github.com/atimonin/snmpbuilder

        I have similar problem like Zabbixx #302
        Firebag:

        Chrome:




        And according your message to solve this problem bellow. I have a question how to listen where are the *.js files from where I can get the info where to put the files?


        Originally posted by zabbixx
        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 ;-) )?
        Could you help me please.

        Comment

        • atimonin
          Junior Member
          • Jun 2012
          • 10

          #319
          Originally posted by SSM
          Thank you very match for SNMP_builder and Zabbix too.
          They are very usefull products.

          And I had install snmp_builder from https://github.com/atimonin/snmpbuilder

          I have similar problem like Zabbixx #302

          And according your message to solve this problem bellow. I have a question how to listen where are the *.js files from where I can get the info where to put the files?




          Could you help me please.
          On github there is a README file, what is unclear there?
          See step #7. in it. (the file tree in "zabbix" dir is what is needed).
          Last edited by atimonin; 23-08-2012, 19:47.

          Comment

          • SSM
            Junior Member
            • May 2012
            • 3

            #320
            Originally posted by atimonin
            On github there is a README file, what is unclear there?
            See step #7. in it. (the file tree in "zabbix" dir is what is needed).
            Thank you. I already done it. Just notice that I should add 4 line
            Code:
            +	'snmp_builder.js' => 'snmp_builder/',
            +	'DynTable.js' => 'snmp_builder/',
            
            +	'jquery.cookie.js' => 'jquery/',
            +	'jquery.jstree.js' => 'jquery/',
            Right now new mistake
            Uncaught TypeError: Object [object Object] has no method 'draggable'

            Comment

            • atimonin
              Junior Member
              • Jun 2012
              • 10

              #321
              Originally posted by SSM
              Thank you. I already done it. Just notice that I should add 4 line
              Code:
              +	'snmp_builder.js' => 'snmp_builder/',
              +	'DynTable.js' => 'snmp_builder/',
              
              +	'jquery.cookie.js' => 'jquery/',
              +	'jquery.jstree.js' => 'jquery/',
              It should be already done by patch (you may see it in snmpbuilder-2.0.patch file)

              Originally posted by SSM

              Right now new mistake
              Uncaught TypeError: Object [object Object] has no method 'draggable'
              It seems not to relate to snmpbuilder (it's from another piece of code which is loaded before snmpbuilder)

              Comment

              • SSM
                Junior Member
                • May 2012
                • 3

                #322
                Uh... Everything is working now.
                I had checked everything step by step and had noticed that patch did not make modification in page_header.php.

                I have done it manual, restart httpd and can see all trees now


                Originally posted by atimonin
                It should be already done by patch (you may see it in snmpbuilder-2.0.patch file)



                It seems not to relate to snmpbuilder (it's from another piece of code which is loaded before snmpbuilder)

                Comment

                • peter@cloud
                  Junior Member
                  • Aug 2012
                  • 4

                  #323
                  snmpbuilder installed, no menu in zabbix configuration

                  Hi folks,

                  I am pretty new to adding a plug-in manually to apache, so adding the 'SNMPBuilder' was a bit of trying, understanding and learning. I have followed the instructions from atimonin at sourceforge on an existing zabbix 2.01 on ubuntu 1004. I have checked permission and adjusted ownership to www-data for the files in my apache fronted directory, in my case /var/www/zabbix/public_html.
                  I did run the patch, and the files are correctly patched as far as I can see.
                  however there is still no SNMPBuilder menu item under configuration.
                  What would be the steps to debug this? My experience with complex php frontends is rather limited, so frankly I have no clue where to start.
                  Your help would be greatly appreciated.

                  Comment

                  • peter@cloud
                    Junior Member
                    • Aug 2012
                    • 4

                    #324
                    Found quite some warnings and errors in the browser console, see below.

                    I am considering these root causes:
                    1 one or more files not in the expected place inside js/ or jsquery/ or the like
                    2 somehow a missing software package, something with php and js.
                    3 the fact that the webserver home for zabbix is in /var/www/zabbix/public_html instead of in /var/www/zabbix.

                    There are no errors in the apache error log, and neither in the zabbix log.

                    [17:18:28.982] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/default.css:762
                    [17:18:28.982] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/styles/default.css:769
                    [17:18:28.983] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:36
                    [17:18:28.983] Unknown property '-moz-box-shadow'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:41
                    [17:18:28.983] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:142
                    [17:18:28.984] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/blocks.css:225
                    [17:18:28.984] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/blocks.css:398
                    [17:18:28.984] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/styles/blocks.css:398
                    [17:18:28.985] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...uery-ui.css:22
                    [17:18:28.986] Unknown property '-moz-border-radius-topleft'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:283
                    [17:18:28.986] Unknown property '-moz-border-radius-topright'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:284
                    [17:18:28.986] Unknown property '-moz-border-radius-bottomleft'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:285
                    [17:18:28.986] Unknown property '-moz-border-radius-bottomright'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:286
                    [17:18:28.987] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:291
                    [17:18:28.987] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:335
                    [17:18:29.168] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/
                    [17:18:29.168] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/
                    --
                    [17:21:14.666] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/default.css:285
                    [17:21:14.830] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4979
                    [17:21:14.831] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4979
                    [17:21:14.835] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4980
                    [17:21:14.836] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4980
                    [17:21:14.871] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:5053
                    [17:21:14.875] TypeError: function SDJ does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:5214
                    [17:21:14.876] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:6039

                    Comment

                    • patjking
                      Junior Member
                      • Jun 2012
                      • 22

                      #325
                      Hi peter@cloud

                      it realy does'nt have to be this painfull

                      if you read sire's comments #229 - #231 download patch from #231 and images from #230

                      the patch will do all the work, the only thing you will have to change is the path in the patch file.

                      Originally posted by peter@cloud
                      Found quite some warnings and errors in the browser console, see below.

                      I am considering these root causes:
                      1 one or more files not in the expected place inside js/ or jsquery/ or the like
                      2 somehow a missing software package, something with php and js.
                      3 the fact that the webserver home for zabbix is in /var/www/zabbix/public_html instead of in /var/www/zabbix.

                      There are no errors in the apache error log, and neither in the zabbix log.

                      [17:18:28.982] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/default.css:762
                      [17:18:28.982] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/styles/default.css:769
                      [17:18:28.983] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:36
                      [17:18:28.983] Unknown property '-moz-box-shadow'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:41
                      [17:18:28.983] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/icon.css:142
                      [17:18:28.984] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/blocks.css:225
                      [17:18:28.984] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/blocks.css:398
                      [17:18:28.984] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/styles/blocks.css:398
                      [17:18:28.985] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...uery-ui.css:22
                      [17:18:28.986] Unknown property '-moz-border-radius-topleft'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:283
                      [17:18:28.986] Unknown property '-moz-border-radius-topright'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:284
                      [17:18:28.986] Unknown property '-moz-border-radius-bottomleft'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:285
                      [17:18:28.986] Unknown property '-moz-border-radius-bottomright'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:286
                      [17:18:28.987] Unknown property '-moz-border-radius'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:291
                      [17:18:28.987] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/th...ery-ui.css:335
                      [17:18:29.168] Unknown property 'zoom'. Declaration dropped. @ http://192.168.3.14/zabbix/
                      [17:18:29.168] Expected declaration but found '*'. Skipped to next declaration. @ http://192.168.3.14/zabbix/
                      --
                      [17:21:14.666] Error in parsing value for 'filter'. Declaration dropped. @ http://192.168.3.14/zabbix/styles/default.css:285
                      [17:21:14.830] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4979
                      [17:21:14.831] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4979
                      [17:21:14.835] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4980
                      [17:21:14.836] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:4980
                      [17:21:14.871] SyntaxError: test for equality (==) mistyped as assignment (=)? @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:5053
                      [17:21:14.875] TypeError: function SDJ does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:5214
                      [17:21:14.876] TypeError: anonymous function does not always return a value @ http://192.168.3.14/zabbix/jsLoader....ang=en_GB:6039

                      Comment

                      • peter@cloud
                        Junior Member
                        • Aug 2012
                        • 4

                        #326
                        wrong install location indeed!

                        Hi Patjking,

                        Thanks so much for this. You helped me understand that my zabbix frontend is not at all in var/www/zabbix/public_html, but in /home/zabbix/public_html.
                        This in spite of the fact that all the frontend files are also in /var/www/zabbix/public_html. So it seems that I installed and patched in the wrong location.... Indeed caused by my limited knowledge of Apache2, but reading /etc/apache2/sites_enabled/zabbix explains where the correct location is.
                        Actually I used the version for Zabbix 2.02 from Atimonin.
                        Now trying to install in the right location.

                        Could not get the patch file to patch in this location, not even with the paths for the files adjusted. But it is only a small patch file, so I did the patches manually.

                        Everything working now. This is a great addition to Zabbix, and a real timesaver! Thanks to all who contributed to this plug-in!

                        Originally posted by patjking
                        Hi peter@cloud

                        it realy does'nt have to be this painfull

                        if you read sire's comments #229 - #231 download patch from #231 and images from #230

                        the patch will do all the work, the only thing you will have to change is the path in the patch file.

                        Comment

                        • saintxseiya
                          Junior Member
                          • Oct 2010
                          • 17

                          #327
                          Hi guys,

                          i tried to patch everything manually and just geht a white box on the snmp builder page?

                          i can select the pulldown menu, but neither from the beginning nor when i import a mib file it shows up there.

                          Any suggestions?

                          Comment

                          • zabbixx
                            Member
                            • Jul 2012
                            • 71

                            #328
                            Originally posted by patjking
                            @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.
                            @patjking
                            thx for the notes it works :-)

                            Comment

                            • fabioteixei
                              Junior Member
                              • Oct 2012
                              • 6

                              #329
                              Empy Tree Problem

                              Hi guys.

                              Im using Zabbix Appliance version 2.0 and i got the empty tree error. No matter how MIB i choose the problem still happens.

                              Click image for larger version

Name:	zabbix3.jpg
Views:	1
Size:	38.7 KB
ID:	311978

                              How can i solve this?

                              Comment

                              • patjking
                                Junior Member
                                • Jun 2012
                                • 22

                                #330
                                Originally posted by fabioteixei
                                Hi guys.

                                Im using Zabbix Appliance version 2.0 and i got the empty tree error. No matter how MIB i choose the problem still happens.

                                [ATTACH]5346[/ATTACH]

                                How can i solve this?
                                Check your apache logs for errors

                                Comment

                                Working...