diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
commit | abaab90a1c9d3367f1ef636557cfe8e661716749 (patch) | |
tree | 3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/httpmon.php | |
parent | 8901654871973b4267f106a97183001189189c82 (diff) | |
download | zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.gz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.xz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.zip |
- merger rev. 4546:4547 of branches/1.4.j [developed data monitoring of multiple nodes]
git-svn-id: svn://svn.zabbix.com/trunk@4549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/httpmon.php')
-rw-r--r-- | frontends/php/httpmon.php | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/frontends/php/httpmon.php b/frontends/php/httpmon.php index 1f7ef954..eb0c387c 100644 --- a/frontends/php/httpmon.php +++ b/frontends/php/httpmon.php @@ -92,8 +92,8 @@ include_once "include/page_header.php"; $cmbGroup = new CComboBox("groupid",$_REQUEST["groupid"],"submit();"); $cmbGroup->AddItem(0,S_ALL_SMALL); - $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,$ZBX_CURNODEID); - $accessible_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST, null, null, $ZBX_CURNODEID); + $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,get_current_nodeid()); + $accessible_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST, null, null, get_current_nodeid()); $result=DBselect('select distinct g.groupid,g.name from groups g, hosts_groups hg, hosts h, '. ' applications a, httptest ht where g.groupid in ('.$accessible_groups.') '. @@ -103,7 +103,10 @@ include_once "include/page_header.php"; " order by g.name"); while($row=DBfetch($result)) { - $cmbGroup->AddItem($row["groupid"],$row["name"]); + $cmbGroup->AddItem( + $row['groupid'], + get_node_name_by_elid($row['groupid']).$row['name'] + ); } $form->AddItem(S_GROUP.SPACE); $form->AddItem($cmbGroup); @@ -131,7 +134,10 @@ include_once "include/page_header.php"; $result=DBselect($sql); while($row=DBfetch($result)) { - $cmbHosts->AddItem($row["hostid"],$row["host"]); + $cmbHosts->AddItem( + $row['hostid'], + get_node_name_by_elid($row['hostid']).$row['host'] + ); } $form->AddItem(SPACE.S_HOST.SPACE); @@ -155,6 +161,7 @@ include_once "include/page_header.php"; $table = new CTableInfo(); $table->SetHeader(array( + is_show_subnodes() ? S_NODE : null, $_REQUEST["hostid"] ==0 ? S_HOST : NULL, array($link, SPACE, S_NAME), S_NUMBER_OF_STEPS, @@ -233,6 +240,7 @@ include_once "include/page_header.php"; } array_push($app_rows, new CRow(array( + is_show_subnodes() ? SPACE : null, $_REQUEST["hostid"] > 0 ? NULL : SPACE, array(str_repeat(SPACE,6), $name), $step_cout, @@ -259,7 +267,11 @@ include_once "include/page_header.php"; $col->SetColSpan(6); - $table->AddRow(array($_REQUEST["hostid"] > 0 ? NULL : $db_app["host"], $col)); + $table->AddRow(array( + get_node_name_by_elid($db_app['applicationid']), + $_REQUEST["hostid"] > 0 ? NULL : $db_app["host"], + $col + )); $any_app_exist = true; |