summaryrefslogtreecommitdiffstats
path: root/frontends/php/graph.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-19 16:57:19 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-19 16:57:19 +0000
commite5ef8796293a7d36face4704fb59831e1a3d4f47 (patch)
tree6fdcb8a5e1e29273a95f68f88a2daac1a07d5b1f /frontends/php/graph.php
parent2c98552c995515bd63182ae937a009c062e82cf8 (diff)
downloadzabbix-e5ef8796293a7d36face4704fb59831e1a3d4f47.tar.gz
zabbix-e5ef8796293a7d36face4704fb59831e1a3d4f47.tar.xz
zabbix-e5ef8796293a7d36face4704fb59831e1a3d4f47.zip
- added support of macros $1,..., $9 (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2061 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graph.php')
-rw-r--r--frontends/php/graph.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/graph.php b/frontends/php/graph.php
index 3584f112..6cbcc77b 100644
--- a/frontends/php/graph.php
+++ b/frontends/php/graph.php
@@ -120,7 +120,7 @@
echo "<TD WIDTH=10% NOSAVE><B>".S_ACTIONS."</B></TD>";
echo "</TR>";
- $sql="select i.itemid,h.host,i.description,gi.gitemid,gi.color,gi.drawtype,gi.sortorder from hosts h,graphs_items gi,items i where i.itemid=gi.itemid and gi.graphid=".$_GET["graphid"]." and h.hostid=i.hostid order by gi.sortorder";
+ $sql="select i.itemid,h.host,i.description,gi.gitemid,gi.color,gi.drawtype,gi.sortorder,i.key_ from hosts h,graphs_items gi,items i where i.itemid=gi.itemid and gi.graphid=".$_GET["graphid"]." and h.hostid=i.hostid order by gi.sortorder";
$result=DBselect($sql);
$col=0;
while($row=DBfetch($result))
@@ -130,7 +130,7 @@
echo "<TD>".$row["sortorder"]."</TD>";
echo "<TD>".$row["host"]."</TD>";
- echo "<TD><a href=\"chart.php?itemid=".$row["itemid"]."&period=3600&from=0\">".$row["description"]."</a></TD>";
+ echo "<TD><a href=\"chart.php?itemid=".$row["itemid"]."&period=3600&from=0\">".item_description($row["description"],$row["key_"])."</a></TD>";
echo "<TD>".get_drawtype_description($row["drawtype"])."</TD>";
echo "<TD>".$row["color"]."</TD>";
echo "<TD>";
@@ -176,12 +176,12 @@
echo S_PARAMETER;
show_table2_h_delimiter();
- $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status in(".HOST_STATUS_MONITORED.",".HOST_STATUS_TEMPLATE.") and i.status=".ITEM_STATUS_ACTIVE." order by h.host,i.description");
+ $result=DBselect("select h.host,i.description,i.itemid,i.key_ from hosts h,items i where h.hostid=i.hostid and h.status in(".HOST_STATUS_MONITORED.",".HOST_STATUS_TEMPLATE.") and i.status=".ITEM_STATUS_ACTIVE." order by h.host,i.description");
echo "<select name=\"itemid\" size=1>";
for($i=0;$i<DBnum_rows($result);$i++)
{
$host_=DBget_field($result,$i,0);
- $description_=DBget_field($result,$i,1);
+ $description_=item_description(DBget_field($result,$i,1),DBget_field($result,$i,3));
$itemid_=DBget_field($result,$i,2);
if(isset($itemid)&&($itemid==$itemid_))
{