summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-10 17:47:32 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-10 17:47:32 +0000
commitf7f74958b31cb3c8009d5946497911bfcf00cac0 (patch)
tree4555db9646840429880875d36cae0f8b0de13b2d /frontends/php/items.php
parentd037e4b58b4c81f46d68c1dab66c22e130599d35 (diff)
- added support for custom multiplier (Alexei)
- added column items.formula (Alexei) - added support of SNMPv3 (Alexei) - added columns snmpv3_* to table items (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1420 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 50112896..f4bce388 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -44,7 +44,7 @@
{
if($_GET["register"]=="update")
{
- $result=update_item($_GET["itemid"],$_GET["description"],$_GET["key"],$_GET["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"]);
+ $result=update_item($_GET["itemid"],$_GET["description"],$_GET["key"],$_GET["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"],$_GET["snmpv3_securityname"],$_GET["snmpv3_securitylevel"],$_GET["snmpv3_authpassphrase"],$_GET["snmpv3_privpassphrase"],$_GET["formula"]);
show_messages($result, S_ITEM_UPDATED, S_CANNOT_UPDATE_ITEM);
// unset($itemid);
}
@@ -56,7 +56,7 @@
}
if($_GET["register"]=="add")
{
- $result=add_item($_GET["description"],$_GET["key"],$_GET["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"]);
+ $result=add_item($_GET["description"],$_GET["key"],$_GET["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"],$_GET["snmpv3_securityname"],$_GET["snmpv3_securitylevel"],$_GET["snmpv3_authpassphrase"],$_GET["snmpv3_privpassphrase"],$_GET["formula"]);
show_messages($result, S_ITEM_ADDED, S_CANNOT_ADD_ITEM);
unset($_GET["itemid"]);
}
@@ -67,7 +67,7 @@
$hosts_notok="";
while($row=DBfetch($result))
{
- $result2=add_item($_GET["description"],$_GET["key"],$row["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"]);
+ $result2=add_item($_GET["description"],$_GET["key"],$row["hostid"],$_GET["delay"],$_GET["history"],$_GET["status"],$_GET["type"],$_GET["snmp_community"],$_GET["snmp_oid"],$_GET["value_type"],$_GET["trapper_hosts"],$_GET["snmp_port"],$_GET["units"],$_GET["multiplier"],$_GET["delta"],$_GET["snmpv3_securityname"],$_GET["snmpv3_securitylevel"],$_GET["snmpv3_authpassphrase"],$_GET["snmpv3_privpassphrase"],$_GET["formula"]);
if($result2)
{
$hosts_ok=$hosts_ok." ".$row["host"];
@@ -210,8 +210,8 @@
show_table_header("<A HREF='items.php?hostid=".$row["hostid"]."'>".$row["host"]."</A>");
echo "<form method=\"get\" action=\"items.php\">";
echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>";
- echo "<TABLE BORDER=0 COLS=13 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
- echo "<TR>";
+ echo "<TABLE BORDER=0 COLS=13 align=center WIDTH=100% BGCOLOR=\"#AAAAAA\" cellspacing=1 cellpadding=3>";
+ echo "<TR BGCOLOR=\"#CCCCCC\">";
// echo "<TD WIDTH=3% NOSAVE><B>Sel</B></TD>";
echo "<TD WIDTH=8% NOSAVE><B>".S_ID."</B></TD>";
// echo "<TD WIDTH=10% NOSAVE><B>".S_HOST."</B></TD>";