diff options
author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-12 09:40:32 +0000 |
---|---|---|
committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-12 09:40:32 +0000 |
commit | 9b414f6bc817fb041b960df504933d4694e4bd61 (patch) | |
tree | 2add87a62715f0f3d6d7752a30defbee9b611cc1 | |
parent | c585f5c32ab79c3a24b70c5261bb79b372ede897 (diff) | |
download | zabbix-9b414f6bc817fb041b960df504933d4694e4bd61.tar.gz zabbix-9b414f6bc817fb041b960df504933d4694e4bd61.tar.xz zabbix-9b414f6bc817fb041b960df504933d4694e4bd61.zip |
- [DEV-200] Queue for proxies
git-svn-id: svn://svn.zabbix.com/trunk@5898 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r-- | frontends/php/queue.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/frontends/php/queue.php b/frontends/php/queue.php index 3dccc449..ff57eb34 100644 --- a/frontends/php/queue.php +++ b/frontends/php/queue.php @@ -138,6 +138,13 @@ include_once "include/page_header.php"; $sec_rest[$db_proxy['hostid']] = 0; } + $sec_10[0] = 0; + $sec_30[0] = 0; + $sec_60[0] = 0; + $sec_300[0] = 0; + $sec_600[0] = 0; + $sec_rest[0] = 0; + while ($row = DBfetch($result)) { $diff = $now - $row['nextcheck']; @@ -153,7 +160,7 @@ include_once "include/page_header.php"; $table->setHeader(array(S_PROXY,S_5_SECONDS,S_10_SECONDS,S_30_SECONDS,S_1_MINUTE,S_5_MINUTES,S_MORE_THAN_10_MINUTES)); - $db_proxies = DBselect('select hostid,host from hosts where status='.HOST_STATUS_PROXY); + $db_proxies = DBselect('select hostid,host from hosts where status='.HOST_STATUS_PROXY.' order by host'); while (null != ($db_proxy = DBfetch($db_proxies))){ $elements = array( @@ -167,6 +174,16 @@ include_once "include/page_header.php"; ); $table->addRow($elements); } + $elements = array( + new CCol(S_SERVER, 'bold'), + new CCol($sec_10[0], $sec_10[0] ? 'unknown_trigger' : 'normal'), + new CCol($sec_30[0], $sec_30[0] ? 'information' : 'normal'), + new CCol($sec_60[0], $sec_60[0] ? 'warning' : 'normal'), + new CCol($sec_300[0], $sec_300[0] ? 'average' : 'normal'), + new CCol($sec_300[0], $sec_600[0] ? 'high' : 'normal'), + new CCol($sec_rest[0], $sec_rest[0] ? 'disaster' : 'normal') + ); + $table->addRow($elements); } else if ($_REQUEST["show"] == 2) { |