PDA

View Full Version : Stack graph


Hugo
24-01-2005, 14:38
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
24-01-2005, 14:53
The graph from the screenshot is not stacked!

Hugo
24-01-2005, 16:04
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.

cooper
24-01-2005, 20:04
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

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

Hugo
26-01-2005, 15:26
Thanks for the explanation , it worked

cooper
26-01-2005, 20:05
Thanks for the explanation , it worked

Glad you got what you needed.

themons
04-03-2005, 15:07
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)

themons
07-03-2005, 15:17
i would like to do some stacked graph of the memory usage.