Ad Widget

Collapse

Stacked Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chaosloth
    Junior Member
    • Aug 2005
    • 6

    #1

    Stacked Graphs

    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

    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"];
    			}
    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
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please give us an idea how it looks like. A screenshot would be great!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • rajeevtomar
      Member
      • Mar 2005
      • 50

      #3
      Please let me know if zabbix1.1 alpha 12 supports Postgres ?

      Please let me know if zabbix1.1 alpha 12 supports Postgres as database...???

      Thanks , Rajeev

      Comment

      Working...