summaryrefslogtreecommitdiffstats
path: root/frontends/php/report4.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-09-14 11:06:27 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-09-14 11:06:27 +0000
commit8755f9643aba3cffc5320321618fbe8e7b78b73b (patch)
tree61f79790fee2222b1d3c5c3cd3faf09c9de8f168 /frontends/php/report4.php
parent220a18752f8fefdd0af90ccd17cc045c2e6ae1a6 (diff)
downloadzabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.gz
zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.xz
zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.zip
Initial integration of distributed monitoring.
Changes 3196:HEAD of branches/distributed git-svn-id: svn://svn.zabbix.com/trunk@3306 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report4.php')
-rw-r--r--frontends/php/report4.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/frontends/php/report4.php b/frontends/php/report4.php
index 070d67a7..4f0c6283 100644
--- a/frontends/php/report4.php
+++ b/frontends/php/report4.php
@@ -60,7 +60,7 @@
# $h2=S_GROUP.SPACE;
$h2=S_YEAR.SPACE;
$h2=$h2."<select class=\"biginput\" name=\"year\" onChange=\"submit()\">";
- $result=DBselect("select h.hostid,h.host from hosts h,items i where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid group by h.hostid,h.host order by h.host");
+ $result=DBselect("select h.hostid,h.host from hosts h,items i where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and mod(h.hostid,100)=$ZBX_CURNODEID group by h.hostid,h.host order by h.host");
$year=date("Y");
for($year=date("Y")-2;$year<=date("Y");$year++)
@@ -79,7 +79,7 @@
$h2=$h2.SPACE.S_MEDIA_TYPE.SPACE;
$h2=$h2."<select class=\"biginput\" name=\"media_type\" onChange=\"submit()\">";
// $h2=$h2.form_select("media_type","0",S_ALL_SMALL);
- $result=DBselect("select * from media_type order by description");
+ $result=DBselect("select * from media_type where mod(mediatypeid,100)=$ZBX_CURNODEID order by description");
$type_count=0;
while($row=DBfetch($result))
{
@@ -118,6 +118,7 @@
$header=array(new CCol(S_YEAR,"center"));
$uindex=1;
$result=DBselect("select * from users".
+ " where mod(userid,100)=".$ZBX_CURNODEID.
" order by alias");
while($row=DBfetch($result))
{
@@ -184,7 +185,7 @@
{
$header=array(new CCol(SPACE.S_MONTH,"center"));
$uindex=1;
- $result=DBselect("select * from users order by alias");
+ $result=DBselect("select * from users where mod(userid,100)=$ZBX_CURNODEID order by alias");
while($row=DBfetch($result))
{
$header=array_merge($header,array(new CImg("vtext.php?text=".$row["alias"])));
@@ -249,7 +250,7 @@
{
$header=array(new CCol(SPACE.S_DAY,"center"));
$uindex=1;
- $result=DBselect("select * from users order by alias");
+ $result=DBselect("select * from users where mod(userid,100)=$ZBX_CURNODEID order by alias");
while($row=DBfetch($result))
{
$header=array_merge($header,array(new CImg("vtext.php?text=".$row["alias"])));
@@ -321,7 +322,7 @@
$year=date("Y");
$header=array(new CCol(SPACE.S_FROM,"center"),new CCol(SPACE.S_TILL,"center"));
$uindex=1;
- $result=DBselect("select * from users order by alias");
+ $result=DBselect("select * from users where mod(userid,100)=$ZBX_CURNODEID order by alias");
while($row=DBfetch($result))
{
$header=array_merge($header,array(new CImg("vtext.php?text=".$row["alias"])));