diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-03-28 06:45:24 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-03-28 06:45:24 +0000 |
| commit | 022c314f462ac48871a993b5f6282443953cfd24 (patch) | |
| tree | cd0aac8efb9596281278d0a14d963950ab59c763 /frontends/php/queue.html | |
| parent | f8d8ef1358a8e40b920aeae8141567c5ce5e5238 (diff) | |
| download | zabbix-022c314f462ac48871a993b5f6282443953cfd24.tar.gz zabbix-022c314f462ac48871a993b5f6282443953cfd24.tar.xz zabbix-022c314f462ac48871a993b5f6282443953cfd24.zip | |
Initial revision
git-svn-id: svn://svn.zabbix.com/trunk@2 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.html')
| -rw-r--r-- | frontends/php/queue.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/frontends/php/queue.html b/frontends/php/queue.html new file mode 100644 index 00000000..baa374d8 --- /dev/null +++ b/frontends/php/queue.html @@ -0,0 +1,52 @@ +<? + include "config.inc"; + $title = "Information about monitoring server"; + show_header($title,10); +?> + +<? + show_table_header("QUEUE OF ITEMS TO BE UPDATED"); + + echo "<br>"; + + show_table_header("QUEUE"); +?> +<? + $result=mysql_query("select i.itemid, from_unixtime(i.nextcheck), i.description, h.host from items i,hosts h where i.status=0 and h.status=0 and i.hostid=h.hostid and i.nextcheck<UNIX_TIMESTAMP() order by i.nextcheck;",$mysql); + $i=0; + echo "<table border=0 width=100% bgcolor='#CCCCCC' cellspacing=1 cellpadding=3>"; + echo "\n"; + echo "<tr><td><b>Next time to check</b></td><td><b>Host</b></td><td><b>Description</b></td></tr>"; + echo "\n"; + while($row=mysql_fetch_row($result)) + { + $i++; + $itemid=$row[0]; + $time=$row[1]; + $description=$row[2]; + $host=$row[3]; + + if($col==1) + { + echo "<tr bgcolor=#EEEEEE>"; + $col=0; + } else + { + echo "<tr bgcolor=#DDDDDD>"; + $col=1; + } + echo "\n"; + echo "<td>$time</td><td>$host</td><td>$description</td>"; + echo "\n"; + echo "</tr>"; + echo "\n"; + } + echo "</table>"; +?> +<? + show_table_header("Total:$i"); +?> + +<? + show_footer(); +?> |
