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
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.
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
Code:
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"];
}
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.
Comment