diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-27 09:01:58 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-27 09:01:58 +0000 |
| commit | e1acb753ed60de360d78018c4f3845603696655f (patch) | |
| tree | bc9e76fe7cce32b37e92bc1ccfb22c65e48e819a /frontends/php/items.php | |
| parent | 3ccfcbf2c3486dded36902ee17bbdb5e27c1c600 (diff) | |
- added propagation of template item change to related hosts (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1682 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
| -rw-r--r-- | frontends/php/items.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php index d72509ae..f29ad010 100644 --- a/frontends/php/items.php +++ b/frontends/php/items.php @@ -56,6 +56,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"],$_GET["snmpv3_securityname"],$_GET["snmpv3_securitylevel"],$_GET["snmpv3_authpassphrase"],$_GET["snmpv3_privpassphrase"],$_GET["formula"],$_GET["trends"]); + update_item_in_templates($_GET["itemid"]); show_messages($result, S_ITEM_UPDATED, S_CANNOT_UPDATE_ITEM); // unset($itemid); } @@ -67,9 +68,11 @@ } 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"],$_GET["snmpv3_securityname"],$_GET["snmpv3_securitylevel"],$_GET["snmpv3_authpassphrase"],$_GET["snmpv3_privpassphrase"],$_GET["formula"],$_GET["trends"]); - show_messages($result, S_ITEM_ADDED, S_CANNOT_ADD_ITEM); + $itemid=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"],$_GET["trends"]); + add_item_to_templates($itemid); + show_messages($itemid, S_ITEM_ADDED, S_CANNOT_ADD_ITEM); unset($_GET["itemid"]); + unset($itemid); } if($_GET["register"]=="add to all hosts") { @@ -93,6 +96,7 @@ } if($_GET["register"]=="delete") { + delete_item_from_templates($_GET["itemid"]); $result=delete_item($_GET["itemid"]); show_messages($result, S_ITEM_DELETED, S_CANNOT_DELETE_ITEM); unset($itemid); |
