summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-06 10:35:54 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-06 10:35:54 +0000
commit09174fc6e94e7ff57d3d1e9f8dd134be4d7645c7 (patch)
tree2af33bb0c90ac5673ff0f4a5ac4837dfb9bc677c /frontends
parent062537835fa9c5abc662e56420dff80edb13d91d (diff)
downloadzabbix-09174fc6e94e7ff57d3d1e9f8dd134be4d7645c7.tar.gz
zabbix-09174fc6e94e7ff57d3d1e9f8dd134be4d7645c7.tar.xz
zabbix-09174fc6e94e7ff57d3d1e9f8dd134be4d7645c7.zip
- [ZBX-76] Display number of members in host groups (Alexei)
[svn merge -r4836:4841 svn://svn.zabbix.com/branches/1.4] git-svn-id: svn://svn.zabbix.com/trunk@4842 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends')
-rw-r--r--frontends/php/hosts.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index 68aed515..3256f737 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -787,6 +787,7 @@ include_once "include/page_header.php";
"CheckAll('".$form->GetName()."','all_groups');"),
SPACE,
S_NAME),
+ " # ",
S_MEMBERS));
$available_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,get_current_nodeid());
@@ -803,11 +804,13 @@ include_once "include/page_header.php";
" and h.status not in (".HOST_STATUS_DELETED.") order by host");
$hosts = array();
+ $count = 0;
while($db_host=DBfetch($db_hosts)){
$style = $db_host["status"]==HOST_STATUS_MONITORED ? NULL: (
$db_host["status"]==HOST_STATUS_TEMPLATE ? "unknown" :
"on");
array_push($hosts,unpack_object(new CSpan($db_host["host"],$style)));
+ $count++;
}
$table->AddRow(array(
@@ -819,6 +822,7 @@ include_once "include/page_header.php";
"hosts.php?form=update&groupid=".$db_group["groupid"].
url_param("config"),'action')
),
+ $count,
implode(', ',$hosts)
));
}