summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/items.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-06 20:18:20 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-05-06 20:18:20 +0000
commitf0992b870a4b4b2cd541bce01ae20694b02aaf02 (patch)
treeeadb9a14de5c0b904c4af0cdfec8bd45d68b3a32 /frontends/php/include/items.inc.php
parent07523be771478603a8b15ab748278f6eef147197 (diff)
downloadzabbix-f0992b870a4b4b2cd541bce01ae20694b02aaf02.tar.gz
zabbix-f0992b870a4b4b2cd541bce01ae20694b02aaf02.tar.xz
zabbix-f0992b870a4b4b2cd541bce01ae20694b02aaf02.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1760 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/items.inc.php')
-rw-r--r--frontends/php/include/items.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php
index ec793a75..652688f2 100644
--- a/frontends/php/include/items.inc.php
+++ b/frontends/php/include/items.inc.php
@@ -140,7 +140,7 @@
{
add_item($item["description"],$item["key_"],$row["hostid"],$item["delay"],$item["history"],$item["status"],$item["type"],$item["snmp_community"],$item["snmp_oid"],$item["value_type"],$item["trapper_hosts"],$item["snmp_port"],$item["units"],$item["multiplier"],$item["delta"],$item["snmpv3_securityname"],$item["snmpv3_securitylevel"],$item["snmpv3_authpassphrase"],$item["snmpv3_privpassphrase"],$item["formula"],$item["trends"]);
$host=get_host_by_hostid($row["hostid"]);
- info("Added to host ".$host["host"]);
+ info("Added to linked host ".$host["host"]);
}
}
}
@@ -166,6 +166,8 @@
while($row2=DBfetch($result2))
{
delete_item($row2["itemid"]);
+ $host=get_host_by_hostid($row["hostid"]);
+ info("Deleted from linked host ".$host["host"]);
}
}
}
@@ -192,6 +194,8 @@
{
$row2=DBfetch($result2);
update_item($row2["itemid"],$item["description"],$item["key_"],$row["hostid"],$item["delay"],$item["history"],$item["status"],$item["type"],$item["snmp_community"],$item["snmp_oid"],$item["value_type"],$item["trapper_hosts"],$item["snmp_port"],$item["units"],$item["multiplier"],$item["delta"],$item["snmpv3_securityname"],$item["snmpv3_securitylevel"],$item["snmpv3_authpassphrase"],$item["snmpv3_privpassphrase"],$item["formula"],$item["trends"]);
+ $host=get_host_by_hostid($row["hostid"]);
+ info("Updated for linked host ".$host["host"]);
}
}
}