diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-07 07:47:25 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-07 07:47:25 +0000 |
commit | 7a4b3f6a57f9b063f5acb77ecded743dc139f8cf (patch) | |
tree | 80f1d3dbd0af363c16ab00e94f0d09dd736c1f3c /frontends/php/overview.php | |
parent | a3c18691bd39cd254cf8636fceae94c22c1b6a4a (diff) | |
download | zabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.tar.gz zabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.tar.xz zabbix-7a4b3f6a57f9b063f5acb77ecded743dc139f8cf.zip |
- improved filter by hosts and groups (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2723 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/overview.php')
-rw-r--r-- | frontends/php/overview.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index 3372e0f3..dfc6cca2 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -60,14 +60,14 @@ ); check_fields($fields); + + validate_group("R",array("allow_all_hosts","monitored_hosts","with_monitored_items")); ?> <?php - $_REQUEST["groupid"] = get_request("groupid",get_profile("web.overview.groupid",0)); $_REQUEST["type"] = get_request("type",get_profile("web.overview.type",0)); update_profile("web.menu.view.last",$page["file"]); - update_profile("web.overview.groupid",$_REQUEST["groupid"]); update_profile("web.overview.type",$_REQUEST["type"]); ?> @@ -82,7 +82,7 @@ { $result2=DBselect("select h.hostid,h.host from hosts h,items i,hosts_groups hg where". " h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$row["groupid"]. - " and hg.hostid=h.hostid group by h.hostid,h.host order by h.host"); + " and i.status=".ITEM_STATUS_ACTIVE." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host"); while($row2=DBfetch($result2)) { if(!check_right("Host","R",$row2["hostid"])) continue; |