summaryrefslogtreecommitdiffstats
path: root/frontends/php/report2.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-25 14:24:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-08-25 14:24:41 +0000
commit5784b2fcc28da70b6fd6900a711b9c2265cca181 (patch)
treed6aee57b35abb0cf1e442b1eb5b0fb14d1cf6df3 /frontends/php/report2.php
parent73524e327da20dfaebd84dada461366b1778f71a (diff)
downloadzabbix-5784b2fcc28da70b6fd6900a711b9c2265cca181.tar.gz
zabbix-5784b2fcc28da70b6fd6900a711b9c2265cca181.tar.xz
zabbix-5784b2fcc28da70b6fd6900a711b9c2265cca181.zip
Basic support for service availability.
git-svn-id: svn://svn.zabbix.com/trunk@464 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report2.php')
-rw-r--r--frontends/php/report2.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/report2.php b/frontends/php/report2.php
index d7b47b6b..0033eb1e 100644
--- a/frontends/php/report2.php
+++ b/frontends/php/report2.php
@@ -21,12 +21,12 @@
{
continue;
}
- if( isset($hostid) && ($hostid == $row["hostid"]) )
+ if( isset($HTTP_GET_VARS["hostid"]) && ($HTTP_GET_VARS["hostid"] == $row["hostid"]) )
{
echo "<b>[";
}
echo "<a href='report2.php?hostid=".$row["hostid"]."'>".$row["host"]."</a>";
- if(isset($hostid) && ($hostid == $row["hostid"]) )
+ if(isset($HTTP_GET_VARS["hostid"]) && ($HTTP_GET_VARS["hostid"] == $row["hostid"]) )
{
echo "]</b>";
}
@@ -38,14 +38,14 @@
?>
<?
- if(isset($hostid))
+ if(isset($HTTP_GET_VARS["hostid"]))
{
echo "<br>";
- $result=DBselect("select host from hosts where hostid=$hostid");
+ $result=DBselect("select host from hosts where hostid=".$HTTP_GET_VARS["hostid"]);
$row=DBfetch($result);
show_table_header($row["host"]);
- $result=DBselect("select distinct h.hostid,h.host,t.triggerid,t.expression,t.description,t.value from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.status=0 and t.triggerid=f.triggerid and h.hostid=$hostid and h.status in (0,2) and i.status=0 order by h.host, t.description");
+ $result=DBselect("select distinct h.hostid,h.host,t.triggerid,t.expression,t.description,t.value from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.status=0 and t.triggerid=f.triggerid and h.hostid=".$HTTP_GET_VARS["hostid"]." and h.status in (0,2) and i.status=0 order by h.host, t.description");
echo "<TABLE BORDER=0 COLS=3 WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TR>";
echo "<TD><B>Description</B></TD>";