PDA

View Full Version : Stacked Graphs


chaosloth
02-09-2005, 09:00
Hey,

I've been playing with Zabbix for a couple of weeks now. Think it great!
I have written an Intergration Module that enables monitoring of my application, while it looks great if I graph one item at a time I'd think it'd be handy if there were some agregation parameters.

The items I have created are volume based, and I would like to be able to stack them to create a total.

I've added the following in classes.inc.php

while($row=DBfetch($result))
{
$i=$row["i"];
$this->count[$this->itemids[$row["itemid"]]][$i]=$row["count"];
$this->min[$this->itemids[$row["itemid"]]][$i]=$row["min"];
$this->max[$this->itemids[$row["itemid"]]][$i]=$row["max"];
$this->avg[$this->itemids[$row["itemid"]]][$i]=$row["avg"];
for( $k = 0; $k < $this->itemids[$row["itemid"]]; $k++ )
{
$this->acc[$k][$i] += $row["avg"];
}
$this->clock[$this->itemids[$row["itemid"]]][$i]=$row["clock"];
}

This creates an acculumator for each item.
The problem I'm having is when I draw the item, it skews !

Any assistance with this would be great.
I'll keep working and if I get it going I'll let you know.

Cheers,
Chris.

Alexei
02-09-2005, 09:03
Please give us an idea how it looks like. A screenshot would be great!

rajeevtomar
05-09-2005, 21:58
Please let me know if zabbix1.1 alpha 12 supports Postgres as database...???

Thanks , Rajeev