diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 5a8eb06b06..54f862de49 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -5311,6 +5311,12 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f case 'network_interfaces_report': reporting_network_interfaces_table($content, $report, $mini, $item_title, $table); break; + case 'availability': + if (empty($item_title)) { + $item_title = __('Availability'); + } + reporting_header_content($mini, $content, $report, $table, $item_title); + break; case 'general': if (empty($item_title)) { $item_title = __('General'); @@ -5330,6 +5336,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f array_push($table->data, $data_desc); } + + switch ($group_by_agent) { //0 means not group by agent case 0: diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index 62b1c924c5..1e48c57d86 100644 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -576,7 +576,8 @@ function reports_get_report_types ($template = false, $not_editor = false) { 'name' => __('Top n')); $types['network_interfaces_report'] = array('optgroup' => __('Grouped'), 'name' => __('Network interfaces')); - + $types['availability'] = array('optgroup' => __('Grouped'), + 'name' => __('Availability')); $types['text'] = array('optgroup' => __('Text/HTML '),