diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-09-06 19:09:52 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-09-06 19:09:52 +0000 |
| commit | 32aa4e7f66fdc3d7f4a9fec2e5efdc3cb7417bc1 (patch) | |
| tree | 7ca499cf3d8dad9cae3a7dcf84305f5b9363a577 /frontends/php/triggers.php | |
| parent | 61e6766bf1dd3a14331b5390001ad252ec933a7c (diff) | |
| download | zabbix-32aa4e7f66fdc3d7f4a9fec2e5efdc3cb7417bc1.tar.gz zabbix-32aa4e7f66fdc3d7f4a9fec2e5efdc3cb7417bc1.tar.xz zabbix-32aa4e7f66fdc3d7f4a9fec2e5efdc3cb7417bc1.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2046 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/triggers.php')
| -rw-r--r-- | frontends/php/triggers.php | 10 |
1 files changed, 8 insertions, 2 deletions
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 "<form method=\"get\" action=\"triggers.php\">"; echo "<input class=\"biginput\" name=\"hostid\" type=hidden value=".$_GET["hostid"]." size=8>"; - $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="<A HREF=\"triggers.php?triggerid=".$row["triggerid"]."&hostid=".$row["hostid"]."#form\">".S_CHANGE."</A>"; @@ -294,6 +299,7 @@ explode_exp($row["expression"],1), $priority, $status, + $row["error"], $actions ),$col++); } |
