summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-08 15:13:06 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-08 15:13:06 +0000
commit3da79e6d41d7feb6eb2f6e61a1712fdeca4fb46c (patch)
tree4474956ae190044aa59bf8c4be23d3131427ade2 /frontends/php/items.php
parent37568f78334d10a6b9b68e9c96f0694fce3ae6b0 (diff)
downloadzabbix-3da79e6d41d7feb6eb2f6e61a1712fdeca4fb46c.tar.gz
zabbix-3da79e6d41d7feb6eb2f6e61a1712fdeca4fb46c.tar.xz
zabbix-3da79e6d41d7feb6eb2f6e61a1712fdeca4fb46c.zip
- added housekeeping of trends (Alexei)
- added column items.trends (Alexei) - added escaping of SQL statements where needed (Alexei) - added src/zabbix_sucker/checks_agent.[h,c] (Alexei) - added src/zabbix_sucker/checks_internal.[h,c] (Alexei) - added src/zabbix_sucker/checks_snmp.[h,c] (Alexei) - added src/zabbix_sucker/checks_simple.[h,c] (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1378 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index fa515d58..91b6a41f 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -192,7 +192,7 @@
$lasthost="";
if(isset($_GET["hostid"])&&!isset($_GET["type"]))
{
- $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.lastdelete,i.nextcheck,h.hostid,i.type from hosts h,items i where h.hostid=i.hostid and h.hostid=".$_GET["hostid"]." order by h.host,i.key_,i.description");
+ $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.lastdelete,i.nextcheck,h.hostid,i.type,i.trends from hosts h,items i where h.hostid=i.hostid and h.hostid=".$_GET["hostid"]." order by h.host,i.key_,i.description");
$col=0;
while($row=DBfetch($result))
{
@@ -219,6 +219,7 @@
echo "<TD WIDTH=10% NOSAVE><B>".S_DESCRIPTION."</B></TD>";
echo "<TD WIDTH=5% NOSAVE><B>".S_UPDATE_INTERVAL."</B></TD>";
echo "<TD WIDTH=5% NOSAVE><B>".S_HISTORY."</B></TD>";
+ echo "<TD WIDTH=5% NOSAVE><B>".S_TRENDS."</B></TD>";
echo "<TD><B>".S_SHORT_NAME."</B></TD>";
echo "<TD WIDTH=5% NOSAVE><B>".S_TYPE."</B></TD>";
echo "<TD WIDTH=5% NOSAVE><B>".S_STATUS."</B></TD>";
@@ -237,6 +238,7 @@
echo "<TD>".$row["description"]."</TD>";
echo "<TD>".$row["delay"]."</TD>";
echo "<TD>".$row["history"]."</TD>";
+ echo "<TD>".$row["trends"]."</TD>";
echo "<TD>".$row["host"].":".$row["key_"]."</TD>";
echo "<td align=center>";