From 32aa4e7f66fdc3d7f4a9fec2e5efdc3cb7417bc1 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Tue, 6 Sep 2005 19:09:52 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@2046 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/triggers.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'frontends/php') diff --git a/frontends/php/triggers.php b/frontends/php/triggers.php index d0666e7e..0045ef19 100644 --- a/frontends/php/triggers.php +++ b/frontends/php/triggers.php @@ -220,11 +220,11 @@ if(isset($_GET["hostid"])&&!isset($_GET["triggerid"])) { table_begin(); - table_header(array(S_ID,S_DESCRIPTION,S_EXPRESSION, S_SEVERITY, S_STATUS, S_ACTIONS)); + table_header(array(S_ID,S_DESCRIPTION,S_EXPRESSION, S_SEVERITY, S_STATUS, S_ERROR, S_ACTIONS)); echo "
"; echo ""; - $result=DBselect("select distinct h.hostid,h.host,t.triggerid,t.expression,t.description,t.status,t.value,t.priority from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and h.hostid=".$_GET["hostid"]." order by h.host,t.description"); + $result=DBselect("select distinct h.hostid,h.host,t.triggerid,t.expression,t.description,t.status,t.value,t.priority,t.error from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and h.hostid=".$_GET["hostid"]." order by h.host,t.description"); $col=0; while($row=DBfetch($result)) { @@ -271,6 +271,11 @@ } // $expression=rawurlencode($row["expression"]); + if($row["error"]=="") + { + $row["error"]=" "; + } + if(isset($_GET["hostid"])) { $actions="".S_CHANGE.""; @@ -294,6 +299,7 @@ explode_exp($row["expression"],1), $priority, $status, + $row["error"], $actions ),$col++); } -- cgit