diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-01-22 09:34:31 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-01-22 09:34:31 +0000 |
| commit | 82eae21f70bade28aacd15473cc5b2c2faa36456 (patch) | |
| tree | 97ebcae90adce1042341fee3e682ccab91edc16c /frontends/php/queue.php | |
| parent | 51a7d5d5623df1dec6c5320ac6cd2535e24b1a47 (diff) | |
| download | zabbix-82eae21f70bade28aacd15473cc5b2c2faa36456.tar.gz zabbix-82eae21f70bade28aacd15473cc5b2c2faa36456.tar.xz zabbix-82eae21f70bade28aacd15473cc5b2c2faa36456.zip | |
Fixed Queue screen and zabbix[queue] (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1619 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.php')
| -rw-r--r-- | frontends/php/queue.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/queue.php b/frontends/php/queue.php index 5b8a961d..25fdaa20 100644 --- a/frontends/php/queue.php +++ b/frontends/php/queue.php @@ -41,7 +41,8 @@ <?php $now=time(); - $result=DBselect("select i.itemid, i.nextcheck, i.description, h.host,h.hostid from items i,hosts h where i.status=0 and i.type not in (2) and h.status=".HOST_STATUS_MONITORED." and i.hostid=h.hostid and i.nextcheck<$now and i.key_<>'status' order by i.nextcheck"); + + $result=DBselect("select i.itemid, i.nextcheck, i.description, h.host,h.hostid from items i,hosts h where i.status=0 and i.type not in (2) and ((h.status=".HOST_STATUS_MONITORED." and h.available!=".HOST_AVAILABLE_FALSE.") or (h.status=".HOST_STATUS_MONITORED." and h.available=".HOST_AVAILABLE_FALSE." and h.disable_until<=$now)) and i.hostid=h.hostid and i.nextcheck<$now and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') order by i.nextcheck"); table_begin(); table_header(array(S_NEXT_CHECK,S_HOST,S_DESCRIPTION)); $col=0; |
