Ad Widget

Collapse

Stack graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hugo
    Junior Member
    • Jan 2005
    • 20

    #1

    Stack graph

    Hi, i was wondering how do you make a stacked graph. You have a nice one
    on the screen shots, (memory usage). But i can not make one, it doesnt work.
    The one item totally covers the other one, and then i get a combined color.

    please advice.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    The graph from the screenshot is not stacked!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Hugo
      Junior Member
      • Jan 2005
      • 20

      #3
      Graph

      Ok, my mistake, but how do you do that, because i cannot get it to work. As
      i said, if i put 2 or more items on a graph, i have to use line or they will cover each other.

      Comment

      • cooper
        Senior Member
        • Sep 2004
        • 110

        #4
        Originally posted by Hugo
        Ok, my mistake, but how do you do that, because i cannot get it to work. As
        i said, if i put 2 or more items on a graph, i have to use line or they will cover each other.
        It has to do with the sort order of items in the graph. Item zero is the furthest "back" in the graph. The items with higher sort orders are "in front" of the lower numbers. So you have to put your highest value item at 0, the next at 1, and so on, and so on. . . .

        The result is that it doesnt work well if you have items that will cross or change drastically.

        So you could do something like the following
        Code:
        sort order        item         type            color
        0                 disktotal[]  filled region   green
        1                 diskused[]   filled region   blue
        disktotal should always be greater than used. This would put the bigger green region behind the smaller blue region.

        HTH

        cooper

        Comment

        • Hugo
          Junior Member
          • Jan 2005
          • 20

          #5
          Thanks

          Thanks for the explanation , it worked

          Comment

          • cooper
            Senior Member
            • Sep 2004
            • 110

            #6
            Great

            Originally posted by Hugo
            Thanks for the explanation , it worked
            Glad you got what you needed.

            Comment

            • themons
              Senior Member
              • Feb 2005
              • 110

              #7
              in conclusion no solution to obtain a stacked graph ??? it will be more usefull to know the real stat of memory, I think to creat a personalised item wich seed th memory percentage but i don't know how??? i must stay under zabbix 1.0 (production evironment)
              Zabbix 1.8.3
              SLES 11 x64

              French Zabbix user

              Comment

              • themons
                Senior Member
                • Feb 2005
                • 110

                #8
                i would like to do some stacked graph of the memory usage.
                Zabbix 1.8.3
                SLES 11 x64

                French Zabbix user

                Comment

                Working...