Ad Widget

Collapse

WIP: Custom Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #16
    Sorry guys, I haven't had much time to work on this (or anything else relating to Zabbix). I've been pushed on a few other higher priority projects and haven't found the time (or energy) to work on this at all.

    Anyways, after looking at whats in store for 2.0 (redesigned dashboard, use of jQuery, etc..), I am going to make my updates based on 2.0 (probably start development using a beta version in July). We are planning on deploying 2.0 soon after its release because we desperately need some of the 2.0 functionality and we don't plan on changing anything in our 1.8.4 environment as its very stable and just works. Part of our 2.0 deployment will include updating all our customizations to the 2.0 interface, including the dashboard (although can't promise it will include a web based config day 1).

    Depending on how I implement it for 2.0, I will see how difficult it will be to back port to 1.8.x.

    Comment

    • efrain02
      Banned
      • Apr 2011
      • 81

      #17
      Ok. Thanks for let us know! I personally can't wait to zabbix 2.0 Thanks for the grat job

      Comment

      • WernerCD
        Member
        • Apr 2011
        • 37

        #18
        Zabbix 2.0 has been out a couple days now... any word on an updated version for 2.0?

        Comment

        • cloudmafia
          Junior Member
          • Nov 2012
          • 23

          #19
          Dashboard Help

          Someone can please help to customize Dashboard for zabbix 2.0 such as done above for 1.8...dashboard looks really ugly and doesnt provide much information...please provide some instruction or create some scripts or tutorial how to make you dashboard look better and add top10's on dashboard...

          Comment

          • Robert.hau
            Junior Member
            Zabbix Certified Specialist
            • Jun 2010
            • 10

            #20
            custom dashboard for 2.0

            I modified the version that he provided a long time ago to work with 2.0.

            I made a config file for it now to add and remove columns easier from the display. It also has the ability to sort the last value, change colors, do text fields.

            I think its been much improved, but i would still love to have a way to implement an web page config file.

            Comment

            • eskytthe
              Senior Member
              Zabbix Certified Specialist
              • May 2011
              • 363

              #21
              Sound interesting Robert.hau!
              Could you upload your work?
              Br
              Erik

              Comment

              • cloudmafia
                Junior Member
                • Nov 2012
                • 23

                #22
                Yeah @Robert.hau! could you please share updated script...i am looking for this since many days and finally someone got it...so can you please share it with us...

                Thanks

                Comment

                • danrog
                  Senior Member
                  • Sep 2009
                  • 164

                  #23
                  OK....sorry for the long absence from the forums. I've updated my original version that will allow for (per user) custom top10 items (up to 12) configurable from a web page (the settings icon in the top right) and allows for drag and drop similar to the main dashboard. I have not created an install for it just yet as I'm still in the process of migrating all my custom web tweaks. But to manually install it, you have to make only two changes..one to the menu.php file and the js.php file. I only tested it using items that I care about so if there is an item that doesn't work for you please post all the config details for that item.

                  Also, please rename top10.tar.xml to just top10.tar (had to get around the forum's attachment restriction).

                  Here are those changes:

                  zabbix/jsLoader.php
                  PHP Code:
                  $availableJScripts = array(
                          
                  'common.js' => '',
                          ........
                          
                  'class.pmaster.js' => '',
                          
                  'class.pmastertop10.js' => '',
                          ....... 
                  zabbix/include/menu.inc.php
                  PHP Code:
                          'reports' => array(
                                  
                  'label'                         => _('Reports'),
                                  
                  'user_type'                     => USER_TYPE_ZABBIX_USER,
                                  
                  'node_perm'                     => PERM_READ_LIST,
                                  
                  'default_page_id'       => 0,
                                  
                  'pages' => array(
                                          array(
                                                  
                  'url' => 'report1.php',
                                                  
                  'label' => _('Status of Zabbix'),
                                                  
                  'user_type' => USER_TYPE_SUPER_ADMIN
                                          
                  ),
                                   .............
                                          array(
                                                  
                  'url' => 'top10.php',
                                                  
                  'label' => _('Top 10'),
                                                  
                  'sub_pages' => array('top10conf.php')
                                          ), 
                  Once the other one is posted, maybe we can combine the best from each version to create one kick a$$ dashboard.
                  Attached Files

                  Comment

                  • cloudmafia
                    Junior Member
                    • Nov 2012
                    • 23

                    #24
                    Hi Danrog...

                    I am pretty newbie with Zabbix but very much involved and interested in zabbix,
                    i don't understand how to make it work, could you please give kind of step by step guide to make these changes and make kick a$$ Dashboard...

                    Thanks alot

                    Comment

                    • cloudmafia
                      Junior Member
                      • Nov 2012
                      • 23

                      #25
                      configured and it worked with following errors on every top list:

                      Top 10 Load Avg -
                      Use of undefined constant ZBX_PREG_ITEM_KEY_FORMAT - assumed 'ZBX_PREG_ITEM_KEY_FORMAT' [include/top10.inc.php:44]

                      please help me to fix it.

                      Comment

                      • cloudmafia
                        Junior Member
                        • Nov 2012
                        • 23

                        #26
                        Fixed the issue by Adding # (at line 44)
                        but still unable to get data on CPU Utilization, CPU IO Wait, Number of running Processes, Number of connected user, VIP COnnections (what is VIP Connections By the way), DNS Response/sec.

                        Please check it...

                        thanks

                        Comment

                        • eskytthe
                          Senior Member
                          Zabbix Certified Specialist
                          • May 2011
                          • 363

                          #27
                          Hi danrog
                          Thanks for uploading your work!
                          I am testing on zabbix 2.0.3 (debian), and got same problem as cloudmafia ...

                          ZBX_PREG_ITEM_KEY_FORMAT Seems to be a zabbix 1.8.x definition not included in 2.0.3 og 2.0.2 ?
                          (do not know for other 2.x versions)

                          I then included these from 1.8.15 - just to test:
                          define('ZBX_PREG_KEY_NAME', '([0-9a-zA-Z_,.-]+)');
                          define('ZBX_PREG_ITEM_KEY_FORMAT', '('.ZBX_PREG_KEY_NAME.'(?(?=,)('.ZBX_PREG_PARAMS.' ){0,1}|(\['.ZBX_PREG_PARAMS.'\]){0,1}))');
                          and got the top10 screen to work for most items (but not for CPU util?).

                          Another problem is that I get a blank screen when trying to access the top10conf.php ?

                          BR
                          Erik

                          Comment

                          • eskytthe
                            Senior Member
                            Zabbix Certified Specialist
                            • May 2011
                            • 363

                            #28
                            Did resolve problem with top10conf.php - the file did have same content 2 times (same content after line 614),

                            Local tar problem, only for me maybe?

                            BR
                            Erik

                            Comment

                            • eskytthe
                              Senior Member
                              Zabbix Certified Specialist
                              • May 2011
                              • 363

                              #29
                              Ok so all works for me now! - also cpu util - was just me and my items.
                              Not sure about my ZBX_PREG_ITEM_KEY_FORMAT hack - but it make it to work.
                              THANKS AGAIN! - you have just got 5 stars
                              Br
                              Erik

                              Comment

                              • danrog
                                Senior Member
                                • Sep 2009
                                • 164

                                #30
                                Sorry guys, I completely forgot I had to add that old regex back in...thats what I get for not touching my mods for weeks at a time and quickly hacking together manual install steps for everyone.

                                Also thanks for pointing out the duplicate code....my diff/patch script was messed up (not sure how that actually happened). Anyways...I will most likely be posting all my mods up here once 2.0.4 is out (thats the release I am targeting for our upgrade - once I can get our 80GB DB to pass my dry run upgrades).

                                Comment

                                Working...