예제 #1
0
 $dst_title = _("Dst Asset") . ": <b>{$asset_dst}</b><br>" . _("IP") . ": <b>{$dst_ip}</b>";
 $buffer .= "<td nowrap='nowrap'>";
 if (!$view) {
     $buffer .= "<span style='color:gray'>X.X.X.X</span>";
 } else {
     $buffer .= "{$src_img} <a href='{$href_sim}' class='HostReportMenu greybox {$homelan_src}' id2='{$src_ip};{$dst_ip}' id='{$src_ip};{$src_name};" . $event_info["src_host"] . "' ctx='{$ctx}'>{$src_name}{$src_port}</a>";
 }
 $buffer .= "</td>";
 $buffer .= "<td nowrap='nowrap'>";
 if (!$view) {
     $buffer .= "<span style='color:gray'>X.X.X.X</span>";
 } else {
     $buffer .= "{$dst_img} <a href='{$href_sim}' class='HostReportMenu greybox {$homelan_dst}' id2='{$dst_ip};{$src_ip}' id='{$dst_ip};{$dst_name};" . $event_info["dst_host"] . "' ctx='{$ctx}'>{$dst_name}{$dst_port}</a>";
 }
 $buffer .= "</td>";
 $otx_icon = Alarm::get_alarm_event_otx_icon($conn, $aid);
 if ($otx_icon) {
     $alarm_otx = "<img src='{$otx_icon}' class='otx_icon pointer' data-event='{$aid}'/>";
 } else {
     $alarm_otx = _('N/A');
 }
 $buffer .= '<td>' . $alarm_otx . '</td>';
 $buffer .= "<td " . (!$view ? "style='color:gray'" : "") . ">" . $alarm->get_rule_level() . "</td>";
 $buffer .= "</tr>";
 if ($highest_rule_level == 0) {
     $highest_rule_level = $alarm->get_rule_level();
 }
 // Alarm summary
 if (!$show_all || $id == 1505) {
     $summ_count = $summary["count"];
     $summ_event_count += $summ_count;