diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-08-13 08:22:32 +0000 |
commit | abaab90a1c9d3367f1ef636557cfe8e661716749 (patch) | |
tree | 3e266e5523a635c45a7e7ef6d4571e7323f26065 /frontends/php/report5.php | |
parent | 8901654871973b4267f106a97183001189189c82 (diff) | |
download | zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.gz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.tar.xz zabbix-abaab90a1c9d3367f1ef636557cfe8e661716749.zip |
- merger rev. 4546:4547 of branches/1.4.j [developed data monitoring of multiple nodes]
git-svn-id: svn://svn.zabbix.com/trunk@4549 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report5.php')
-rw-r--r-- | frontends/php/report5.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/frontends/php/report5.php b/frontends/php/report5.php index 85ccda64..3abc20ae 100644 --- a/frontends/php/report5.php +++ b/frontends/php/report5.php @@ -54,7 +54,13 @@ include_once "include/page_header.php"; ?> <?php $table = new CTableInfo(); - $table->setHeader(array(S_HOST,S_TRIGGER,S_SEVERITY,S_NUMBER_OF_STATUS_CHANGES)); + $table->setHeader(array( + is_show_subnodes() ? S_NODE : null, + S_HOST, + S_TRIGGER, + S_SEVERITY, + S_NUMBER_OF_STATUS_CHANGES + )); switch($_REQUEST["period"]) { @@ -71,7 +77,7 @@ include_once "include/page_header.php"; " from hosts h, triggers t, functions f, items i, events e where ". " h.hostid = i.hostid and i.itemid = f.itemid and t.triggerid=f.triggerid and ". ' t.triggerid=e.objectid and e.object='.EVENT_OBJECT_TRIGGER.' and e.clock>'.(time()-$time_dif). - " and h.hostid in (".$accessible_hosts.") and ".DBid2nodeid("t.triggerid")."=".$ZBX_CURNODEID. + ' and h.hostid in ('.$accessible_hosts.') and '.DBin_node('t.triggerid'). " group by h.host,t.triggerid,t.description,t.priority ". " order by count desc, h.host, t.description, t.triggerid", 100); @@ -81,6 +87,7 @@ include_once "include/page_header.php"; continue; $table->addRow(array( + get_node_name_by_elid($row['triggerid']), $row["host"], expand_trigger_description_by_data($row), new CCol(get_severity_description($row["priority"]),get_severity_style($row["priority"])), |