diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 328d6e795e..1fc12dbbeb 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 5.1-140922 +Version: 5.1-140923 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 0b6a1e1999..64a50ba914 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.1-140922" +pandora_version="5.1-140923" 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 eb5e5c33e3..531c28dd69 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.1'; -use constant AGENT_BUILD => '140922'; +use constant AGENT_BUILD => '140923'; # 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 aacd919016..3e3d7f70f3 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.1 -%define release 140922 +%define release 140923 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 da35985134..d0f95de33e 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.1 -%define release 140922 +%define release 140923 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 030c5eccc2..0eaf9ad0d0 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{140922} +{140923} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index f3b5b7c787..68885f4e44 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.1(Build 140922)") +#define PANDORA_VERSION ("5.1(Build 140923)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index ce37158537..1bac33f9e0 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.1(Build 140922))" + VALUE "ProductVersion", "(5.1(Build 140923))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_agents/win32/windows/pandora_wmi.cc b/pandora_agents/win32/windows/pandora_wmi.cc index adfb77cc02..c541d44745 100644 --- a/pandora_agents/win32/windows/pandora_wmi.cc +++ b/pandora_agents/win32/windows/pandora_wmi.cc @@ -372,8 +372,16 @@ Pandora_Wmi::getOSName () { dhGetValue (L"%s", &name, quickfix, L".Caption"); - ret = name; - dhFreeString (name); + if (name != NULL) { + // Remove the (R) character. + for (int i = 0; i < strlen(name); i++) { + if ((unsigned char)name[i] == 0xAE) { + name[i] = ' '; + } + } + ret = name; + dhFreeString (name); + } } NEXT_THROW (quickfix); } catch (string errstr) { @@ -406,6 +414,12 @@ Pandora_Wmi::getOSVersion () { L".CSDVersion"); if (version != NULL) { + // Remove the (R) character. + for (int i = 0; i < strlen(version); i++) { + if ((unsigned char)version[i] == 0xAE) { + version[i] = ' '; + } + } ret = version; dhFreeString (version); } diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 8d900f779c..f0f1531a97 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 5.1-140922 +Version: 5.1-140923 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 b9e1c6c025..d48b1cdaf6 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.1-140922" +pandora_version="5.1-140923" package_pear=0 package_pandora=1 diff --git a/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql b/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql index 3793bbbe3d..8608e47282 100644 --- a/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql @@ -259,6 +259,11 @@ UPDATE FROM `network_component` SET `post_process`= 0.000000115740741 WHERE `id_ UPDATE FROM `network_component` SET `unit`= 'day' WHERE `id_nc`=53; -- --------------------------------------------------------------------- --- Table `network_component` +-- Table `tnetwork_component` -- --------------------------------------------------------------------- -ALTER TABLE `tnetwork_component` MODIFY COLUMN `post_process` DOUBLE(18,15) DEFAULT 0; +ALTER TABLE `tnetwork_component` MODIFY COLUMN `post_process` DOUBLE(24,15) DEFAULT 0; + +-- --------------------------------------------------------------------- +-- Table `tagente_modulo` +-- --------------------------------------------------------------------- +ALTER TABLE `tagente_modulo` MODIFY COLUMN `post_process` DOUBLE(24,15) DEFAULT 0; diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php index a1d040a5a3..d94633f46e 100644 --- a/pandora_console/general/logon_ok.php +++ b/pandora_console/general/logon_ok.php @@ -39,7 +39,8 @@ if (tags_has_user_acl_tags()) { // Site news ! // --------------------------------------------------------------------- -echo '
'; +//echo '
'; +echo '
'; //////////////////NEWS BOARD///////////////////////////// echo '
'; @@ -164,7 +165,8 @@ echo '
'; // --------------------------------------------------------------------------- // Site stats (global!) // --------------------------------------------------------------------------- -echo '
'; +//echo '
'; +echo '
'; $data = reporting_get_group_stats (); /////////////// diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index d8a7da7fcc..fc3bf64b2f 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -739,6 +739,14 @@ $(document).ready (function () { event.preventDefault(); } }); + + //validate post_process. Change ',' by '.' + $("#submit-updbutton").click (function () { + validate_post_process(); + }); + $("#submit-crtbutton").click (function () { + validate_post_process(); + }); }); @@ -961,6 +969,12 @@ function delete_relation (num_row, id_relation) { } } +function validate_post_process() { + var post_process = $("#text-post_process").val(); + var new_post_process = post_process.replace(',','.'); + $("#text-post_process").val(new_post_process); +} + /* End of relationship javascript */ /* ]]> */ diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index 3cafe9fcdf..c75b7a5812 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -85,7 +85,13 @@ $max_critical = (float) get_parameter ('max_critical'); $str_critical = (string) get_parameter ('str_critical'); $ff_event = (int) get_parameter ('ff_event'); $history_data = (bool) get_parameter ('history_data'); -$post_process = (float) get_parameter('post_process'); + +// Don't read as (float) because it lost it's decimals when put into MySQL +// where are very big and PHP uses scientific notation, p.e: +// 1.23E-10 is 0.000000000123 + +$post_process = (string) get_parameter ('post_process', 0.0); + $unit = (string) get_parameter('unit'); $id = (int) get_parameter ('id'); $wizard_level = get_parameter ('wizard_level', 'nowizard'); diff --git a/pandora_console/godmode/modules/manage_network_components_form_network.php b/pandora_console/godmode/modules/manage_network_components_form_network.php index 84c0869ed6..6104fa9462 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_network.php +++ b/pandora_console/godmode/modules/manage_network_components_form_network.php @@ -100,3 +100,19 @@ $table->colspan['tcp_receive'][1] = 3; push_table_row ($data, 'tcp_receive'); ?> + diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 09240b8d4f..c45b61696e 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 = 'PC140922'; +$build_version = 'PC140923'; $pandora_version = 'v5.1'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php index 41b28bb872..4b1c12acf0 100644 --- a/pandora_console/include/functions_custom_graphs.php +++ b/pandora_console/include/functions_custom_graphs.php @@ -152,7 +152,7 @@ function custom_graphs_get_user ($id_user = 0, $only_names = false, $returnAllGr function custom_graphs_print($id_graph, $height, $width, $period, $stacked = null, $return = false, $date = 0, $only_image = false, - $background_color = 'white', $modules_param = array()) { + $background_color = 'white', $modules_param = array(), $homeurl = '') { global $config; @@ -210,7 +210,7 @@ function custom_graphs_print($id_graph, $height, $width, $period, $stacked, $date, $only_image, - '', + $homeurl, 1, false, false, diff --git a/pandora_console/include/help/en/help_postprocess.php b/pandora_console/include/help/en/help_postprocess.php index 3b5f3b5bcd..985904e475 100644 --- a/pandora_console/include/help/en/help_postprocess.php +++ b/pandora_console/include/help/en/help_postprocess.php @@ -5,6 +5,11 @@ ?>

Post process

-Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000. +Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000. Some other interesting examples are: +
  • Convert timeticks (SNMP) to Days: 0.000000115740741 +
  • Convert bytes into MegaBytes: 0,00000095367432 +
  • Convert bytes into GigaBytes: 0,00000000093132 +
  • Convert megabits in megabytes: 0,125 +


  • An empty value, or 0, will disable the usage of post process (default). diff --git a/pandora_console/include/help/es/help_postprocess.php b/pandora_console/include/help/es/help_postprocess.php index cd3991156c..1e3b87ec9a 100644 --- a/pandora_console/include/help/es/help_postprocess.php +++ b/pandora_console/include/help/es/help_postprocess.php @@ -6,5 +6,13 @@

    Posprocesado

    El posprocesado es un valor numérico usado después de obtener el dato para posprocesar dicho dato de forma numérica en una multiplicación. Por ejemplo, datos con un valor de 1000 con un valor de Posprocesado de 1024 darán como resultado un valor final de 1024000. Esto es útil para normalizar los datos, convertir entre unidades, etc. Esto también se puede usar para dividir, usando un valor de multiplicador inferior a 1, como, por ejemplo, 0.001 que dividirá el valor actual por 1000. + +Algunos ejemplos interesantes, son por ejemplo:
    +
  • Convertir timeticks (SNMP) a Dias: 0.000000115740741 +
  • Convertir bytes en MegaBytes: 0,00000095367432 +
  • Convertir bytes en GigaBytes: 0,00000000093132 +
  • Convertir megabits en megabytes: 0,125 + +

    Un valor vacío o «0» desactivará el uso del posprocesado (predeterminado). diff --git a/pandora_console/include/javascript/pandora_snmp_browser.js b/pandora_console/include/javascript/pandora_snmp_browser.js index bfada5f5e6..76661740bb 100644 --- a/pandora_console/include/javascript/pandora_snmp_browser.js +++ b/pandora_console/include/javascript/pandora_snmp_browser.js @@ -22,9 +22,9 @@ function snmpBrowse () { var snmp3_auth_user = $('#text-snmp3_browser_auth_user').val(); var snmp3_security_level = $('#snmp3_browser_security_level').val(); var snmp3_auth_method = $('#snmp3_browser_auth_method').val(); - var snmp3_auth_pass = $('#text-snmp3_browser_auth_pass').val(); + var snmp3_auth_pass = $('#password-snmp3_browser_auth_pass').val(); var snmp3_privacy_method = $('#snmp3_browser_privacy_method').val(); - var snmp3_privacy_pass = $('#text-snmp3_browser_privacy_pass').val(); + var snmp3_privacy_pass = $('#password-snmp3_browser_privacy_pass').val(); var ajax_url = $('#hidden-ajax_url').val(); // Prepare the AJAX call diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 00baa4c3c6..3411c6a6bb 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -2724,7 +2724,7 @@ table#policy_modules td * { } #news_board { - width: 750px; + width: 530px; } #right_column_logon_ok { diff --git a/pandora_console/install.php b/pandora_console/install.php index 39c1951703..2d454e5eaf 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -63,7 +63,7 @@
    $id_agente, "id_tipo_modulo" => (int)db_get_value("id_tipo", "ttipo_modulo", "nombre", "remote_snmp_proc") ); -$modules = agents_get_modules ($id_agente, $columns, $filter); +$modules = agents_get_modules($id_agente, $columns, $filter); if (! empty($modules)) { $table_interface = new stdClass(); @@ -387,7 +387,8 @@ if (! empty($modules)) { $table_interface->class = 'databox'; $table_interface->width = '100%'; $table_interface->style = array(); - $table_interface->style[1] = 'width: 30px;'; + $table_interface->style['interface_status'] = 'width: 30px;'; + $table_interface->style['interface_graph'] = 'width: 20px;'; $table_interface->head = array(); $options = array( "class" => "closed", @@ -396,7 +397,7 @@ if (! empty($modules)) { $table_interface->head[0] = html_print_image("images/go.png", true, $options) . "  "; $table_interface->head[0] .= '' . __('Interface information') .' (SNMP)'; $table_interface->head_colspan = array(); - $table_interface->head_colspan[0] = 4; + $table_interface->head_colspan[0] = 5; $table_interface->data = array(); foreach ($modules as $key => $module) { @@ -405,7 +406,7 @@ if (! empty($modules)) { if (preg_match ("/_(.+)$/", (string)$module['nombre'], $matches)) { if ($matches[1]) { $interface_name = $matches[1]; - + $module_id = $module['id_agente_modulo']; $db_status = modules_get_agentmodule_status($module_id); $module_value = modules_get_last_value ($module_id); @@ -428,12 +429,59 @@ if (! empty($modules)) { $description = $matches[0]; } } + + // Get the ifInOctets and ifOutOctets modules of the interface + $columns = array( + "id_agente_modulo", + "nombre" + ); + $interface_traffic_modules = agents_get_modules($id_agente, $columns, "nombre LIKE 'if%Octets_$interface_name'"); + if (!empty($interface_traffic_modules) && count($interface_traffic_modules) >= 2) { + $interface_traffic_modules_aux = array('in' => '', 'out' => ''); + foreach ($interface_traffic_modules as $interface_traffic_module) { + if (preg_match ("/if(.+)Octets_$interface_name$/i", (string)$interface_traffic_module['nombre'], $matches)) { + if (strtolower($matches[1]) == 'in') { + $interface_traffic_modules_aux['in'] = $interface_traffic_module['id_agente_modulo']; + } + elseif (strtolower($matches[1]) == 'out') { + $interface_traffic_modules_aux['out'] = $interface_traffic_module['id_agente_modulo']; + } + } + } + if (!empty($interface_traffic_modules_aux['in']) && !empty($interface_traffic_modules_aux['out'])) { + $interface_traffic_modules = $interface_traffic_modules_aux; + } + else { + $interface_traffic_modules = false; + } + } + else { + $interface_traffic_modules = false; + } + + if ($interface_traffic_modules != false) { + $params = array( + 'interface_name' => $interface_name, + 'agent_id' => $id_agente, + 'traffic_module_in' => $interface_traffic_modules_aux['in'], + 'traffic_module_out' => $interface_traffic_modules_aux['out'] + ); + $params_json = json_encode($params); + $params_encoded = base64_encode($params_json); + $win_handle = dechex(crc32($module_id.$interface_name)); + $graph_link = "" . + html_print_image("images/chart_curve.png", true, array("title" => __('Interface traffic'))) . ""; + } + else { + $graph_link = ""; + } $data = array(); - $data[0] = "" . $interface_name . ""; - $data[1] = $status; - $data[2] = $ip_target; - $data[3] = $description; + $data['interface_name'] = "" . $interface_name . ""; + $data['interface_status'] = $status; + $data['interface_graph'] = $graph_link; + $data['interface_ip'] = $ip_target; + $data['interface_mac'] = $description; $table_interface->data[] = $data; } } @@ -446,17 +494,18 @@ if (! empty($modules)) { $(document).ready (function () { $("#agent_interface_info").find("tbody").hide(); $("#agent_interface_info").find("thead").click (function () { - var arrow = $("#agent_interface_info").find("thead").find("img"); - if (arrow.hasClass("closed")) { - arrow.removeClass("closed"); - arrow.prop("src", "images/down.png"); - $("#agent_interface_info").find("tbody").show(); - } else { - arrow.addClass("closed"); - arrow.prop("src", "images/go.png"); - $("#agent_interface_info").find("tbody").hide(); - } - }); + var arrow = $("#agent_interface_info").find("thead").find("img"); + if (arrow.hasClass("closed")) { + arrow.removeClass("closed"); + arrow.prop("src", "images/down.png"); + $("#agent_interface_info").find("tbody").show(); + } else { + arrow.addClass("closed"); + arrow.prop("src", "images/go.png"); + $("#agent_interface_info").find("tbody").hide(); + } + }) + .css('cursor', 'pointer'); }); load_tables(); +} + +echo ''; + +$params_json = base64_decode((string) get_parameter('params')); +$params = json_decode($params_json, true); + +$interface_name = (string) $params['interface_name']; +$agent_id = (int) $params['agent_id']; +$interface_traffic_modules = array( + 'in' => (int) $params['traffic_module_in'], + 'out' => (int) $params['traffic_module_out'] + ); +?> + + + + 0) { + $query = ui_get_url_refresh(false); + + echo ''; + } +?> + + Pandora FMS Graph (<?php echo agents_get_name($agent_id) . ' - ' . $interface_name; ?>) + + + + + + + + + 1) { + $height = $height * ($zoom / 2.1); + $width = $width * ($zoom / 1.4); + + echo ""; + } + + $current = date("Y-m-d"); + + if ($start_date != $current) + $date = strtotime($start_date); + else + $date = $utime; + + $urlImage = ui_get_full_url(false); + + if ($config['flash_charts'] == 1) + echo '
    '; + else + echo '
    '; + + $modules = array($interface_traffic_modules['in'], $interface_traffic_modules['out']); + custom_graphs_print(0, $height, $width, $period, null, false, $date, false, 'white', $modules, $config['homeurl']); + + echo '
    '; + + /////////////////////////// + // SIDE MENU + /////////////////////////// + $side_layer_params = array(); + // TOP TEXT + $side_layer_params['top_text'] = "
    " . html_print_image('images/config_mc.png', true, array('width' => '16px')) . ' ' . __('Pandora FMS Graph configuration menu') . "
    "; + $side_layer_params['body_text'] = "'; // outer + + // ICONS + $side_layer_params['icon_closed'] = '/images/graphmenu_arrow_hide.png'; + $side_layer_params['icon_open'] = '/images/graphmenu_arrow.png'; + + // SIZE + $side_layer_params['width'] = 500; + + // POSITION + $side_layer_params['position'] = 'left'; + + html_print_side_layer($side_layer_params); + + // Hidden div to forced title + html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true)); +?> + + + + diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index 20431b89d3..d8a6ed18fd 100644 --- a/pandora_console/pandora_console.redhat.spec +++ b/pandora_console/pandora_console.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 5.1 -%define release 140922 +%define release 140923 # User and Group under which Apache is running %define httpd_name httpd diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec index 6dad7f6119..9dec35f2b5 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 5.1 -%define release 140922 +%define release 140923 %define httpd_name httpd # User and Group under which Apache is running %define httpd_name apache2 diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 17d1547707..63ab1e88f2 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -203,7 +203,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( `plugin_pass` text, `plugin_parameter` text, `id_plugin` int(10) default '0', - `post_process` double(18,15) default 0, + `post_process` double(24,15) default 0, `prediction_module` bigint(14) default '0', `max_timeout` int(4) unsigned default '0', `max_retries` int(4) unsigned default '0', @@ -707,7 +707,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` ( `custom_string_3` text, `custom_integer_1` int(10) default 0, `custom_integer_2` int(10) default 0, - `post_process` double(18,15) default 0, + `post_process` double(24,15) default 0, `unit` text, `wizard_level` enum('basic','advanced','nowizard') default 'nowizard', `macros` text, diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 03d12441a2..141161bf82 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -38,7 +38,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('graph_res','5'), ('step_compact','1'), ('db_scheme_version','5.1'), -('db_scheme_build','PD140922'), +('db_scheme_build','PD140923'), ('show_unknown','0'), ('show_lastalerts','1'), ('style','pandora'), diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control index 3ea7346363..d4b832c690 100644 --- a/pandora_server/DEBIAN/control +++ b/pandora_server/DEBIAN/control @@ -1,10 +1,10 @@ package: pandorafms-server -Version: 5.1-140922 +Version: 5.1-140923 Architecture: all Priority: optional Section: admin Installed-Size: 640 Maintainer: Miguel de Dios Homepage: http://pandorafms.org/ -Depends: perl (>= 5.8), libdbi-perl, libdbd-mysql-perl, libtime-format-perl, libnetaddr-ip-perl, libtime-format-perl, libxml-simple-perl, libxml-twig-perl, libhtml-parser-perl, snmp, snmpd, traceroute, xprobe2, nmap, sudo, libwww-perl, libsocket6-perl, libio-socket-inet6-perl, snmp-mibs-downloader, libjson-perl, libnet-telnet-perl +Depends: perl (>= 5.8), libdbi-perl, libdbd-mysql-perl, libtime-format-perl, libnetaddr-ip-perl, libtime-format-perl, libxml-simple-perl, libxml-twig-perl, libhtml-parser-perl, snmp, snmpd, traceroute, xprobe2, nmap, sudo, libwww-perl, libsocket6-perl, libio-socket-inet6-perl, snmp-mibs-downloader, libjson-perl, libnet-telnet-perl, libencode-locale-perl Description: Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments. This is the server package. Server makes the remote checks and process information transfer by Pandora FMS agents to the server. diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh index cf2eb1f17f..7fba1f2876 100644 --- a/pandora_server/DEBIAN/make_deb_package.sh +++ b/pandora_server/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.1-140922" +pandora_version="5.1-140923" package_cpan=0 package_pandora=1 diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server index a46d1e806a..5c296b35f8 100755 --- a/pandora_server/bin/pandora_server +++ b/pandora_server/bin/pandora_server @@ -516,7 +516,7 @@ sub main() { pandora_startup (); # Start thread to execute server tasks on the master server - threads->create('pandora_server_tasks', (\%Config))->detach() if ($Config{"master"} == 1); + threads->create('pandora_server_tasks', (\%Config))->detach() if ($Config{"pandora_master"} == 1); # Generate 'going up' events foreach my $server (@Servers) { diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 84871c48b7..9e26113577 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -43,7 +43,7 @@ our @EXPORT = qw( # version: Defines actual version of Pandora Server for this module only my $pandora_version = "5.1"; -my $pandora_build = "140922"; +my $pandora_build = "140923"; our $VERSION = $pandora_version." ".$pandora_build; # Setup hash diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 7d54cda645..f29c772217 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 5.1 -%define release 140922 +%define release 140923 Summary: Pandora FMS Server Name: %{name} @@ -28,7 +28,7 @@ Requires: perl-XML-Simple perl-XML-Twig net-snmp-utils Requires: perl-NetAddr-IP net-snmp net-tools Requires: perl-IO-Socket-INET6 perl-Socket6 perl-Net-Telnet Requires: nmap wmic sudo perl-JSON -Requires: perl-Time-HiRes +Requires: perl-Time-HiRes perl-Encode-Locale %description Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments. diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index a5e26cc899..db4e65fdcb 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 5.1 -%define release 140922 +%define release 140923 Summary: Pandora FMS Server Name: %{name} @@ -26,6 +26,7 @@ Requires: perl-DBI perl-DBD-mysql perl-libwww-perl Requires: perl-NetAddr-IP net-snmp net-tools perl-XML-Twig Requires: nmap wmic sudo perl-HTML-Tree perl-XML-Simple perl-Net-Telnet Requires: perl-IO-Socket-INET6 perl-Socket6 snmp-mibs perl-JSON +Requires: perl-Encode-Locale %description diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 98d865d64c..53798069e1 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -33,7 +33,7 @@ use PandoraFMS::Tools; use PandoraFMS::DB; # version: define current version -my $version = "5.1 PS140922"; +my $version = "5.1 PS140923"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index ac9eaa0b8a..7d862d9021 100644 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -34,7 +34,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "5.1 PS140922"; +my $version = "5.1 PS140923"; # save program name for logging my $progname = basename($0);