An admin gets a message that the host group can not be updated when trying to modify an existing host group under "Configuration" -> "Host Groups" The following patch fixes the problem. The group name was being compared instead of the groupid.
Code:
diff -ruN /root/zabbix-original/frontends/php/api/classes/class.chostgroup.php /root/zabbix/frontends/php/api/classes/class.chostgroup.php
--- /root/zabbix-original/frontends/php/api/classes/class.chostgroup.php 2009-10-20 01:13:44.000000000 -0400
+++ /root/zabbix/frontends/php/api/classes/class.chostgroup.php 2009-10-20 03:27:48.000000000 -0400
@@ -486,7 +486,7 @@
foreach($groups as $group){
$group_exist = CHostGroup::getId(array('name' => $group['name']));
- if($group_exist && ($group_exist != $group['name'])){
+ if($group_exist && ($group_exist != $group['groupid'])){
$error = "HostGroup [ $group ] already exists";
$result = false;
break;