summaryrefslogtreecommitdiffstats
path: root/frontends/php/overview.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-09 16:31:08 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-09 16:31:08 +0000
commit14ff3ed5e0bb7d48892fe423341abae2a4270ae6 (patch)
tree98333c9ac354611b08acc25ae06ea86a0f267bde /frontends/php/overview.php
parent7a505e5daab145ee59695903723ed87071b9b17a (diff)
downloadzabbix-14ff3ed5e0bb7d48892fe423341abae2a4270ae6.tar.gz
zabbix-14ff3ed5e0bb7d48892fe423341abae2a4270ae6.tar.xz
zabbix-14ff3ed5e0bb7d48892fe423341abae2a4270ae6.zip
- Overview screen won't show disabled triggers (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2503 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 4846003d..6aefbf1c 100644
--- a/frontends/php/overview.php
+++ b/frontends/php/overview.php
@@ -185,7 +185,7 @@
$table = new Ctable();
$header=array("&nbsp;");
$hosts=array();
- $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg,functions f,triggers t where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid group by h.hostid,h.host order by h.host";
+ $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg,functions f,triggers t where h.status=".HOST_STATUS_MONITORED." and t.status=".TRIGGER_STATUS_ENABLED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid group by h.hostid,h.host order by h.host";
$result=DBselect($sql);
while($row=DBfetch($result))
{
@@ -215,14 +215,14 @@
$_REQUEST["sort"]="order by i.description";
}
// $sql="select distinct description from items order by 1;";
- $sql="select distinct t.description from hosts h,items i,hosts_groups hg,triggers t,functions f where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid order by 1";
+ $sql="select distinct t.description from hosts h,items i,hosts_groups hg,triggers t,functions f where h.status=".HOST_STATUS_MONITORED." and t.status=".TRIGGER_STATUS_ENABLED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid order by 1";
$result=DBselect($sql);
while($row=DBfetch($result))
{
$rows=array(nbsp($row["description"]));
foreach($hosts as $hostid)
{
- $sql="select t.status,t.value,t.lastchange from triggers t,functions f,items i where f.triggerid=t.triggerid and i.itemid=f.itemid and i.hostid=$hostid and t.description='".addslashes($row["description"])."'";
+ $sql="select t.status,t.value,t.lastchange from triggers t,functions f,items i where f.triggerid=t.triggerid and i.itemid=f.itemid and t.status=".TRIGGER_STATUS_ENABLED." and i.hostid=$hostid and t.description='".addslashes($row["description"])."'";
$result2=DBselect($sql);
if(DBnum_rows($result2)==1)
{