summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-12-18 14:01:18 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-12-18 14:01:18 +0000
commit734d69b5e7cf19752e3f36396c499cbdb21aa6f9 (patch)
tree93a52166ccf111f23027ffa71876b5e1184baa4b /frontends/php/items.php
parent8d2c56ee22cd641a7dbab7b2b28b200a83031921 (diff)
downloadzabbix-734d69b5e7cf19752e3f36396c499cbdb21aa6f9.tar.gz
zabbix-734d69b5e7cf19752e3f36396c499cbdb21aa6f9.tar.xz
zabbix-734d69b5e7cf19752e3f36396c499cbdb21aa6f9.zip
- added link to ZABBIX manual from all forms (Alexei)
- icmppingsec to return '0' if cannot ping (Alexei) - added error reason for unsupported items (Alexei) - added error reason for unreachable hosts (Alexei) - added hosts.error (Alexei) - added items.error (Alexei) - added alerts.error (Alexei) - added error reason for undelivered alerts (Alexei) - added upgrades/dbpatches/1.1alpha3_to_1.1alpha4 (Alexei) - fixed empty macros in alert messages if '.' in key (Alexei) - do not show menu item if no permissions (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1539 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 1ef9ff54..30095c50 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -204,10 +204,10 @@
if(isset($_GET["hostid"])&&!isset($_GET["type"]))
{
table_begin();
- table_header(array(S_ID,S_KEY,S_DESCRIPTION,nbsp(S_UPDATE_INTERVAL),S_HISTORY,S_TRENDS,S_SHORT_NAME,S_TYPE,S_STATUS,S_ACTIONS));
+ table_header(array(S_ID,S_KEY,S_DESCRIPTION,nbsp(S_UPDATE_INTERVAL),S_HISTORY,S_TRENDS,S_TYPE,S_STATUS,S_ERROR,S_ACTIONS));
echo "<form method=\"get\" action=\"items.php\">";
echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>";
- $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,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");
+ $result=DBselect("select h.host,i.key_,i.itemid,i.description,h.port,i.delay,i.history,i.lastvalue,i.lastclock,i.status,i.nextcheck,h.hostid,i.type,i.trends,i.error 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))
{
@@ -263,6 +263,15 @@
"<A HREF=\"items.php?register=change&itemid=".$row["itemid"]."#form\">".S_CHANGE."</A>",
S_CHANGE);
+ if($row["error"] == "")
+ {
+ $error=array("value"=>"&nbsp;","class"=>"off");
+ }
+ else
+ {
+ $error=array("value"=>$row["error"],"class"=>"on");
+ }
+
table_row(array(
$input,
$row["key_"],
@@ -270,14 +279,14 @@
$row["delay"],
$row["history"],
$row["trends"],
- $row["host"].":".$row["key_"],
$type,
$status,
+ $error,
$actions
),$col++);
}
table_end();
- show_table2_header_begin();
+ show_form_begin();
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"Activate selected\" onClick=\"return Confirm('".S_ACTIVATE_SELECTED_ITEMS_Q."');\">";
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"Disable selected\" onClick=\"return Confirm('".S_DISABLE_SELECTED_ITEMS_Q."');\">";
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"Delete selected\" onClick=\"return Confirm('".S_DELETE_SELECTED_ITEMS_Q."');\">";