Ad Widget

Collapse

Graph Tree Service with weigth and threshold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • felipevr
    Junior Member
    • Aug 2010
    • 7

    #1

    Graph Tree Service with weigth and threshold

    Hi, my name is Felipe . I work in the IT Services monitoring project. We developed a patch to Zabbix using Prefuse (a Java library for information visualization) to view the IT services tree created in Zabbix.
    For status propagation from lower branches towards the root of the tree we created a weight and threshold algorithm for each service. In our implementation, each service have a weight for each status it may assume, and a service status is given by comparing the thresholds (also, one value for each status) to the sum of the weight of all its children, so, if the total weight is greater than an specific threshold, the service assume the associated status, and the parent node is re-calculated (thus, propagating).
    We also wrote a daemon service in C to calculate the weight and threshold periodically.
    Coming Soon, I post the source code.

    thanks.
    Attached Files
    Last edited by felipevr; 06-10-2010, 15:45. Reason: Correction
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    this sounds quite interesting, and also a bit familiar to me

    could you please give a quick summary of involved changes and additions ? as far as i gather, there is a patch for zabbix frontend, as well as a standalone daemon - so this functionality is not fully built into zabbix. is that correct ?
    Last edited by richlv; 23-08-2011, 00:00. Reason: fix a typo
    Zabbix 3.0 Network Monitoring book

    Comment

    • felipevr
      Junior Member
      • Aug 2010
      • 7

      #3
      Hello, sorry for the delay in responding.
      Well the changes were as follows:
      /
      services_form.php → addition of fields for weight and threshold
      menu.inc.php→ inclusion of menu monitoring-> graphtree
      / Locales
      pt_br.inc.php → new terms in Portuguese
      en_gb.inc.php → new terms in English

      The inclusions were:
      /
      arvore_grafica.php→ contains the graph tree
      graph_tree_xml→ load of the tree in an xml format
      dbconfig → bd adjusts settings for the graph tree
      prefuse.jar→ library for information visualisation
      libgraphtree.jar → library for graphical rendering of the tree
      ExtendApplet.class → Archive for extended view of the tree to be used with applet
      GenericApplet.class → Archive for normal display of the tree to be used with applet

      About the daemon was developed out of zabbix. But it can be integrated easily.
      The daemon reads the base zabbix performs the calculations of weights and updates the database.
      To compile the daemon, just run the command "make"
      to install run the command "make install". Before you run, have to configure the file /etc/zabbix_service_tree/zabbix.conf and set the configuration variables;
      To run, use the command "zabbix_service"
      To stop using the command "killall zabbix_service"

      The installation files and source code is located at:
      Graph Tree is a addon for zabbix to visualization graph service tree

      Comment

      • osorio88
        Junior Member
        • Feb 2011
        • 29

        #4
        It works on zabbix 1.8.3? or in wich version it works?
        Because it looks really good.

        Comment

        • hipikll
          Junior Member
          • Dec 2008
          • 12

          #5
          nice work.
          I tested it with 1.8.2 version on my desktop ubuntu.
          You forgot to mention the file carregarimagem.php
          which must be rewritten to use the global connection parameters for mysql_connect. Now it has it's own.
          Also, I had a need to add -std=gnu99 to the compilation, as you use old c90 declaration of for cycle.

          If i'll have time, I will try to locate it to english (with dictionary in my hands).

          I'm gonna test it with 1.8.3 on Debian.

          Comment

          • efrain02
            Banned
            • Apr 2011
            • 81

            #6
            Someone knows if this works for 1.8.4???
            It would be great.

            Comment

            • felipevr
              Junior Member
              • Aug 2010
              • 7

              #7
              Hello, sorry for the delay in responding.
              I was update the code for zabbix 1.8.6
              To later I post here.

              Thanks

              Comment

              • osorio88
                Junior Member
                • Feb 2011
                • 29

                #8
                Thanks in advance... i will love that.

                Comment

                • felipevr
                  Junior Member
                  • Aug 2010
                  • 7

                  #9
                  New Implementations

                  Hi everyone,
                  I posted in https://sourceforge.net/projects/graphtree/ new version of my implementation.

                  I included new view called Hyper View:
                  Attached Files

                  Comment

                  • danrog
                    Senior Member
                    • Sep 2009
                    • 164

                    #10
                    This looks very interesting. I've downloaded the tar file, but I just have one request. As I have my own customizations to the web interface, would it be possible to just include your php files in a separate frontend tar and maybe a patch file for the default zabbix frontend files you change. If its just the menu.inc.php file, then no need for the patch.

                    Comment

                    • Felipe
                      Junior Member
                      • Aug 2010
                      • 2

                      #11
                      Ok!
                      I will post php codes separately and will create a diff file with the changes.

                      Comment

                      • linuxgurugamer
                        Member
                        • Oct 2010
                        • 66

                        #12
                        Have you updated this for 2.0 yet?

                        Comment

                        • Felipe
                          Junior Member
                          • Aug 2010
                          • 2

                          #13
                          Hi,

                          Still not!

                          Comment

                          • klemens
                            Junior Member
                            • Apr 2013
                            • 7

                            #14
                            is it maybe updated for 2.X now?

                            Comment

                            • r-br
                              Junior Member
                              • Feb 2011
                              • 27

                              #15
                              Follow up:

                              Comment

                              Working...