Ad Widget

Collapse

Zabbix Dashboards (again!)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • x1alpha76
    Junior Member
    • May 2015
    • 5

    #1

    Zabbix Dashboards (again!)

    Hi all,

    I was going to highjack danrog's wip thread but i thought this might warrant it's own thread.

    So - i upgraded to 2.4 recently and it broke all my customisations to the dashboard and other bits and pieces. As i was fixing it i thought why not clean this up and release it to the wild.

    The main thing i'm looking to release is a modular interface for creating new dashboard blocks for the default dashboard.

    I've created a git repo and started to cleanup and commit a few things - but before i go too far i thought i would gauge peoples interest in such a project.
    Extends the default zabbix dashboard so that additional blocks and be quickly and cleanly added to the dashboard - zensquare/zabbix-dashboard-extension


    If you are interested in this let me know, could use some help with testing/extending it.

    If you want to try it out
    1. clone/copy the repo the base zabbix-web folder.
    2. patch the dashboard.php file (patch dashboard.php patches/dashboard.php-2.4.9.patch)
    3. enter the dashboard folder
    4. rename the x.ini.example files to x.ini of the blocks you want to try (and configure them)


    zabbix 2.4 doesn't seem to have the latest-value field on the item in the database any more. there is probably a better way of doing this but for now i've created a table and some triggers to track the latest value - see dashboard/latest-value.sql.

    Most of the blocks wont work until i release the collection code but if you are keen for central logging check out my guide here : http://zensquare.com/guide/central-logging

    Cheers,
    Nick

    Last edited by x1alpha76; 29-05-2015, 01:32. Reason: Improve Screenshot quality
  • sersad
    Senior Member
    • May 2009
    • 518

    #2
    Please add more screenshots

    Comment

    • x1alpha76
      Junior Member
      • May 2015
      • 5

      #3
      There isn't much more to it I'm afraid - the concept is more about creating an easy way to add additional information to the dashboard. I included my blocks as a demonstration as to what you could do with it.

      i've uploaded the image again so you can see it clearly - sorry for breaking the forum =P.

      Comment

      • timbo
        Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2013
        • 50

        #4
        Hi Nick,

        This looks great! You've also given me some good ideas on some additional things to monitor.

        But like a lot of people, I'm a little reluctant to modify the code base simply because it makes upgrading a nightmare. Though this looks like it's relatively non-invasive (the new table/triggers arguably being the exception).

        So, like a lot of people I use Screens & Slide Shows, as I need to display more information/items than a single screen (dashboard) can handle. I know, different use cases, but similar enough.

        Looks like a cool project with a lot of potential though. I'd certainly be interested in seeing it in action.

        -Timbo

        Comment

        • Gsmith
          Member
          • Mar 2015
          • 56

          #5
          Testing

          Hi x1alpha76
          Looks awesome, I have a lab that I could test/modify zabbix dashboard on. anything you want to throw at me would be great.
          Thanks
          -Gsmith

          Comment

          • x1alpha76
            Junior Member
            • May 2015
            • 5

            #6
            I fully agree with you on the code base thing - it's pretty much what prompted me to do this. The idea was to decouple my modifications as much as i could from the core code.

            I agree with the comment about the mysql triggers - i felt dirty doing it - and even dirtier publicly suggesting it. If someone has a better way of doing this i would be keen to know.

            That being said using it is not compulsory - you could simply change the sql statement for the block to join to the history table and then order/group by to get the latest result.

            Cheers for the offer of help Gsmith - do you want to try to try the web-crawler component out? It agile additions that kind of just came in to being because of excessive playing around.

            Initially i had some of the web crawler code in the dashboard repo - i've now moved this to it's own repo here: https://github.com/zensquare/zabbix-webcrawler. There is a little bit of a guide in the readme file that should hopefully be enough to get you started - if not let me know and i'll help / update the readme.

            Comment

            • Gsmith
              Member
              • Mar 2015
              • 56

              #7
              x1alpha76,
              Unfortunately I have to work this weekend. I'll start testing it out this week in my lab environment.
              Thanks
              -Gsmitt

              Comment

              • Gsmith
                Member
                • Mar 2015
                • 56

                #8
                Still Working

                I have CentOS 6.6 Minimal installed (I prefer to work without a GUI) on Virtual machine
                Zabbix Server 2.4.5
                Install Node.js.
                Install gjslint.
                Use npm install to install sigma development dependencies.
                Installed sigma.js - v1.0.2
                Had a problem npm would not install in sigma.js (WD)
                Root# npm install --unsafe-perm

                This worked and npm was installed
                http://localhost:8000/examples, looks good so far, I think I'm on the right track.

                Comment

                • x1alpha76
                  Junior Member
                  • May 2015
                  • 5

                  #9
                  Hi GSmith,

                  Sorry to put you on wild goose chase - but sigma.js is already built - i should have deleted the readme file in sigma folder.

                  The sigma library is for the front end. I completely overlooked how to setup the front end - easiest way is it simply clone the zabbix-webcrawler into the zabbix-web folder - ie
                  Code:
                  cd /usr/share/zabbix
                  git clone https://github.com/zensquare/zabbix-webcrawler.git
                  you should be able to access the front via
                  http://<address of zabbix server>/zabbix-webcrawler/report.php?wid=1

                  Comment

                  • Gsmith
                    Member
                    • Mar 2015
                    • 56

                    #10
                    All Good

                    x1alpha76,
                    No Problem... Well At least I know how to install Sigma on Centos Never Used this Sigma before looks good.

                    Comment

                    • Gsmith
                      Member
                      • Mar 2015
                      • 56

                      #11
                      Finally Got It

                      x1alpha76,
                      Sorry for a late post, My job had me occupied. I finally was able to get everything cloned on my Centos 6.6 VM box. I have not set it up yet. No problems so far. Just some OS tweaks on my end.
                      -GSmith

                      Comment

                      Working...