diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-22 14:12:44 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-22 14:12:44 +0000 |
| commit | 6a552162aec2f5792283711b4045b2a46eb51cd0 (patch) | |
| tree | 6aa24787e5f4e11455d494b2b79ddc2493793419 /frontends/php/graphs.php | |
| parent | d25027cf11279e91edd6658f4c5f9e7a35231b43 (diff) | |
| download | zabbix-6a552162aec2f5792283711b4045b2a46eb51cd0.tar.gz zabbix-6a552162aec2f5792283711b4045b2a46eb51cd0.tar.xz zabbix-6a552162aec2f5792283711b4045b2a46eb51cd0.zip | |
- fixed graph duplication (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2878 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
| -rw-r--r-- | frontends/php/graphs.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php index 133ddb9a..92a735d2 100644 --- a/frontends/php/graphs.php +++ b/frontends/php/graphs.php @@ -32,7 +32,7 @@ "groupid"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, NULL), "hostid"=> array(T_ZBX_INT, O_OPT, NULL, DB_ID, NULL), - "graphid"=> array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, '{form}=="update"'), + "graphid"=> array(T_ZBX_INT, O_OPT, P_SYS, DB_ID, '{form}=="update"'), "name"=> array(T_ZBX_STR, O_OPT, NULL, NOT_EMPTY, 'isset({save})'), "width"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535), 'isset({save})'), "height"=> array(T_ZBX_INT, O_OPT, NULL, BETWEEN(0,65535), 'isset({save})'), @@ -147,7 +147,7 @@ // Check if at least one host with read permission exists for this group $result2=DBselect("select h.hostid,h.host from hosts h,items i,hosts_groups hg". " where h.hostid=i.hostid and hg.groupid=".$row["groupid"]. - " and hg.hostid=h.hostid and h.status not in (".HOST_STATUS_DELETED.")". + " and hg.hostid=h.hostid and h.status=".HOST_STATUS_MONITORED. " group by h.hostid,h.host order by h.host"); while($row2=DBfetch($result2)) { @@ -169,13 +169,13 @@ { $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg". " where h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]. - " and hg.hostid=h.hostid"." and h.status not in (".HOST_STATUS_DELETED.")". + " and hg.hostid=h.hostid"." and h.status=".HOST_STATUS_MONITORED. " group by h.hostid,h.host order by h.host"; } else { $sql="select h.hostid,h.host from hosts h,items i where h.hostid=i.hostid". - " and h.status not in (".HOST_STATUS_DELETED.") group by h.hostid,h.host". + " and h.status=".HOST_STATUS_MONITORED." group by h.hostid,h.host". " order by h.host"; } |
