diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 407e8e2a5a..7003ddbab0 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 5.1SP1-141001 +Version: 5.1SP1-141002 Architecture: all Priority: optional Section: admin diff --git a/pandora_agents/unix/DEBIAN/make_deb_package.sh b/pandora_agents/unix/DEBIAN/make_deb_package.sh index ed608a3db3..66a0831205 100644 --- a/pandora_agents/unix/DEBIAN/make_deb_package.sh +++ b/pandora_agents/unix/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="5.1SP1-141001" +pandora_version="5.1SP1-141002" echo "Test if you has the tools for to make the packages." whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 8775f9556e..e68f0ee5f1 100644 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -41,7 +41,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '5.1SP1'; -use constant AGENT_BUILD => '141001'; +use constant AGENT_BUILD => '141002'; # Commands to retrieve total memory information in kB use constant TOTALMEMORY_CMDS => { diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index ae95cc0fc4..ead2ddda5d 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_unix %define version 5.1SP1 -%define release 141001 +%define release 141002 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index 586d7a796d..439243794a 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_unix %define version 5.1SP1 -%define release 141001 +%define release 141002 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 8378a3e4d1..53b7f4ae1f 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{141001} +{141002} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 79a6bf5b66..ccf71bbf91 100644 --- a/pandora_agents/win32/pandora.cc +++ b/pandora_agents/win32/pandora.cc @@ -30,7 +30,7 @@ using namespace Pandora; using namespace Pandora_Strutils; #define PATH_SIZE _MAX_PATH+1 -#define PANDORA_VERSION ("5.1SP1(Build 141001)") +#define PANDORA_VERSION ("5.1SP1(Build 141002)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 31611487a5..d0bb6d6196 100644 --- a/pandora_agents/win32/versioninfo.rc +++ b/pandora_agents/win32/versioninfo.rc @@ -11,7 +11,7 @@ BEGIN VALUE "LegalCopyright", "Artica ST" VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "ProductName", "Pandora FMS Windows Agent" - VALUE "ProductVersion", "(5.1SP1(Build 141001))" + VALUE "ProductVersion", "(5.1SP1(Build 141002))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 80a56eb5b5..26e9b586d4 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 5.1SP1-141001 +Version: 5.1SP1-141002 Architecture: all Priority: optional Section: admin diff --git a/pandora_console/DEBIAN/make_deb_package.sh b/pandora_console/DEBIAN/make_deb_package.sh index 09e06ab812..5723e8adba 100644 --- a/pandora_console/DEBIAN/make_deb_package.sh +++ b/pandora_console/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="5.1SP1-141001" +pandora_version="5.1SP1-141002" package_pear=0 package_pandora=1 diff --git a/pandora_console/godmode/agentes/planned_downtime.export_csv.php b/pandora_console/godmode/agentes/planned_downtime.export_csv.php index 58a89ac5dd..2ede890294 100644 --- a/pandora_console/godmode/agentes/planned_downtime.export_csv.php +++ b/pandora_console/godmode/agentes/planned_downtime.export_csv.php @@ -112,8 +112,7 @@ $sql = "SELECT * WHERE $where_values ORDER BY type_execution DESC, date_from DESC"; $downtimes = @db_get_all_rows_sql($sql); -html_debug_print($sql); -html_debug_print($downtimes); + if (!empty($downtimes)) { ob_clean(); // Show contentype header diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 8253245ccc..1e7291a445 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -22,7 +22,7 @@ /** * Pandora build version and version */ -$build_version = 'PC141001'; +$build_version = 'PC141002'; $pandora_version = 'v5.1SP1'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 0578a73612..4bf73d8a5b 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3321,15 +3321,17 @@ function reporting_header_content($mini, $content, $report, &$table, $title = fa function reporting_render_report_html_item ($content, $table, $report, $mini = false) { global $config; global $graphic_type; + + $only_image = (bool)$config['flash_charts'] ? false : true; if ($mini) { $sizem = '1.5'; - $sizgraph_w = '350'; + $sizgraph_w = '450'; $sizgraph_h = '100'; } else { $sizem = '3'; - $sizgraph_w = '750'; + $sizgraph_w = '900'; $sizgraph_h = '230'; } @@ -3402,7 +3404,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $data[0] = grafico_modulo_string ($content['id_agent_module'], $content['period'], false, $sizgraph_w, $sizgraph_h, '', '', false, 1, false, - $report["datetime"], true, $urlImage); + $report["datetime"], $only_image, $urlImage); } else { @@ -3423,7 +3425,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f 0, 0, true, - true, + $only_image, ui_get_full_url(false) . '/', 1, false, @@ -3550,7 +3552,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $data = array (); $data[0] = grafico_modulo_sparse($content['id_agent_module'], $content['period'], false, $sizgraph_w, $sizgraph_h, '', '', false, true, true, - $report["datetime"], '', true, 0, true, true, ui_get_full_url(false) . '/'); + $report["datetime"], '', true, 0, true, $only_image, ui_get_full_url(false) . '/'); /*$data[0] = graphic_combined_module( $modules, @@ -3606,8 +3608,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $sizgraph_h += count($modules) * 15; $table->colspan[1][0] = 3; - $data = array (); - + $data = array(); + require_once ($config["homedir"] . '/include/functions_graph.php'); $data[0] = graphic_combined_module( $modules, @@ -3621,7 +3623,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f 0, $graph["stacked"], $report["datetime"], - true, + $only_image, ui_get_full_url(false) . '/'); array_push ($table->data, $data); @@ -7587,13 +7589,15 @@ function reporting_network_interfaces_table ($content, $report, $mini, $item_tit $ttl = $is_pdf ? 2 : 1; - $graph_width = 600; + $graph_width = 900; $graph_height = 200; $datetime = $report['datetime']; $period = $content['period']; if ($is_pdf) { + $graph_width = 800; + $graph_height = 200; pdf_header_content($pdf, $content, $report, $item_title, false, $content["description"]); } else if ($is_html) { @@ -7614,15 +7618,22 @@ function reporting_network_interfaces_table ($content, $report, $mini, $item_tit } } - $network_interfaces_by_agents = agents_get_network_interfaces(false, array('id_grupo' => $content['id_group'])); + $filter = array( + 'id_grupo' => $content['id_group'], + 'disabled' => 0 + ); + $network_interfaces_by_agents = agents_get_network_interfaces(false, $filter); if (empty($network_interfaces_by_agents)) { - $data = array(); - $table->colspan[$next_row][0] = 3; - $next_row++; - $data[0] = __('The group has no agents or none of the agents has any network interface'); - array_push ($table->data, $data); - $slas = array(); + if ($is_pdf) { + $pdf->addHTML(__('The group has no agents or none of the agents has any network interface')); + } + else if ($is_html) { + $data = array(); + $data[0] = __('The group has no agents or none of the agents has any network interface'); + $table->colspan[$next_row][0] = 3; + array_push ($table->data, $data); + } return; } else { @@ -7681,7 +7692,7 @@ function reporting_network_interfaces_table ($content, $report, $mini, $item_tit if (!empty($interface['traffic'])) { $only_image = !(bool)$config['flash_charts'] || $is_pdf ? true : false; - + $graph = custom_graphs_print(0, $graph_height, $graph_width, diff --git a/pandora_console/include/help/en/help_alert_macros.php b/pandora_console/include/help/en/help_alert_macros.php index 10654b163b..fb67996e7a 100644 --- a/pandora_console/include/help/en/help_alert_macros.php +++ b/pandora_console/include/help/en/help_alert_macros.php @@ -42,6 +42,7 @@ Besides the defined module macros, the following macros are available: