From 3da79e6d41d7feb6eb2f6e61a1712fdeca4fb46c Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 8 Aug 2004 15:13:06 +0000 Subject: - 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 --- frontends/php/items.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontends/php/items.php') 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 "".S_DESCRIPTION.""; echo "".S_UPDATE_INTERVAL.""; echo "".S_HISTORY.""; + echo "".S_TRENDS.""; echo "".S_SHORT_NAME.""; echo "".S_TYPE.""; echo "".S_STATUS.""; @@ -237,6 +238,7 @@ echo "".$row["description"].""; echo "".$row["delay"].""; echo "".$row["history"].""; + echo "".$row["trends"].""; echo "".$row["host"].":".$row["key_"].""; echo ""; -- cgit