summaryrefslogtreecommitdiffstats
path: root/frontends/php/overview.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-07 07:47:25 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-04-07 07:47:25 +0000
commit7a4b3f6a57f9b063f5acb77ecded743dc139f8cf (patch)
tree80f1d3dbd0af363c16ab00e94f0d09dd736c1f3c /frontends/php/overview.php
parenta3c18691bd39cd254cf8636fceae94c22c1b6a4a (diff)
downloadzabbix-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.php6
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;