diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index dcc4594941..d47d3b9ad6 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 6.0dev-150327 +Version: 6.0dev-150413 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 c360f0169c..258af354ac 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="6.0dev-150327" +pandora_version="6.0dev-150413" 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 422198280e..b6c3c4846f 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 => '6.0dev'; -use constant AGENT_BUILD => '150327'; +use constant AGENT_BUILD => '150413'; # Commands to retrieve total memory information in kB use constant TOTALMEMORY_CMDS => { @@ -975,6 +975,8 @@ sub launch_tentacle_proxy () { #Execute tentacle server as a daemon my $new_process = "tentacle_server -b ".$Conf{'server_ip'}." -g ".$Conf{'server_port'}." -c ".$Conf{'proxy_max_connection'}." -t ".$Conf{'proxy_timeout'}; + $new_process .= ' -C' if ($Conf{'server_ssl'} eq 'yes'); + log_message ('setup', 'Proxy mode enabled'); exec ($new_process); } diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index ea56c607a8..613338637a 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 6.0dev -%define release 150327 +%define release 150413 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 0b0233c08a..d6d4eb4959 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 6.0dev -%define release 150327 +%define release 150413 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/tentacle_server b/pandora_agents/unix/tentacle_server index 0d10a5baa8..e881246823 100755 --- a/pandora_agents/unix/tentacle_server +++ b/pandora_agents/unix/tentacle_server @@ -171,6 +171,9 @@ my $t_proxy_socket; # Proxy selected handler my $t_proxy_select; +# Use SSL for proxy, 1 true, 0 false +my $t_proxy_ssl = 0; + # Use libwrap, 1 true, 0 false my $t_use_libwrap = 0; @@ -206,11 +209,12 @@ sub print_help { print ("\t-t time\t\tTime-out for network operations in seconds (default ${t_timeout}s).\n"); print ("\t-v\t\tBe verbose.\n"); print ("\t-w\t\tPrompt for OpenSSL private key password.\n"); - print ("\t-x pwd\t\tServer password.\n\n"); - print ("\t-b proxy_ip_address\t\tProxied server address.\n\n"); - print ("\t-g proxy_port\t\tPort of proxied server.\n\n"); + print ("\t-x pwd\t\tServer password.\n"); + print ("\t-b proxy_ip_address\tProxied server address.\n"); + print ("\t-g proxy_port\t\tPort of proxied server.\n"); + print ("\t-C\t\tEnable SSL for proxy connection without a client certificate.\n"); print ("\t-T\t\tEnable tcpwrappers support.\n"); - print ("\t\t(To use this option, 'Authen::Libwrap' should be installed.)\n\n"); + print ("\t\t\t(To use this option, 'Authen::Libwrap' should be installed.)\n\n"); } ################################################################################ @@ -256,7 +260,7 @@ sub parse_options { my @t_addresses_tmp; # Get options - if (getopts ('a:b:c:de:f:g:hi:k:m:op:qr:s:S:t:Tvwx:', \%opts) == 0 || defined ($opts{'h'})) { + if (getopts ('a:b:c:Cde:f:g:hi:k:m:op:qr:s:S:t:Tvwx:', \%opts) == 0 || defined ($opts{'h'})) { print_help (); exit 1; } @@ -444,6 +448,15 @@ sub parse_options { } } + # Enable SSL without a client certificate + if (defined ($opts{'C'})) { + + require IO::Socket::SSL; + + $t_proxy_ssl = 1; + } + + # TCP wrappers support if (defined ($opts{'T'})) { if ($t_libwrap_installed) { @@ -658,6 +671,30 @@ sub start_ssl { print_log ("SSL started for " . $t_client_socket->sockhost ()); } +################################################################################ +## SUB start_proxy_ssl +## Convert the proxy socket to an IO::Socket::SSL socket. +################################################################################ +sub start_proxy_ssl { + my $err; + + if ($t_proxy_ssl != 1) { + return; + } + + IO::Socket::SSL->start_SSL ( + $t_proxy_socket, + SSL_verify_mode => 0x00, + ); + + $err = IO::Socket::SSL::errstr (); + if ($err ne '') { + error ($err); + } + + print_log ("proxy SSL started for " . $t_proxy_socket->sockhost ()); +} + ################################################################################ ## SUB accept_connections ## Manage incoming connections. @@ -749,6 +786,11 @@ sub serve_proxy_connection { # Start a connection with the other Tentacle Server open_proxy(); + + # Start SSL for proxy + if ($t_proxy_ssl == 1) { + start_proxy_ssl(); + } my $command; @@ -1582,6 +1624,14 @@ __END__ =item I<-x> pwd B. +=item I<-b proxy_ip_address> B address. + +=item I<-g proxy_port> B of proxied server. + +=item I<-C> Enable SSL for proxy without a client certificate. + +=item I<-T> Enable tcpwrappers support ('Authen::Libwrap' required). + =back =head1 EXIT STATUS diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index dd25b93c2d..3f13f891aa 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{150327} +{150413} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index e9917f8f0a..83960cdd3b 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 ("6.0dev(Build 150327)") +#define PANDORA_VERSION ("6.0dev(Build 150413)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 2c5ec01bf6..1a60579675 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -322,7 +322,7 @@ Pandora_Windows_Service::killTentacleProxy() { int Pandora_Windows_Service::launchTentacleProxy() { - string server_ip, server_port, proxy_max_connections, proxy_timeout; + string server_ip, server_port, proxy_max_connections, proxy_timeout, server_ssl; string proxy_cmd; PROCESS_INFORMATION pi; STARTUPINFO si; @@ -331,6 +331,7 @@ Pandora_Windows_Service::launchTentacleProxy() { server_ip = conf->getValue("server_ip"); if (server_ip != "localhost") { + proxy_max_connections = conf->getValue("proxy_max_connection"); if (proxy_max_connections == "") { @@ -348,9 +349,18 @@ Pandora_Windows_Service::launchTentacleProxy() { if (server_port == "") { server_port = "41121"; } - - proxy_cmd = "tentacle_server.exe -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout; - + + server_ssl = conf->getValue("server_ssl"); + + if (server_ssl == "1") { + proxy_cmd = "tentacle_server.exe -C"; + } + else { + proxy_cmd = "tentacle_server.exe"; + } + + proxy_cmd += " -b " + server_ip + " -g " + server_port + " -c " + proxy_max_connections + " -t " + proxy_timeout; + ZeroMemory (&si, sizeof (si)); ZeroMemory (&pi, sizeof (pi)); if (CreateProcess (NULL , (CHAR *)proxy_cmd.c_str (), NULL, NULL, FALSE, diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index edaa4d4dbe..c09822074b 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", "(6.0dev(Build 150327))" + VALUE "ProductVersion", "(6.0dev(Build 150413))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 19f5bec6b9..4cd77e55aa 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 6.0dev-150327 +Version: 6.0dev-150413 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 bcdb62a992..1a4aacc89f 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="6.0dev-150327" +pandora_version="6.0dev-150413" package_pear=0 package_pandora=1 diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql index 4ab94fad5a..f51651480a 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.mysql.sql @@ -70,3 +70,17 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('post_process_custom_values', ALTER TABLE `tnetwork_map` ADD COLUMN `id_tag` int(11) DEFAULT 0; ALTER TABLE `tnetwork_map` ADD COLUMN `store_group` int(11) DEFAULT 0; UPDATE `tnetwork_map` SET `store_group` = `id_group`; + +-- --------------------------------------------------------------------- +-- Table `tperfil` +-- --------------------------------------------------------------------- +ALTER TABLE `tperfil` ADD COLUMN `map_view` tinyint(1) NOT NULL DEFAULT 0; +ALTER TABLE `tperfil` ADD COLUMN `map_edit` tinyint(1) NOT NULL DEFAULT 0; +ALTER TABLE `tperfil` ADD COLUMN `map_management` tinyint(1) NOT NULL DEFAULT 0; +ALTER TABLE `tperfil` ADD COLUMN `vconsole_view` tinyint(1) NOT NULL DEFAULT 0; +ALTER TABLE `tperfil` ADD COLUMN `vconsole_edit` tinyint(1) NOT NULL DEFAULT 0; +ALTER TABLE `tperfil` ADD COLUMN `vconsole_management` tinyint(1) NOT NULL DEFAULT 0; + +UPDATE `tperfil` SET `map_view` = 1, `vconsole_view` = 1 WHERE `report_view` = 1; +UPDATE `tperfil` SET `map_edit` = 1, `vconsole_edit` = 1 WHERE `report_edit` = 1; +UPDATE `tperfil` SET `map_management` = 1, `vconsole_management` = 1 WHERE `report_management` = 1; diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql index a1e52b9bff..36ff8004e0 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.oracle.sql @@ -70,3 +70,17 @@ INSERT INTO tconfig (token, value) VALUES ('post_process_custom_values', '{"0.00 ALTER TABLE tnetwork_map ADD COLUMN id_tag NUMBER(11, 0) DEFAULT 0; ALTER TABLE tnetwork_map ADD COLUMN store_group NUMBER(11, 0) DEFAULT 0; UPDATE tnetwork_map SET store_group = id_group; + +-- --------------------------------------------------------------------- +-- Table `tperfil` +-- --------------------------------------------------------------------- +ALTER TABLE tperfil ADD COLUMN map_view NUMBER(1, 0) DEFAULT 0 NOT NULL; +ALTER TABLE tperfil ADD COLUMN map_edit NUMBER(1, 0) DEFAULT 0 NOT NULL; +ALTER TABLE tperfil ADD COLUMN map_management NUMBER(1, 0) DEFAULT 0 NOT NULL; +ALTER TABLE tperfil ADD COLUMN vconsole_view NUMBER(1, 0) DEFAULT 0 NOT NULL; +ALTER TABLE tperfil ADD COLUMN vconsole_edit NUMBER(1, 0) DEFAULT 0 NOT NULL; +ALTER TABLE tperfil ADD COLUMN vconsole_management NUMBER(1, 0) DEFAULT 0 NOT NULL; + +UPDATE tperfil SET map_view = 1, vconsole_view = 1 WHERE report_view = 1; +UPDATE tperfil SET map_edit = 1, vconsole_edit = 1 WHERE report_edit = 1; +UPDATE tperfil SET map_management = 1, vconsole_management = 1 WHERE report_management = 1; diff --git a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql index 6882914fd2..3ca472b93c 100755 --- a/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_5.1_to_6.0.postgreSQL.sql @@ -68,3 +68,17 @@ INSERT INTO "tconfig" ("token", "value") VALUES ('post_process_custom_values', ' ALTER TABLE "tnetwork_map" ADD COLUMN "id_tag" INTEGER DEFAULT 0; ALTER TABLE "tnetwork_map" ADD COLUMN "store_group" INTEGER DEFAULT 0; UPDATE "tnetwork_map" SET "store_group" = "id_group"; + +-- --------------------------------------------------------------------- +-- Table `tperfil` +-- --------------------------------------------------------------------- +ALTER TABLE "tperfil" ADD COLUMN "map_view" SMALLINT NOT NULL DEFAULT 0; +ALTER TABLE "tperfil" ADD COLUMN "map_edit" SMALLINT NOT NULL DEFAULT 0; +ALTER TABLE "tperfil" ADD COLUMN "map_management" SMALLINT NOT NULL DEFAULT 0; +ALTER TABLE "tperfil" ADD COLUMN "vconsole_view" SMALLINT NOT NULL DEFAULT 0; +ALTER TABLE "tperfil" ADD COLUMN "vconsole_edit" SMALLINT NOT NULL DEFAULT 0; +ALTER TABLE "tperfil" ADD COLUMN "vconsole_management" SMALLINT NOT NULL DEFAULT 0; + +UPDATE "tperfil" SET "map_view" = 1, "vconsole_view" = 1 WHERE "report_view" = 1; +UPDATE "tperfil" SET "map_edit" = 1, "vconsole_edit" = 1 WHERE "report_edit" = 1; +UPDATE "tperfil" SET "map_management" = 1, "vconsole_management" = 1 WHERE "report_management" = 1; diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 44312abe7f..a80127a459 100755 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -159,6 +159,9 @@ if ($create_downtime || $update_downtime) { else if ($type_execution == 'once' && $datetime_from >= $datetime_to) { ui_print_error_message(__('Not created. Error inserting data') . ". " .__('The end date must be higher than the start date')); } + else if ($type_execution == 'once' && $datetime_to <= $now) { + ui_print_error_message(__('Not created. Error inserting data') . ". " .__('The end date must be higher than the current time')); + } else if ($type_execution == 'periodically' && (($type_periodicity == 'weekly' && $periodically_time_from >= $periodically_time_to) || ($type_periodicity == 'monthly' && $periodically_day_from == $periodically_day_to && $periodically_time_from >= $periodically_time_to))) { @@ -216,7 +219,6 @@ if ($create_downtime || $update_downtime) { 'description' => $description, 'date_from' => $datetime_from, 'date_to' => $datetime_to, - 'executed' => 0, 'id_group' => $id_group, 'only_alerts' => 0, 'monday' => $monday, @@ -307,18 +309,22 @@ if ($id_downtime > 0) { $type_downtime = $result['type_downtime']; $type_execution = $result['type_execution']; $type_periodicity = $result['type_periodicity']; + $executed = $result['executed']; if ($id_group == 0) $id_group = $result['id_group']; } +// when the planned down time is in execution, only action to postpone on once type is enabled and the other are disabled. +$disabled_in_execution = $executed ? 1 : 0; + $table->class = 'databox_color'; $table->width = '98%'; $table->data = array (); $table->data[0][0] = __('Name'); -$table->data[0][1] = html_print_input_text ('name', $name, '', 25, 40, true); +$table->data[0][1] = html_print_input_text ('name', $name, '', 25, 40, true, $disabled_in_execution); $table->data[1][0] = __('Group'); -$table->data[1][1] = html_print_select_groups(false, "AW", true, 'id_group', $id_group, '', '', 0, true); +$table->data[1][1] = html_print_select_groups(false, "AW", true, 'id_group', $id_group, '', '', 0, true, false, true, '', $disabled_in_execution); $table->data[2][0] = __('Description'); $table->data[2][1] = html_print_textarea ('description', 3, 35, $description, '', true); @@ -329,11 +335,12 @@ $table->data[3][1] = html_print_select(array('quiet' => __('Quiet'), 'disable_agents' => __('Disabled Agents'), 'disable_agents_alerts' => __('Disabled only Alerts')), 'type_downtime', $type_downtime, 'change_type_downtime()', '', 0, true, false, true, - ''); + '', $disabled_in_execution); $table->data[4][0] = __('Execution'); $table->data[4][1] = html_print_select(array('once' => __('Once'), 'periodically' => __('Periodically')), - 'type_execution', $type_execution, 'change_type_execution();', '', 0, true); + 'type_execution', $type_execution, 'change_type_execution();', '', 0, true, + false, true, '', $disabled_in_execution); $days = array_combine(range(1, 31), range(1, 31)); $table->data[5][0] = __('Configure the time') . " " . ui_print_help_icon ('planned_downtime_time', true);; @@ -345,9 +352,9 @@ $table->data[5][1] = " __('From:') . " ". - html_print_input_text ('once_date_from', $once_date_from, '', 10, 10, true) . + html_print_input_text ('once_date_from', $once_date_from, '', 10, 10, true, $disabled_in_execution) . ui_print_help_tip(__('Date format in Pandora is year/month/day'), true) . - html_print_input_text ('once_time_from', $once_time_from, '', 9, 9, true) . + html_print_input_text ('once_time_from', $once_time_from, '', 9, 9, true, $disabled_in_execution) . ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) . " @@ -372,7 +379,8 @@ $table->data[5][1] = " 'weekly' => __('Weekly'), 'monthly' => __('Monthly')), 'type_periodicity', $type_periodicity, - 'change_type_periodicity();', '', 0, true) . + 'change_type_periodicity();', '', 0, true, + false, true, '', $disabled_in_execution) . " @@ -380,25 +388,25 @@ $table->data[5][1] = " @@ -407,12 +415,14 @@ $table->data[5][1] = " " . __('From day:') . " ". html_print_select($days, - 'periodically_day_from', $periodically_day_from, '', '', 0, true) . + 'periodically_day_from', $periodically_day_from, '', '', 0, true, + false, true, '', $disabled_in_execution) . " " . __('To day:') . " ". html_print_select($days, - 'periodically_day_to', $periodically_day_to, '', '', 0, true) . + 'periodically_day_to', $periodically_day_to, '', '', 0, true, + false, true, '', $disabled_in_execution) . " " . ui_print_help_tip(__('The end day must be higher than the start day'), true) . " @@ -423,7 +433,7 @@ $table->data[5][1] = " ". html_print_input_text ( 'periodically_time_from', - $periodically_time_from, '', 7, 7, true) . + $periodically_time_from, '', 7, 7, true, $disabled_in_execution) . ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'). ".
".__('The end time must be higher than the start time'), true) . " @@ -431,7 +441,7 @@ $table->data[5][1] = " ". html_print_input_text ( 'periodically_time_to', - $periodically_time_to, '', 7, 7, true) . + $periodically_time_to, '', 7, 7, true, $disabled_in_execution) . ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'). ".
".__('The end time must be higher than the start time'), true) . " @@ -498,7 +508,7 @@ if ($id_downtime > 0) { } $disabled_add_button = false; - if (empty($data)) { + if (empty($data) || $disabled_in_execution) { $disabled_add_button = true; } @@ -589,11 +599,13 @@ if ($id_downtime > 0) { if (($type_downtime != 'disable_agents_alerts') && ($type_downtime != 'disable_agents')) { - $data[5] = '' . + $href = $executed ? 'javascript:void(0);' : 'javascript:show_editor_module(' . $downtime["id_agente"] . ');'; + $data[5] = '' . html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Delete'))) . ""; } - $data[5] .= ' diff --git a/pandora_console/godmode/agentes/planned_downtime.list.php b/pandora_console/godmode/agentes/planned_downtime.list.php index 71d87b22d9..44ee3c1ce4 100755 --- a/pandora_console/godmode/agentes/planned_downtime.list.php +++ b/pandora_console/godmode/agentes/planned_downtime.list.php @@ -499,6 +499,12 @@ else { 'delete_downtime=1&id_downtime='.$downtime['id'].'">' . html_print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))); } + elseif ($downtime["executed"] == 1 && $downtime['type_execution'] == 'once'){ + $data[8] = '' . + html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . ''; + $data[9]= "N/A"; + } else { $data[8]= "N/A"; $data[9]= "N/A"; diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 794df41252..c1b8d5eaa0 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -17,6 +17,18 @@ global $config; require_once ($config['homedir'] . '/include/functions_visual_map.php'); +// ACL for the general permission +$vconsoles_read = check_acl ($config['id_user'], 0, "VR"); +$vconsoles_write = check_acl ($config['id_user'], 0, "VW"); +$vconsoles_manage = check_acl ($config['id_user'], 0, "VM"); + +if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) { + db_pandora_audit("ACL Violation", + "Trying to access map builder"); + require ("general/noaccess.php"); + exit; +} + $pure = (int)get_parameter('pure', 0); $hack_metaconsole = ''; if (defined('METACONSOLE')) @@ -31,110 +43,139 @@ $copy_layout = (bool) get_parameter ('copy_layout'); $delete_layout = (bool) get_parameter ('delete_layout'); $refr = (int) get_parameter('refr'); -if ($delete_layout) { - db_process_sql_delete ('tlayout_data', array ('id_layout' => $id_layout)); - $result = db_process_sql_delete ('tlayout', array ('id' => $id_layout)); - if ($result) { - db_pandora_audit( "Visual console builder", "Delete visual console #$id_layout"); - ui_print_success_message(__('Successfully deleted')); - db_clean_cache(); +if ($delete_layout || $copy_layout) { + // Visual console required + if (empty($id_layout)) { + db_pandora_audit("ACL Violation", + "Trying to access map builder"); + require ("general/noaccess.php"); + exit; } - else { - db_pandora_audit( "Visual console builder", "Fail try to delete visual console #$id_layout"); - ui_print_error_message(__('Not deleted. Error deleting data')); + + $group_id = db_get_value("id_group", "tlayout", "id", $id_layout); + if ($group_id === false) { + db_pandora_audit("ACL Violation", + "Trying to access map builder"); + require ("general/noaccess.php"); + exit; } - $id_layout = 0; -} + + // ACL for the visual console + // $vconsole_read = check_acl ($config['id_user'], $group_id, "VR"); + $vconsole_write = check_acl ($config['id_user'], $group_id, "VW"); + $vconsole_manage = check_acl ($config['id_user'], $group_id, "VM"); -if ($copy_layout) { - // Number of inserts - $ninsert = (int) 0; + if (!$vconsole_write && !$vconsole_manage) { + db_pandora_audit("ACL Violation", + "Trying to access map builder"); + require ("general/noaccess.php"); + exit; + } - // Return from DB the source layout - $layout_src = db_get_all_rows_filter ("tlayout","id = " . $id_layout); - - // Name of dst - $name_dst = get_parameter ("name_dst", $layout_src[0]['name'] . " copy"); - - // Create the new Console - $idGroup = $layout_src[0]['id_group']; - $background = $layout_src[0]['background']; - $height = $layout_src[0]['height']; - $width = $layout_src[0]['width']; - $visualConsoleName = $name_dst; - - $values = array('name' => $visualConsoleName, 'id_group' => $idGroup, 'background' => $background, 'height' => $height, 'width' => $width); - $result = db_process_sql_insert('tlayout', $values); - - $idNewVisualConsole = $result; - - if ($result) { - $ninsert = 1; + if ($delete_layout) { + db_process_sql_delete ('tlayout_data', array ('id_layout' => $id_layout)); + $result = db_process_sql_delete ('tlayout', array ('id' => $id_layout)); + if ($result) { + db_pandora_audit( "Visual console builder", "Delete visual console #$id_layout"); + ui_print_success_message(__('Successfully deleted')); + db_clean_cache(); + } + else { + db_pandora_audit( "Visual console builder", "Fail try to delete visual console #$id_layout"); + ui_print_error_message(__('Not deleted. Error deleting data')); + } + $id_layout = 0; + } + + if ($copy_layout) { + // Number of inserts + $ninsert = (int) 0; - // Return from DB the items of the source layout - $data_layout_src = db_get_all_rows_filter ("tlayout_data", "id_layout = " . $id_layout); + // Return from DB the source layout + $layout_src = db_get_all_rows_filter ("tlayout","id = " . $id_layout); - if (!empty($data_layout_src)) { + // Name of dst + $name_dst = get_parameter ("name_dst", $layout_src[0]['name'] . " copy"); + + // Create the new Console + $idGroup = $layout_src[0]['id_group']; + $background = $layout_src[0]['background']; + $height = $layout_src[0]['height']; + $width = $layout_src[0]['width']; + $visualConsoleName = $name_dst; + + $values = array('name' => $visualConsoleName, 'id_group' => $idGroup, 'background' => $background, 'height' => $height, 'width' => $width); + $result = db_process_sql_insert('tlayout', $values); + + $idNewVisualConsole = $result; + + if ($result) { + $ninsert = 1; - //By default the id parent 0 is always 0. - $id_relations = array(0 => 0); + // Return from DB the items of the source layout + $data_layout_src = db_get_all_rows_filter ("tlayout_data", "id_layout = " . $id_layout); - for ($a=0; $a < count($data_layout_src); $a++) { + if (!empty($data_layout_src)) { - // Changing the source id by the new visual console id - $data_layout_src[$a]['id_layout'] = $idNewVisualConsole; + //By default the id parent 0 is always 0. + $id_relations = array(0 => 0); - $old_id = $data_layout_src[$a]['id']; - - // Unsetting the source's id - unset($data_layout_src[$a]['id']); - - // Configure the cloned Console - $result = db_process_sql_insert('tlayout_data', $data_layout_src[$a]); - - $id_relations[$old_id] = 0; - - if ($result !== false) { - $id_relations[$old_id] = $result; - } - - if ($result) - $ninsert++; - }// for each item of console - - $inserts = count($data_layout_src) + 1; - - // If the number of inserts is correct, the copy is completed - if ($ninsert == $inserts) { - - //Update the ids of parents - $items = db_get_all_rows_filter ("tlayout_data", "id_layout = " . $idNewVisualConsole); - - foreach ($items as $item) { - $new_parent = $id_relations[$item['parent_item']]; + for ($a=0; $a < count($data_layout_src); $a++) { - db_process_sql_update('tlayout_data', - array('parent_item' => $new_parent), array('id' => $item['id'])); + // Changing the source id by the new visual console id + $data_layout_src[$a]['id_layout'] = $idNewVisualConsole; + + $old_id = $data_layout_src[$a]['id']; + + // Unsetting the source's id + unset($data_layout_src[$a]['id']); + + // Configure the cloned Console + $result = db_process_sql_insert('tlayout_data', $data_layout_src[$a]); + + $id_relations[$old_id] = 0; + + if ($result !== false) { + $id_relations[$old_id] = $result; + } + + if ($result) + $ninsert++; + }// for each item of console + + $inserts = count($data_layout_src) + 1; + + // If the number of inserts is correct, the copy is completed + if ($ninsert == $inserts) { + + //Update the ids of parents + $items = db_get_all_rows_filter ("tlayout_data", "id_layout = " . $idNewVisualConsole); + + foreach ($items as $item) { + $new_parent = $id_relations[$item['parent_item']]; + + db_process_sql_update('tlayout_data', + array('parent_item' => $new_parent), array('id' => $item['id'])); + } + + + ui_print_success_message(__('Successfully copied')); + db_clean_cache(); } - - + else { + ui_print_error_message(__('Not copied. Error copying data')); + } + } + else { + // If the array is empty the copy is completed ui_print_success_message(__('Successfully copied')); db_clean_cache(); } - else { - ui_print_error_message(__('Not copied. Error copying data')); - } } else { - // If the array is empty the copy is completed - ui_print_success_message(__('Successfully copied')); - db_clean_cache(); + ui_print_error_message(__('Not copied. Error copying data')); } } - else { - ui_print_error_message(__('Not copied. Error copying data')); - } - } $table->width = '98%'; @@ -146,7 +187,7 @@ $table->head[2] = __('Items'); // Fix: IW was the old ACL for report editing, now is RW //Only for RW flag -if (check_acl ($config['id_user'], 0, "RW")) { +if ($vconsoles_write || $vconsoles_manage) { $table->head[3] = __('Copy'); $table->head[4] = __('Delete'); } @@ -159,9 +200,9 @@ $table->align[3] = 'center'; $table->align[4] = 'center'; // Only display maps of "All" group if user is administrator -// or has "RR" privileges, otherwise show only maps of user group +// or has "VR" privileges, otherwise show only maps of user group $own_info = get_user_info ($config['id_user']); -if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "RR")) +if ($own_info['is_admin'] || $vconsoles_read) $maps = visual_map_get_user_layouts (); else $maps = visual_map_get_user_layouts ($config['id_user'], false, false, false); @@ -171,6 +212,9 @@ if (!$maps) { } else { foreach ($maps as $map) { + // ACL for the visual console permission + $vconsole_write = check_acl ($config['id_user'], $map['id_group'], "VW"); + $vconsole_manage = check_acl ($config['id_user'], $map['id_group'], "VM"); $data = array (); @@ -187,7 +231,7 @@ else { $data[2] = db_get_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']); // Fix: IW was the old ACL for report editing, now is RW - if (check_acl ($config['id_user'], 0, "RW")) { + if ($vconsole_write || $vconsole_manage) { if (!defined('METACONSOLE')) { $data[3] = ''.html_print_image ("images/copy.png", true).''; @@ -212,13 +256,11 @@ else { echo '
'; } -// Fix: IW was the old ACL to check for report editing, now is RW -//Only for RW flag -if (check_acl ($config['id_user'], 0, "RW")) { +if ($vconsoles_write || $vconsoles_manage) { if (!defined('METACONSOLE')) echo '
'; else { - echo ''; + echo ''; } html_print_input_hidden ('edit_layout', 1); html_print_submit_button (__('Create'), '', false, 'class="sub next"'); diff --git a/pandora_console/godmode/reporting/visual_console_builder.data.php b/pandora_console/godmode/reporting/visual_console_builder.data.php index bc0c7027e9..f3bf4a0399 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.data.php +++ b/pandora_console/godmode/reporting/visual_console_builder.data.php @@ -17,7 +17,26 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "RW")) { +if (empty($idVisualConsole)) { + // ACL for the a new visual console + // if (!isset($vconsole_read)) + // $vconsole_read = check_acl ($config['id_user'], 0, "VR"); + if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], 0, "VW"); + if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], 0, "VM"); +} +else { + // ACL for the existing visual console + // if (!isset($vconsole_read)) + // $vconsole_read = check_acl ($config['id_user'], $idGroup, "VR"); + if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], $idGroup, "VW"); + if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], $idGroup, "VM"); +} + +if (!$vconsole_write && !$vconsole_manage) { db_pandora_audit("ACL Violation", "Trying to access report builder"); require ("general/noaccess.php"); @@ -85,7 +104,7 @@ $groups = users_get_groups ($config['id_user'], 'RW'); $own_info = get_user_info($config['id_user']); // Only display group "All" if user is administrator // or has "RW" privileges -if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "RW")) +if ($own_info['is_admin'] || $vconsole_write || $vconsole_manage) $display_all_group = true; else $display_all_group = false; diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 1bc6eb192b..1ca0a7637f 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -1080,7 +1080,7 @@ function cleanFields(item) { tinymce.get('text-label').setContent("(_VALUE_)"); } - fill_parent_select(); + //fill_parent_select(); var anyText = $("#any_text").html(); //Trick for catch the translate text. $("#module") diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.php b/pandora_console/godmode/reporting/visual_console_builder.editor.php index 0311119deb..fdc2e41b60 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.php +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.php @@ -17,7 +17,23 @@ global $config; // Login check check_login (); -if (! check_acl ($config['id_user'], 0, "RW")) { +// Visual console required +if (empty($visualConsole)) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} + +// ACL for the existing visual console +// if (!isset($vconsole_read)) +// $vconsole_read = check_acl ($config['id_user'], $visualConsole['id_group'], "VR"); +if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], $visualConsole['id_group'], "VW"); +if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], $visualConsole['id_group'], "VM"); + +if (!$vconsole_write && !$vconsole_manage) { db_pandora_audit("ACL Violation", "Trying to access report builder"); require ("general/noaccess.php"); diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index 0c1fc9b95c..0809aee4b8 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -17,7 +17,23 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "RW")) { +// Visual console required +if (empty($visualConsole)) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} + +// ACL for the existing visual console +// if (!isset($vconsole_read)) +// $vconsole_read = check_acl ($config['id_user'], $visualConsole['id_group'], "VR"); +if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], $visualConsole['id_group'], "VW"); +if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], $visualConsole['id_group'], "VM"); + +if (!$vconsole_write && !$vconsole_manage) { db_pandora_audit("ACL Violation", "Trying to access report builder"); require ("general/noaccess.php"); diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index c7d9760690..f3ab691db0 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -18,27 +18,13 @@ global $statusProcessInDB; check_login (); -if (! check_acl ($config['id_user'], 0, "RW")) { - db_pandora_audit("ACL Violation", - "Trying to access report builder"); - require ("general/noaccess.php"); - exit; -} - require_once ($config['homedir'] . '/include/functions_visual_map.php'); require_once($config['homedir'] . "/include/functions_agents.php"); enterprise_include_once('include/functions_visual_map.php'); -$pure = (int)get_parameter('pure', 0); - -if (!empty($idVisualConsole)) { - $idVisualConsole = get_parameter('id_visual_console', $idVisualConsole); -} -else { - $idVisualConsole = get_parameter('id_visual_console', 0); -} - -$id_layout = 0; +// Retrieve the visual console id +set_unless_defined ($idVisualConsole, 0); // Set default +$idVisualConsole = get_parameter('id_visual_console', $idVisualConsole); if (!defined('METACONSOLE')) { $action_name_parameter = 'action'; @@ -53,8 +39,57 @@ $action = get_parameterBetweenListValues($action_name_parameter, $activeTab = get_parameterBetweenListValues('tab', array('data', 'list_elements', 'wizard', 'wizard_services', 'editor'), 'data'); +// Visual console creation tab and actions +if (empty($idVisualConsole)) { + $visualConsole = null; + + // General ACL + //$vconsole_read = check_acl ($config['id_user'], 0, "VR"); + $vconsole_write = check_acl ($config['id_user'], 0, "VW"); + $vconsole_manage = check_acl ($config['id_user'], 0, "VM"); +} +// The visual console exists +else if ($activeTab != 'data' || ($activeTab == 'data' && $action != 'new')) { + + // Load the visual console data + $visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole)); + + // The visual console should exist. + if (empty($visualConsole)) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + return; + } + + // The default group id is 0 + set_unless_defined ($visualConsole['id_group'], 0); + + // ACL for the existing visual console + //$vconsole_read = check_acl ($config['id_user'], $visualConsole['id_group'], "VR"); + $vconsole_write = check_acl ($config['id_user'], $visualConsole['id_group'], "VW"); + $vconsole_manage = check_acl ($config['id_user'], $visualConsole['id_group'], "VM"); +} +else { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + return; +} + +// This section is only to manage the visual console +if (!$vconsole_write && !$vconsole_manage) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} + +$pure = (int) get_parameter ('pure', 0); $refr = (int) get_parameter ('refr', $config['vc_refr']); +$id_layout = 0; + //Save/Update data in DB global $statusProcessInDB; @@ -71,16 +106,30 @@ switch ($activeTab) { case 'update': case 'save': - $idGroup = get_parameter('id_group'); - $background = get_parameter('background'); - $visualConsoleName = get_parameter('name'); + $idGroup = (int) get_parameter('id_group'); + $background = (string) get_parameter('background'); + $visualConsoleName = (string) get_parameter('name'); - $values = array('name' => $visualConsoleName, - 'id_group' => $idGroup, 'background' => $background); + // ACL for the new visual console + //$vconsole_read_new = check_acl ($config['id_user'], $idGroup, "VR"); + $vconsole_write_new = check_acl ($config['id_user'], $idGroup, "VW"); + $vconsole_manage_new = check_acl ($config['id_user'], $idGroup, "VM"); + + // The user should have permissions on the new group + if (!$vconsole_write_new && !$vconsole_manage_new) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; + } + + $values = array( + 'name' => $visualConsoleName, + 'id_group' => $idGroup, + 'background' => $background + ); // If the background is changed the size is reseted - $visualConsole = db_get_row_filter('tlayout', - array('id' => $idVisualConsole)); $background_now = $visualConsole['background']; if ($background_now != $background && $background) { $sizeBackground = getimagesize($config['homedir'] . '/images/console/background/' . $background); @@ -93,10 +142,18 @@ switch ($activeTab) { $result = false; if ($values['name'] != "" && $values['background']) $result = db_process_sql_update('tlayout', $values, array('id' => $idVisualConsole)); - if ($result !== false && $values['background']) { + if ($result !== false) { db_pandora_audit( "Visual console builder", "Update visual console #$idVisualConsole"); $action = 'edit'; $statusProcessInDB = array('flag' => true, 'message' => ui_print_success_message(__('Successfully update.'), '', true)); + + // Return the updated visual console + $visualConsole = db_get_row_filter('tlayout', + array('id' => $idVisualConsole)); + // Update the ACL + //$vconsole_read = $vconsole_read_new; + $vconsole_write = $vconsole_write_new; + $vconsole_manage = $vconsole_manage_new; } else { db_pandora_audit( "Visual console builder", "Fail update visual console #$idVisualConsole"); @@ -116,6 +173,14 @@ switch ($activeTab) { $action = 'edit'; $statusProcessInDB = array('flag' => true, 'message' => ui_print_success_message(__('Successfully created.'), '', true)); + + // Return the updated visual console + $visualConsole = db_get_row_filter('tlayout', + array('id' => $idVisualConsole)); + // Update the ACL + //$vconsole_read = $vconsole_read_new; + $vconsole_write = $vconsole_write_new; + $vconsole_manage = $vconsole_manage_new; } else { db_pandora_audit( "Visual console builder", "Fail try to create visual console"); @@ -125,13 +190,9 @@ switch ($activeTab) { } break; } - $visualConsole = db_get_row_filter('tlayout', - array('id' => $idVisualConsole)); break; case 'edit': - $visualConsole = db_get_row_filter('tlayout', - array('id' => $idVisualConsole)); $visualConsoleName = $visualConsole['name']; $idGroup = $visualConsole['id_group']; $background = $visualConsole['background']; @@ -147,13 +208,11 @@ switch ($activeTab) { json_encode(array()))); $delete_items = json_decode($delete_items_json, true); - $id_visual_console = (int)get_parameter( - 'id_visual_console', 0); if (!empty($delete_items)) { $result = (bool)db_process_sql_delete( 'tlayout_data', - array('id_layout' => $id_visual_console, + array('id_layout' => $idVisualConsole, 'id' => $delete_items)); } @@ -187,6 +246,10 @@ switch ($activeTab) { 'height' => $height), array('id' => $idVisualConsole)); + // Return the updated visual console + $visualConsole = db_get_row_filter('tlayout', + array('id' => $idVisualConsole)); + //Update elements in visual map $idsElements = db_get_all_rows_filter('tlayout_data', array('id_layout' => $idVisualConsole), array('id')); @@ -246,12 +309,10 @@ switch ($activeTab) { } break; } - $visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole)); $visualConsoleName = $visualConsole['name']; $action = 'edit'; break; case 'wizard': - $visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole)); $visualConsoleName = $visualConsole['name']; $background = $visualConsole['background']; switch ($action) { @@ -430,7 +491,6 @@ switch ($activeTab) { } break; case 'wizard_services': - $visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole)); $visualConsoleName = $visualConsole['name']; switch ($action) { case 'update': @@ -453,9 +513,6 @@ switch ($activeTab) { case 'new': case 'update': case 'edit': - $visualConsole = db_get_row_filter('tlayout', - array('id' => $idVisualConsole)); - $visualConsoleName = $visualConsole['name']; $action = 'edit'; break; diff --git a/pandora_console/godmode/reporting/visual_console_builder.wizard.php b/pandora_console/godmode/reporting/visual_console_builder.wizard.php index 0487f70d27..0a2fcc94f4 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.wizard.php +++ b/pandora_console/godmode/reporting/visual_console_builder.wizard.php @@ -17,7 +17,23 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "RW")) { +// Visual console required +if (empty($visualConsole)) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} + +// ACL for the existing visual console +// if (!isset($vconsole_read)) +// $vconsole_read = check_acl ($config['id_user'], $visualConsole['id_group'], "VR"); +if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], $visualConsole['id_group'], "VW"); +if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], $visualConsole['id_group'], "VM"); + +if (!$vconsole_write && !$vconsole_manage) { db_pandora_audit("ACL Violation", "Trying to access report builder"); require ("general/noaccess.php"); diff --git a/pandora_console/godmode/users/configure_profile.php b/pandora_console/godmode/users/configure_profile.php index 622b01f009..39e2565bd7 100644 --- a/pandora_console/godmode/users/configure_profile.php +++ b/pandora_console/godmode/users/configure_profile.php @@ -64,24 +64,51 @@ $id_profile = (int) get_parameter ('id'); if ($id_profile || $new_profile) { if ($new_profile) { + // Name $name = ''; + + // Incidents $incident_view = 0; $incident_edit = 0; $incident_management = 0; + + // Agents $agent_view = 0; $agent_edit = 0; + $agent_disable = 0; + + // Alerts $alert_edit = 0; - $user_management = 0; - $db_management = 0; $alert_management = 0; + + // Users + $user_management = 0; + + // DB + $db_management = 0; + + // Pandora $pandora_management = 0; - $report_view = 0; - $report_edit = 0; - $report_management = 0; + + // Events $event_view = 0; $event_edit = 0; $event_management = 0; - $agent_disable = 0; + + // Reports + $report_view = 0; + $report_edit = 0; + $report_management = 0; + + // Network maps + $map_view = 0; + $map_edit = 0; + $map_management = 0; + + // Visual console + $vconsole_view = 0; + $vconsole_edit = 0; + $vconsole_management = 0; $page_title = __('Create profile'); } @@ -101,38 +128,91 @@ if ($id_profile || $new_profile) { exit; } + // Name $name = $profile["name"]; + + // Incidents $incident_view = (bool) $profile["incident_view"]; $incident_edit = (bool) $profile["incident_edit"]; $incident_management = (bool) $profile["incident_management"]; + + // Agents $agent_view = (bool) $profile["agent_view"]; $agent_edit = (bool) $profile["agent_edit"]; + $agent_disable = (bool) $profile["agent_disable"]; + + // Alerts $alert_edit = (bool) $profile["alert_edit"]; - $user_management = (bool) $profile["user_management"]; - $db_management = (bool) $profile["db_management"]; $alert_management = (bool) $profile["alert_management"]; + + // Users + $user_management = (bool) $profile["user_management"]; + + // DB + $db_management = (bool) $profile["db_management"]; + + // Pandora $pandora_management = (bool) $profile["pandora_management"]; - $report_view = (bool) $profile["report_view"]; - $report_edit = (bool) $profile["report_edit"]; - $report_management = (bool) $profile["report_management"]; + + // Events $event_view = (bool) $profile["event_view"]; $event_edit = (bool) $profile["event_edit"]; $event_management = (bool) $profile["event_management"]; - $agent_disable = (bool) $profile["agent_disable"]; + + // Reports + $report_view = (bool) $profile["report_view"]; + $report_edit = (bool) $profile["report_edit"]; + $report_management = (bool) $profile["report_management"]; + + // Network maps + $map_view = (bool) $profile["map_view"]; + $map_edit = (bool) $profile["map_edit"]; + $map_management = (bool) $profile["map_management"]; + + // Visual console + $vconsole_view = (bool) $profile["vconsole_view"]; + $vconsole_edit = (bool) $profile["vconsole_edit"]; + $vconsole_management = (bool) $profile["vconsole_management"]; $id_audit = db_pandora_audit("User management", "Edit profile ". $name); enterprise_include_once('include/functions_audit.php'); - $info = 'Name: ' . $name . ' Incident view: ' . $incident_view . - ' Incident edit: ' . $incident_edit . ' Incident management: ' . $incident_management . - ' Agent view: ' . $agent_view . ' Agent edit: ' . $agent_edit . - ' Alert edit: ' . $alert_edit . ' User management: ' . $user_management . - ' DB management: ' . $db_management . ' Alert management: ' . $alert_management . - ' Report view: ' . $report_view . ' Report edit: ' . $report_edit . - ' Report management: ' . $report_management . ' Event view: ' . $event_view . - ' Event edit: ' . $event_edit . ' Event management: ' . $event_management . - ' Agent disable: ' . $agent_disable . - ' Pandora Management: ' . $pandora_management; + + $info = 'Name: ' . $name . + + ' Incident view: ' . $incident_view . + ' Incident edit: ' . $incident_edit . + ' Incident management: ' . $incident_management . + + ' Agent view: ' . $agent_view . + ' Agent edit: ' . $agent_edit . + ' Agent disable: ' . $agent_disable . + + ' Alert edit: ' . $alert_edit . + ' Alert management: ' . $alert_management . + + ' User management: ' . $user_management . + + ' DB management: ' . $db_management . + + ' Event view: ' . $event_view . + ' Event edit: ' . $event_edit . + ' Event management: ' . $event_management . + + ' Report view: ' . $report_view . + ' Report edit: ' . $report_edit . + ' Report management: ' . $report_management . + + ' Network map view: ' . $map_view . + ' Network map edit: ' . $map_edit . + ' Network map management: ' . $map_management . + + ' Visual console view: ' . $vconsole_view . + ' Visual console edit: ' . $vconsole_edit . + ' Visual console management: ' . $vconsole_management . + + ' Pandora Management: ' . $pandora_management; + enterprise_hook('audit_pandora_enterprise', array($id_audit, $info)); @@ -141,7 +221,7 @@ if ($id_profile || $new_profile) { $table->width = '98%'; $table->class = 'databox'; - if (defined("METACONSOLE")){ + if (defined("METACONSOLE")) { $table->width = '100%'; $table->class = 'databox data'; if ($id_profile) @@ -156,42 +236,123 @@ if ($id_profile || $new_profile) { $table->style[0] = 'font-weight: bold'; $table->data = array (); - $table->data[0][0] = __('Profile name'); - $table->data[0][1] = html_print_input_text ('name', $name, '', 30, 60, true); - $table->data[1][0] = __('View incidents'); - $table->data[1][1] = html_print_checkbox ('incident_view', 1, $incident_view, true); - $table->data[2][0] = __('Edit incidents'); - $table->data[2][1] = html_print_checkbox ('incident_edit', 1, $incident_edit, true); - $table->data[3][0] = __('Manage incidents'); - $table->data[3][1] = html_print_checkbox ('incident_management', 1, $incident_management, true); - $table->data[4][0] = __('View agents'); - $table->data[4][1] = html_print_checkbox ('agent_view', 1, $agent_view, true); - $table->data[5][0] = __('Edit agents'); - $table->data[5][1] = html_print_checkbox ('agent_edit', 1, $agent_edit, true); - $table->data[6][0] = __('Disable agents'); - $table->data[6][1] = html_print_checkbox ('agent_disable', 1, $agent_disable, true); - $table->data[7][0] = __('Edit alerts'); - $table->data[7][1] = html_print_checkbox ('alert_edit', 1, $alert_edit, true); - $table->data[8][0] = __('Manage users'); - $table->data[8][1] = html_print_checkbox ('user_management', 1, $user_management, true); - $table->data[9][0] = __('Manage Database'); - $table->data[9][1] = html_print_checkbox ('db_management', 1, $db_management, true); - $table->data[10][0] = __('Manage alerts'); - $table->data[10][1] = html_print_checkbox ('alert_management', 1, $alert_management, true); - $table->data[11][0] = __('View reports'); - $table->data[11][1] = html_print_checkbox ('report_view', 1, $report_view, true); - $table->data[12][0] = __('Edit reports'); - $table->data[12][1] = html_print_checkbox ('report_edit', 1, $report_edit, true); - $table->data[13][0] = __('Manage reports'); - $table->data[13][1] = html_print_checkbox ('report_management', 1, $report_management, true); - $table->data[14][0] = __('View events'); - $table->data[14][1] = html_print_checkbox ('event_view', 1, $event_view, true); - $table->data[15][0] = __('Edit events'); - $table->data[15][1] = html_print_checkbox ('event_edit', 1, $event_edit, true); - $table->data[16][0] = __('Manage events'); - $table->data[16][1] = html_print_checkbox ('event_management', 1, $event_management, true); - $table->data[17][0] = __('Pandora management'); - $table->data[17][1] = html_print_checkbox ('pandora_management', 1, $pandora_management, true); + // Name + $row = array(); + $row['name'] = __('Profile name'); + $row['input'] = html_print_input_text ('name', $name, '', 30, 60, true); + $table->data['name'] = $row; + + // Incidents + $row = array(); + $row['name'] = __('View incidents'); + $row['input'] = html_print_checkbox ('incident_view', 1, $incident_view, true); + $table->data['IR'] = $row; + $row = array(); + $row['name'] = __('Edit incidents'); + $row['input'] = html_print_checkbox ('incident_edit', 1, $incident_edit, true); + $table->data['IW'] = $row; + $row = array(); + $row['name'] = __('Manage incidents'); + $row['input'] = html_print_checkbox ('incident_management', 1, $incident_management, true); + $table->data['IM'] = $row; + + // Agents + $row = array(); + $row['name'] = __('View agents'); + $row['input'] = html_print_checkbox ('agent_view', 1, $agent_view, true); + $table->data['AR'] = $row; + $row = array(); + $row['name'] = __('Edit agents'); + $row['input'] = html_print_checkbox ('agent_edit', 1, $agent_edit, true); + $table->data['AW'] = $row; + $row = array(); + $row['name'] = __('Disable agents'); + $row['input'] = html_print_checkbox ('agent_disable', 1, $agent_disable, true); + $table->data['AD'] = $row; + + // Alerts + $row = array(); + $row['name'] = __('Edit alerts'); + $row['input'] = html_print_checkbox ('alert_edit', 1, $alert_edit, true); + $table->data['LW'] = $row; + $row = array(); + $row['name'] = __('Manage alerts'); + $row['input'] = html_print_checkbox ('alert_management', 1, $alert_management, true); + $table->data['LM'] = $row; + + // Users + $row = array(); + $row['name'] = __('Manage users'); + $row['input'] = html_print_checkbox ('user_management', 1, $user_management, true); + $table->data['UM'] = $row; + + // DB + $row = array(); + $row['name'] = __('Manage database'); + $row['input'] = html_print_checkbox ('db_management', 1, $db_management, true); + $table->data['DM'] = $row; + + // Events + $row = array(); + $row['name'] = __('View events'); + $row['input'] = html_print_checkbox ('event_view', 1, $event_view, true); + $table->data['ER'] = $row; + $row = array(); + $row['name'] = __('Edit events'); + $row['input'] = html_print_checkbox ('event_edit', 1, $event_edit, true); + $table->data['EW'] = $row; + $row = array(); + $row['name'] = __('Manage events'); + $row['input'] = html_print_checkbox ('event_management', 1, $event_management, true); + $table->data['EM'] = $row; + + // Reports + $row = array(); + $row['name'] = __('View reports'); + $row['input'] = html_print_checkbox ('report_view', 1, $report_view, true); + $table->data['RR'] = $row; + $row = array(); + $row['name'] = __('Edit reports'); + $row['input'] = html_print_checkbox ('report_edit', 1, $report_edit, true); + $table->data['RW'] = $row; + $row = array(); + $row['name'] = __('Manage reports'); + $row['input'] = html_print_checkbox ('report_management', 1, $report_management, true); + $table->data['RM'] = $row; + + // Network maps + $row = array(); + $row['name'] = __('View network maps'); + $row['input'] = html_print_checkbox ('map_view', 1, $map_view, true); + $table->data['MR'] = $row; + $row = array(); + $row['name'] = __('Edit network maps'); + $row['input'] = html_print_checkbox ('map_edit', 1, $map_edit, true); + $table->data['MW'] = $row; + $row = array(); + $row['name'] = __('Manage network maps'); + $row['input'] = html_print_checkbox ('map_management', 1, $map_management, true); + $table->data['MM'] = $row; + + // Visual console + $row = array(); + $row['name'] = __('View visual console'); + $row['input'] = html_print_checkbox ('vconsole_view', 1, $vconsole_view, true); + $table->data['VR'] = $row; + $row = array(); + $row['name'] = __('Edit visual console'); + $row['input'] = html_print_checkbox ('vconsole_edit', 1, $vconsole_edit, true); + $table->data['VW'] = $row; + $row = array(); + $row['name'] = __('Manage visual console'); + $row['input'] = html_print_checkbox ('vconsole_management', 1, $vconsole_management, true); + $table->data['VM'] = $row; + + // Pandora + $row = array(); + $row['name'] = __('Pandora management'); + $row['input'] = html_print_checkbox ('pandora_management', 1, $pandora_management, true); + $table->data['PM'] = $row; echo ''; diff --git a/pandora_console/godmode/users/profile_list.php b/pandora_console/godmode/users/profile_list.php index ef51daee39..94f30f6b1c 100644 --- a/pandora_console/godmode/users/profile_list.php +++ b/pandora_console/godmode/users/profile_list.php @@ -103,45 +103,78 @@ if ($delete_profile) { } // Store the variables when create or update -if($create_profile || $update_profile) { +if ($create_profile || $update_profile) { $name = get_parameter ("name"); + + // Incidents $incident_view = (bool) get_parameter ("incident_view"); $incident_edit = (bool) get_parameter ("incident_edit"); $incident_management = (bool) get_parameter ("incident_management"); + + // Agents $agent_view = (bool) get_parameter ("agent_view"); $agent_edit = (bool) get_parameter ("agent_edit"); + $agent_disable = (bool) get_parameter ("agent_disable"); + + // Alerts $alert_edit = (bool) get_parameter ("alert_edit"); - $user_management = (bool) get_parameter ("user_management"); - $db_management = (bool) get_parameter ("db_management"); $alert_management = (bool) get_parameter ("alert_management"); + + // Users + $user_management = (bool) get_parameter ("user_management"); + + // DB + $db_management = (bool) get_parameter ("db_management"); + + // Pandora $pandora_management = (bool) get_parameter ("pandora_management"); - $report_view = (bool) get_parameter ("report_view"); - $report_edit = (bool) get_parameter ("report_edit"); - $report_management = (bool) get_parameter ("report_management"); + + // Events $event_view = (bool) get_parameter ("event_view"); $event_edit = (bool) get_parameter ("event_edit"); $event_management = (bool) get_parameter ("event_management"); - $agent_disable = (bool) get_parameter ("agent_disable"); + + // Reports + $report_view = (bool) get_parameter ("report_view"); + $report_edit = (bool) get_parameter ("report_edit"); + $report_management = (bool) get_parameter ("report_management"); + + // Network maps + $map_view = (bool) get_parameter ("map_view"); + $map_edit = (bool) get_parameter ("map_edit"); + $map_management = (bool) get_parameter ("map_management"); + + // Visual console + $vconsole_view = (bool) get_parameter ("vconsole_view"); + $vconsole_edit = (bool) get_parameter ("vconsole_edit"); + $vconsole_management = (bool) get_parameter ("vconsole_management"); $values = array( - 'name' => $name, - 'incident_view' => $incident_view, - 'incident_edit' => $incident_edit, - 'incident_management' => $incident_management, - 'agent_view' => $agent_view, - 'agent_edit' => $agent_edit, - 'alert_edit' => $alert_edit, - 'user_management' => $user_management, - 'db_management' => $db_management, - 'alert_management' => $alert_management, - 'pandora_management' => $pandora_management, - 'report_view' => $report_view, - 'report_edit' => $report_edit, - 'report_management' => $report_management, - 'event_view' => $event_view, - 'event_edit' => $event_edit, - 'event_management' => $event_management, - 'agent_disable' => $agent_disable); + 'name' => $name, + 'incident_view' => $incident_view, + 'incident_edit' => $incident_edit, + 'incident_management' => $incident_management, + 'agent_view' => $agent_view, + 'agent_edit' => $agent_edit, + 'agent_disable' => $agent_disable, + 'alert_edit' => $alert_edit, + 'alert_management' => $alert_management, + 'user_management' => $user_management, + 'db_management' => $db_management, + 'event_view' => $event_view, + 'event_edit' => $event_edit, + 'event_management' => $event_management, + 'report_view' => $report_view, + 'report_edit' => $report_edit, + 'report_management' => $report_management, + 'map_view' => $map_view, + 'map_edit' => $map_edit, + 'map_management' => $map_management, + 'vconsole_view' => $vconsole_view, + 'vconsole_edit' => $vconsole_edit, + 'vconsole_management' => $vconsole_management, + 'pandora_management' => $pandora_management + ); } // Update profile @@ -149,16 +182,41 @@ if ($update_profile) { if ($name) { $ret = db_process_sql_update('tperfil', $values, array('id_perfil' => $id_profile)); if ($ret !== false) { - $info = 'Name: ' . $name . ' Incident view: ' . $incident_view . - ' Incident edit: ' . $incident_edit . ' Incident management: ' . $incident_management . - ' Agent view: ' . $agent_view . ' Agent edit: ' . $agent_edit . - ' Alert edit: ' . $alert_edit . ' User management: ' . $user_management . - ' DB management: ' . $db_management . ' Alert management: ' . $alert_management . - ' Report view: ' . $report_view . ' Report edit: ' . $report_edit . - ' Report management: ' . $report_management . ' Event view: ' . $event_view . - ' Event edit: ' . $event_edit . ' Event management: ' . $event_management . - ' Agent disable: ' . $agent_disable . - ' Pandora Management: ' . $pandora_management; + $info = 'Name: ' . $name . + + ' Incident view: ' . $incident_view . + ' Incident edit: ' . $incident_edit . + ' Incident management: ' . $incident_management . + + ' Agent view: ' . $agent_view . + ' Agent edit: ' . $agent_edit . + ' Agent disable: ' . $agent_disable . + + ' Alert edit: ' . $alert_edit . + ' Alert management: ' . $alert_management . + + ' User management: ' . $user_management . + + ' DB management: ' . $db_management . + + ' Event view: ' . $event_view . + ' Event edit: ' . $event_edit . + ' Event management: ' . $event_management . + + ' Report view: ' . $report_view . + ' Report edit: ' . $report_edit . + ' Report management: ' . $report_management . + + ' Network map view: ' . $map_view . + ' Network map edit: ' . $map_edit . + ' Network map management: ' . $map_management . + + ' Visual console view: ' . $vconsole_view . + ' Visual console edit: ' . $vconsole_edit . + ' Visual console management: ' . $vconsole_management . + + ' Pandora Management: ' . $pandora_management; + db_pandora_audit("User management", "Update profile ". $name, false, false, $info); @@ -182,16 +240,41 @@ if ($create_profile) { if ($ret !== false) { ui_print_success_message(__('Successfully created')); - $info = 'Name: ' . $name . ' Incident view: ' . $incident_view . - ' Incident edit: ' . $incident_edit . ' Incident management: ' . $incident_management . - ' Agent view: ' . $agent_view . ' Agent edit: ' . $agent_edit . - ' Alert edit: ' . $alert_edit . ' User management: ' . $user_management . - ' DB management: ' . $db_management . ' Alert management: ' . $alert_management . - ' Report view: ' . $report_view . ' Report edit: ' . $report_edit . - ' Report management: ' . $report_management . ' Event view: ' . $event_view . - ' Event edit: ' . $event_edit . ' Event management: ' . $event_management . - ' Agent disable: ' . $agent_disable . - ' Pandora Management: ' . $pandora_management; + $info = 'Name: ' . $name . + + ' Incident view: ' . $incident_view . + ' Incident edit: ' . $incident_edit . + ' Incident management: ' . $incident_management . + + ' Agent view: ' . $agent_view . + ' Agent edit: ' . $agent_edit . + ' Agent disable: ' . $agent_disable . + + ' Alert edit: ' . $alert_edit . + ' Alert management: ' . $alert_management . + + ' User management: ' . $user_management . + + ' DB management: ' . $db_management . + + ' Event view: ' . $event_view . + ' Event edit: ' . $event_edit . + ' Event management: ' . $event_management . + + ' Report view: ' . $report_view . + ' Report edit: ' . $report_edit . + ' Report management: ' . $report_management . + + ' Network map view: ' . $map_view . + ' Network map edit: ' . $map_edit . + ' Network map management: ' . $map_management . + + ' Visual console view: ' . $vconsole_view . + ' Visual console edit: ' . $vconsole_edit . + ' Visual console management: ' . $vconsole_management . + + ' Pandora Management: ' . $pandora_management; + db_pandora_audit("User management", "Created profile ". $name, false, false, $info); } @@ -217,26 +300,32 @@ $table->data = array (); $table->size = array (); $table->align = array (); -$table->head[0] = __('Profiles'); +$table->head['profiles'] = __('Profiles'); -$table->head[1] = "IR" . ui_print_help_tip (__('System incidents reading'), true); -$table->head[2] = "IW" . ui_print_help_tip (__('System incidents writing'), true); -$table->head[3] = "IM" . ui_print_help_tip (__('System incidents management'), true); -$table->head[4] = "AR" . ui_print_help_tip (__('Agents reading'), true); -$table->head[5] = "AW" . ui_print_help_tip (__('Agents management'), true); -$table->head[6] = "AD" . ui_print_help_tip (__('Agents disable'), true); -$table->head[7] = "LW" . ui_print_help_tip (__('Alerts editing'), true); -$table->head[8] = "UM" . ui_print_help_tip (__('Users management'), true); -$table->head[9] = "DM" . ui_print_help_tip (__('Database management'), true); -$table->head[10] = "LM" . ui_print_help_tip (__('Alerts management'), true); -$table->head[11] = "RR" . ui_print_help_tip (__('Reports reading'), true); -$table->head[12] = "RW" . ui_print_help_tip (__('Reports writing'), true); -$table->head[13] = "RM" . ui_print_help_tip (__('Reports management'), true); -$table->head[14] = "ER" . ui_print_help_tip (__('Events reading'), true); -$table->head[15] = "EW" . ui_print_help_tip (__('Events writing'), true); -$table->head[16] = "EM" . ui_print_help_tip (__('Events management'), true); -$table->head[17] = "PM" . ui_print_help_tip (__('Systems management'), true); -$table->head[18] = '' . __('Op.') . ''; +$table->head['IR'] = "IR" . ui_print_help_tip (__('System incidents reading'), true); +$table->head['IW'] = "IW" . ui_print_help_tip (__('System incidents writing'), true); +$table->head['IM'] = "IM" . ui_print_help_tip (__('System incidents management'), true); +$table->head['AR'] = "AR" . ui_print_help_tip (__('Agents reading'), true); +$table->head['AW'] = "AW" . ui_print_help_tip (__('Agents management'), true); +$table->head['AD'] = "AD" . ui_print_help_tip (__('Agents disable'), true); +$table->head['LW'] = "LW" . ui_print_help_tip (__('Alerts editing'), true); +$table->head['LM'] = "LM" . ui_print_help_tip (__('Alerts management'), true); +$table->head['UM'] = "UM" . ui_print_help_tip (__('Users management'), true); +$table->head['DM'] = "DM" . ui_print_help_tip (__('Database management'), true); +$table->head['ER'] = "ER" . ui_print_help_tip (__('Events reading'), true); +$table->head['EW'] = "EW" . ui_print_help_tip (__('Events writing'), true); +$table->head['EM'] = "EM" . ui_print_help_tip (__('Events management'), true); +$table->head['RR'] = "RR" . ui_print_help_tip (__('Reports reading'), true); +$table->head['RW'] = "RW" . ui_print_help_tip (__('Reports writing'), true); +$table->head['RM'] = "RM" . ui_print_help_tip (__('Reports management'), true); +$table->head['MR'] = "MR" . ui_print_help_tip (__('Network maps reading'), true); +$table->head['MW'] = "MW" . ui_print_help_tip (__('Network maps writing'), true); +$table->head['MM'] = "MM" . ui_print_help_tip (__('Network maps management'), true); +$table->head['VR'] = "VR" . ui_print_help_tip (__('Visual console reading'), true); +$table->head['VW'] = "VW" . ui_print_help_tip (__('Visual console writing'), true); +$table->head['VM'] = "VM" . ui_print_help_tip (__('Visual console management'), true); +$table->head['PM'] = "PM" . ui_print_help_tip (__('Systems management'), true); +$table->head['operations'] = '' . __('Op.') . ''; $table->align = array_fill (1, 11, "center"); $table->size = array_fill (1, 10, 40); @@ -249,26 +338,32 @@ if ($profiles === false) { $img = html_print_image ("images/ok.png", true, array ("border" => 0)); foreach ($profiles as $profile) { - $data[0] = ''.$profile["name"].''; - $data[1] = ($profile["incident_view"] ? $img : ''); - $data[2] = ($profile["incident_edit"] ? $img : ''); - $data[3] = ($profile["incident_management"] ? $img : ''); - $data[4] = ($profile["agent_view"] ? $img : ''); - $data[5] = ($profile["agent_edit"] ? $img : ''); - $data[6] = ($profile["agent_disable"] ? $img : ''); - $data[7] = ($profile["alert_edit"] ? $img : ''); - $data[8] = ($profile["user_management"] ? $img : ''); - $data[9] = ($profile["db_management"] ? $img : ''); - $data[10] = ($profile["alert_management"] ? $img : ''); - $data[11] = ($profile["report_view"] ? $img : ''); - $data[12] = ($profile["report_edit"] ? $img : ''); - $data[13] = ($profile["report_management"] ? $img : ''); - $data[14] = ($profile["event_view"] ? $img : ''); - $data[15] = ($profile["event_edit"] ? $img : ''); - $data[16] = ($profile["event_management"] ? $img : ''); - $data[17] = ($profile["pandora_management"] ? $img : ''); - $data[18] = ''. html_print_image('images/config.png', true, array('title' => __('Edit'))) .''; - $data[18] .= '  '. html_print_image("images/cross.png", true) . ''; + $data['profiles'] = ''.$profile["name"].''; + $data['IR'] = ($profile["incident_view"] ? $img : ''); + $data['IW'] = ($profile["incident_edit"] ? $img : ''); + $data['IM'] = ($profile["incident_management"] ? $img : ''); + $data['AR'] = ($profile["agent_view"] ? $img : ''); + $data['AW'] = ($profile["agent_edit"] ? $img : ''); + $data['AD'] = ($profile["agent_disable"] ? $img : ''); + $data['LW'] = ($profile["alert_edit"] ? $img : ''); + $data['LM'] = ($profile["alert_management"] ? $img : ''); + $data['UM'] = ($profile["user_management"] ? $img : ''); + $data['DM'] = ($profile["db_management"] ? $img : ''); + $data['ER'] = ($profile["event_view"] ? $img : ''); + $data['EW'] = ($profile["event_edit"] ? $img : ''); + $data['EM'] = ($profile["event_management"] ? $img : ''); + $data['RR'] = ($profile["report_view"] ? $img : ''); + $data['RW'] = ($profile["report_edit"] ? $img : ''); + $data['RM'] = ($profile["report_management"] ? $img : ''); + $data['MR'] = ($profile["map_view"] ? $img : ''); + $data['MW'] = ($profile["map_edit"] ? $img : ''); + $data['MM'] = ($profile["map_management"] ? $img : ''); + $data['VR'] = ($profile["vconsole_view"] ? $img : ''); + $data['VW'] = ($profile["vconsole_edit"] ? $img : ''); + $data['VM'] = ($profile["vconsole_management"] ? $img : ''); + $data['PM'] = ($profile["pandora_management"] ? $img : ''); + $data['operations'] = ''. html_print_image('images/config.png', true, array('title' => __('Edit'))) .''; + $data['operations'] .= '  '. html_print_image("images/cross.png", true) . ''; array_push ($table->data, $data); } diff --git a/pandora_console/images/pandora.png b/pandora_console/images/pandora.png new file mode 100644 index 0000000000..bbe2ea5bc0 Binary files /dev/null and b/pandora_console/images/pandora.png differ diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index e23f8fcc5f..7fdfc439aa 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -1038,6 +1038,14 @@ if ($list_modules) { .click (function () { return false; }); + $("a.relations_details").cluetip ({ + arrows: true, + attribute: 'href', + cluetipClass: 'default' + }) + .click (function () { + return false; + }); function toggle_full_value(id) { text = $("#hidden_value_module_" + id).html(); diff --git a/pandora_console/include/ajax/networkmap.ajax.php b/pandora_console/include/ajax/networkmap.ajax.php index cb21e41c2b..5131de9664 100644 --- a/pandora_console/include/ajax/networkmap.ajax.php +++ b/pandora_console/include/ajax/networkmap.ajax.php @@ -58,50 +58,17 @@ switch($action) { } if (isset($stats['agents'])) { - if ($metaconsole) { - include_once ('include/functions_reporting.php'); - - $servers = db_get_all_rows_sql ("SELECT * - FROM tmetaconsole_setup"); - if ($servers === false) - $servers = array(); - - $total_agents = 0; - - foreach ($servers as $server) { - // If connection was good then retrieve all data server - if (metaconsole_load_external_db ($server)) { - $connection = true; - } - else { - $connection = false; - } - - if ($connection) - $data = reporting_get_group_stats(); - - metaconsole_restore_db(); - - $total_agents += $data["total_agents"]; - } - - - $total_agents = format_numeric($total_agents); - - $summary .= $total_agents . - " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . - ' ' . __('Agents') . "
"; - } - else { - $summary .= count($stats['agents']) . - " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . - ' ' . __('Agents') . "
"; - } + // TODO: GET STATUS OF THE AGENTS AND ADD IT TO SUMMARY + $summary .= count($stats['agents']) . + " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . + ' ' . __('Agents') . "
"; } if (isset($stats['modules'])) { // TODO: GET STATUS OF THE MODULES AND ADD IT TO SUMMARY - $summary .= count($stats['modules'])." x ".html_print_image('images/brick.png',true).' '.__('Modules')."
"; + $summary .= count($stats['modules']) . + " x " . html_print_image($hack_metaconsole . 'images/brick.png',true) . + ' ' . __('Modules') . "
"; } echo '

'.__('Map summary').'

'.$summary.''; @@ -120,46 +87,9 @@ switch($action) { $summary = '
'; if (isset($stats['agents'])) { - if ($metaconsole) { - include_once ('include/functions_reporting.php'); - - $servers = db_get_all_rows_sql ("SELECT * - FROM tmetaconsole_setup - WHERE id = " . $id_server); - if ($servers === false) - $servers = array(); - - $total_agents = 0; - - foreach ($servers as $server) { - // If connection was good then retrieve all data server - if (metaconsole_load_external_db ($server)) { - $connection = true; - } - else { - $connection = false; - } - - if ($connection) - $data = reporting_get_group_stats(); - - metaconsole_restore_db(); - - $total_agents += $data["total_agents"]; - } - - - $total_agents = format_numeric($total_agents); - - $summary .= $total_agents . - " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . - ' ' . __('Agents') . "
"; - } - else { - $summary .= count($stats['agents']) . - " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . - ' ' . __('Agents') . "
"; - } + $summary .= count($stats['agents']) . + " x " . html_print_image($hack_metaconsole . 'images/bricks.png',true) . + ' ' . __('Agents') . "
"; } echo '

'.__('Map summary').'

'.$summary.''; break; diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index 5de0da1f0e..151247cb83 100755 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -17,14 +17,41 @@ global $config; check_login (); -// Fix: IW was the old ACL to check for report editing, now is RW -if (! check_acl ($config['id_user'], 0, "RW")) { +$id_visual_console = get_parameter('id_visual_console', null); + +// WARNING: CHECK THE ENTIRE FUNCTIONALITY + +// Visual console id required +if (empty($id_visual_console)) { db_pandora_audit("ACL Violation", "Trying to access report builder"); require ("general/noaccess.php"); exit; } +// Get the group id for the ACL checks +$group_id = db_get_value('id_group', 'tlayout', 'id', $id_visual_console); +if ($group_id === false) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} + +// ACL for the existing visual console +// if (!isset($vconsole_read)) +// $vconsole_read = check_acl ($config['id_user'], $group_id, "VR"); +if (!isset($vconsole_write)) + $vconsole_write = check_acl ($config['id_user'], $group_id, "VW"); +if (!isset($vconsole_manage)) + $vconsole_manage = check_acl ($config['id_user'], $group_id, "VM"); + +if (!$vconsole_write && !$vconsole_manage) { + db_pandora_audit("ACL Violation", + "Trying to access report builder"); + require ("general/noaccess.php"); + exit; +} //Fix ajax to avoid include the file, 'functions_graph.php'. $ajax = true; @@ -39,8 +66,6 @@ enterprise_include_once('include/functions_visual_map.php'); $action = get_parameter('action'); $type = get_parameter('type'); -$id_visual_console = get_parameter('id_visual_console', null); - $id_element = get_parameter('id_element', null); $image = get_parameter('image', null); diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index fa566c0ee6..cdfdb95cd0 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -367,7 +367,8 @@ class Tree { AND ta.id_grupo = tg.id_grupo $group_acl $agent_search_filter - $agent_status_filter"; + $agent_status_filter + $module_search_filter"; $counter_columns = $this->getAgentCounterColumnsSql($agent_table); if (!empty($counter_columns)) $columns .= ", $counter_columns"; @@ -385,6 +386,7 @@ class Tree { $group_acl $agent_search_filter $agent_status_filter + $module_search_filter GROUP BY tg.id_grupo ORDER BY $order_fields"; } @@ -407,6 +409,7 @@ class Tree { $group_acl $agent_search_filter $agent_status_filter + $module_search_filter GROUP BY ta.id_agente ORDER BY $order_fields"; } diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 85f540d49e..61e2905e02 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 = 'PC150327'; +$build_version = 'PC150413'; $pandora_version = 'v6.0dev'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 1078940e0f..e8cdef04b1 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1770,7 +1770,9 @@ function check_acl($id_user, $id_group, $access, $id_agent = 0) { tperfil.report_view, tperfil.report_edit, tperfil.report_management, tperfil.event_view, tperfil.event_edit, tperfil.event_management, - tperfil.agent_disable + tperfil.agent_disable, + tperfil.map_view, tperfil.map_edit, tperfil.map_management, + tperfil.vconsole_view, tperfil.vconsole_edit, tperfil.vconsole_management FROM tusuario_perfil, tperfil WHERE tusuario_perfil.id_perfil = tperfil.id_perfil AND tusuario_perfil.id_usuario = '%s'", $id_user); @@ -1785,7 +1787,9 @@ function check_acl($id_user, $id_group, $access, $id_agent = 0) { tperfil.report_view, tperfil.report_edit, tperfil.report_management, tperfil.event_view, tperfil.event_edit, tperfil.event_management, - tperfil.agent_disable + tperfil.agent_disable, + tperfil.map_view, tperfil.map_edit, tperfil.map_management, + tperfil.vconsole_view, tperfil.vconsole_edit, tperfil.vconsole_management FROM tusuario_perfil, tperfil WHERE tusuario_perfil.id_perfil = tperfil.id_perfil AND tusuario_perfil.id_usuario = '%s' @@ -1874,6 +1878,24 @@ function get_acl_column($access) { case "EM": return "event_management"; break; + case "MR": + return "map_view"; + break; + case "MW": + return "map_edit"; + break; + case "MM": + return "map_management"; + break; + case "VR": + return "vconsole_view"; + break; + case "VW": + return "vconsole_edit"; + break; + case "VM": + return "vconsole_management"; + break; default: return ""; break; @@ -2318,4 +2340,26 @@ function set_pandora_error_for_header($message, $title = null) { $_SESSION["alert_msg"] .= ui_print_error_message($message_config, '', true); } + +function set_if_defined (&$var, $test) { + if (isset($test)) { + $var = $test; + + return true; + } + else { + return false; + } +} + +function set_unless_defined (&$var, $default) { + if (! isset($var)) { + $var = $default; + + return true; + } + else { + return false; + } +} ?> diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index b81b09695b..034cee43d5 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1413,6 +1413,12 @@ function config_check () { __("Default font doesnt exist")); } + if ($config['event_storm_protection']) { + set_pandora_error_for_header( + __('You need to restart server after altering this configuration setting.'), + __('Event storm protection is activated. No events will be generated during this mode.')); + } + global $develop_bypass; if ($develop_bypass == 1) { diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index e02aa75f8a..a1e0f9c2cf 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -28,10 +28,6 @@ require_once ('functions_agents.php'); require_once($config['homedir'] . "/include/functions_modules.php"); require_once($config['homedir'] . "/include/functions_groups.php"); ui_require_css_file ('cluetip'); -$hack_metaconsole = ''; -if (defined('METACONSOLE')) - $hack_metaconsole = '../../'; -ui_require_jquery_file ('cluetip', $hack_metaconsole . 'include/javascript/'); // Check if a node descends from a given node function networkmap_is_descendant ($node, $ascendant, $parents) { @@ -689,7 +685,6 @@ function networkmap_generate_dot_groups ($pandora_name, $group = 0, } $filter['id_grupo'] = $id_groups; - $filter['id_group'] = $id_groups; } else { if ($strict_user) { @@ -746,10 +741,12 @@ function networkmap_generate_dot_groups ($pandora_name, $group = 0, if ($depth != 'group') { if ($strict_user) { $filter['group_by'] = 'tagente.nombre'; + $filter['id_group'] = $filter['id_grupo']; $fields = array ('tagente.id_grupo, tagente.nombre, tagente.id_os, tagente.id_agente, tagente.normal_count, tagente.warning_count, tagente.critical_count, tagente.unknown_count, tagente.total_count, tagente.notinit_count'); $agents = tags_get_all_user_agents (false, $config['id_user'], $acltags, $filter, $fields, false, $strict_user, true); + unset($filter['id_group']); } else { // Get agents data $agents = agents_get_agents ($filter, @@ -1429,12 +1426,13 @@ function networkmap_open_graph ($layout, $nooverlap, $pure, $zoom, $ranksep, $fo $size = $size_x . ',' . $size_y; // BEWARE: graphwiz DONT use single ('), you need double (") - $head = "graph networkmap { bgcolor=\"transparent\"; labeljust=l; margin=0; "; + $head = "graph networkmap { bgcolor=\"transparent\"; labeljust=l; margin=0; pad=\"0.75,0.75\";"; if ($nooverlap != '') { $head .= "overlap=\"$overlap\";"; $head .= "ranksep=\"$ranksep\";"; $head .= "outputorder=edgesfirst;"; - } + } + $head .= "ratio=fill;"; $head .= "root=0;"; $head .= "size=\"$size\";"; @@ -1491,36 +1489,40 @@ function networkmap_get_filter ($layout) { * * @return mixed New networkmap id if created. False if it could not be created. */ -function networkmap_create_networkmap ($name, $type = 'topology', $layout = 'radial', $nooverlap = true, $simple = false, $regenerate = true, $font_size = 12, $id_group = 0, $id_module_group = 0, $depth = 'all', $only_modules_with_alerts = false, $hide_policy_modules = false, $zoom = 1, $distance_nodes = 2.5, $center = 0, $text_filter = '', $dont_show_subgroups = 0, $show_groups = false, $show_modules = false, $pandoras_children = false) { - +function networkmap_create_networkmap ($values) { global $config; - $values = array(); + // The name is required + if (! isset($values['name'])) + return false; - $values['name'] = $name; - $values['type'] = $type; - $values['layout'] = $layout; - $values['nooverlap'] = $nooverlap; - $values['simple'] = $simple; - $values['regenerate'] = $regenerate; - $values['font_size'] = $font_size; - $values['id_group'] = $id_group; - $values['id_module_group'] = $id_module_group; - $values['depth'] = $depth; - $values['only_modules_with_alerts'] = $only_modules_with_alerts; - $values['hide_policy_modules'] = $hide_policy_modules; - $values['zoom'] = $zoom; - $values['distance_nodes'] = $distance_nodes; - $values['center'] = $center; - $values['id_user'] = $config['id_user']; - $values['text_filter'] = $text_filter; - $values['dont_show_subgroups'] = $dont_show_subgroups; - - $values['pandoras_children'] = $pandoras_children; - $values['show_groups'] = $show_groups; - $values['show_modules'] = $show_modules; - - $values['server_name'] = ""; + // Set defaults for the empty values + set_unless_defined ($values['type'], 'topology'); + set_unless_defined ($values['layout'], 'radial'); + set_unless_defined ($values['nooverlap'], true); + set_unless_defined ($values['simple'], false); + set_unless_defined ($values['regenerate'], true); + set_unless_defined ($values['font_size'], 12); + set_unless_defined ($values['store_group'], 0); + set_unless_defined ($values['id_group'], 0); + set_unless_defined ($values['regenerate'], true); + set_unless_defined ($values['id_module_group'], 0); + set_unless_defined ($values['depth'], 'all'); + set_unless_defined ($values['only_modules_with_alerts'], false); + set_unless_defined ($values['hide_policy_modules'], false); + set_unless_defined ($values['zoom'], 1); + set_unless_defined ($values['distance_nodes'], 2.5); + set_unless_defined ($values['center'], 0); + set_unless_defined ($values['id_user'], $config['id_user']); + set_unless_defined ($values['text_filter'], ''); + set_unless_defined ($values['regenerate'], true); + set_unless_defined ($values['dont_show_subgroups'], 0); + set_unless_defined ($values['show_groups'], false); + set_unless_defined ($values['pandoras_children'], false); + set_unless_defined ($values['show_modules'], false); + set_unless_defined ($values['show_snmp_modules'], 0); + set_unless_defined ($values['l2_network'], 0); + set_unless_defined ($values['server_name'], ''); return @db_process_sql_insert('tnetwork_map', $values); } @@ -1790,14 +1792,41 @@ function networkmap_get_new_nodes_from_ip_mask($ip_mask, $fields = array(), $str ?> diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 79f578268f..d83d9102d0 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -2086,7 +2086,8 @@ function visual_map_create_internal_name_item($label = null, $type, $image, $age } function visual_map_get_items_parents($idVisual) { - $items = db_get_all_rows_filter('tlayout_data',array('id_layout' => $idVisual)); + $items = db_get_all_rows_sql(sprintf("SELECT * FROM tlayout_data where id_layout = %s order by label",$idVisual)); + //$items = db_get_all_fields_in_table('tlayout_data',array('id_layout' => $idVisual)); if ($items == false) { $items = array(); } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 8857f5b77e..154bb0a130 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -721,6 +721,8 @@ function flot_slicesbar_graph ($graph_data, $period, $width, $height, $legend, $ $fontsize = 7; $extra_height = 15; + if (defined("METACONSOLE")) + $extra_height = 20; $return .= ""; diff --git a/pandora_console/include/help/en/help_profile.php b/pandora_console/include/help/en/help_profile.php index 93dad11cea..58327eb36a 100644 --- a/pandora_console/include/help/en/help_profile.php +++ b/pandora_console/include/help/en/help_profile.php @@ -10,63 +10,71 @@

The following list defines what ACL control allows in each feature at the console:

- -
FeatureACL Control + +
FeatureACL Control -
View agent data (all tabs)AR -
Tactical viewAR -
Network map viewAR -
Group viewAR -
Visual console editionRW -
Create reportRW -
Create user custom-defined graphRW -
View report, visual map and/or custom graphRR -
Apply report templateRR -
Create report templateRM -
Create incidentIW -
Read incidentIR -
Delete IncidentIW -
Become owner of another incidentIM -
Delete incident of another userIM -
View eventER -
Validate/Comment eventEW -
Delete eventEM -
Execute responseEW -
Create incident from event (Response)EW&IW -
Manage responsePM -
Manage filtersEW -
Customize event columnsPM -
Change owner/Re-open eventEM -
View userAR -
SNMP Console viewAR -
Validate trapsIW -
MessageIW +
View the agent's data (all tabs)AR +
Tactical ViewAR +
Group ViewAR +
Visual console editingRW +
Creating reportsRW +
Creating user-defined graphsRW +
Viewing reports, visual maps and custom graphsRR +
Applying report templatesRR +
Creating report templatesRM +
Creating incidentsIW +
Reading incidentsIR +
Deleting incidentsIW +
Becoming the owner of another user's incidentsIM +
Deleting another user's incidentsIM +
Viewing eventsER +
Validating and commenting eventsEW +
Deleting eventsEM +
Executing responsesEW +
Creating incidents from events (response)EW&IW +
Managing responsesPM +
Managing filtersEW +
Customizing event columnsPM +
Changing owners / reopen eventEM +
Viewing usersAR +
SNMP Console viewingAR +
Validating trapsIW +
MessagesIW
Cron jobs PM
Tree view AR -
Update manager (Operation & Admin) PM +
Update Manager (operation and administration) PM
Extension Module GroupAR -
Agent managementAW -
Remote agent configuration management AW -
Assign alerts to agentsLW -
Define, alter and delete alert templates, actions and commandsLM -
Group managementPM -
Create inventory modulesPM -
Module management (includes all suboptions)PM -
Massive management operations AW -
Create agentAW -
Duplicate remote configurationsAW -
Downtime managementAW -
Alert managementLW -
User managementUM -
SNMP Console management (alerts and MIB load)PM -
Profile managementPM -
Server managementPM -
System auditPM +
Agent ManagementAW +
Remote Agent Configuration Management AW +
Assigning alerts to agentsLW +
Defining, altering and deleting alert templates, actions and commandsLM +
Group ManagementPM +
Creating inventory modulesPM +
Module Management (includes all suboptions)PM +
Massive Management Operations AW +
Creating agentsAW +
Duplicating remote configurationsAW +
Downtime ManagementAW +
Alert ManagementLW +
User ManagementUM +
SNMP Console Management (alerts and MIB loading)PM +
Profile ManagementPM +
Server ManagementPM +
System AuditPM
SetupPM -
Database maintanceDM -
Administrator extension menuPM -
Search barAR -
Policy managementAW -
Disable agent/module/alertAD +
Database MaintenanceDM +
Administrator Extension MenuPM +
Search BarAR +
Policy ManagementAW +
Disabling agents / modules / alertsAD +
Alerts validationLM&AR or AW&LW +
Network-map viewMR +
Network-map editionMW +
Deletion of owned network-mapMW +
Deletion of any network-mapMM +
Visual console viewVR +
Visual console editionVW +
Deletion of owned visual consoleVW +
Deletion of any visual consoleVM
diff --git a/pandora_console/include/help/es/help_profile.php b/pandora_console/include/help/es/help_profile.php index cead0cdfad..88d035914c 100644 --- a/pandora_console/include/help/es/help_profile.php +++ b/pandora_console/include/help/es/help_profile.php @@ -13,16 +13,16 @@
- -
OperacionBit de acceso + +
OperaciónBit de acceso +
Ver datos agente (todas las vistas) AR
Vista táctica AR -
Vista mapas de red AR
Vista de grupos AR
Crear un visual console RW
Crear un informe RW -
Crear una grafica combinada RW -
Ver informe, mapa, grafica, etc RR +
Crear una gráfica combinada RW +
Ver informe, gráfica, etc RR
Aplicar una plantilla de informeRR
Crear una plantilla de informeRM
Crear incidente IW @@ -34,7 +34,7 @@
Validar/Comentar evento EW
Borrar evento EM
Ejecutar respuestasEW -
Crear incidencia a traves del evento (Respuesta) EW&IW +
Crear incidencia a través del evento (Respuesta) EW&IW
Gestionar respuestasPM
Gestionar filtrosEW
Personalizar columnas de eventosPM @@ -47,13 +47,13 @@
Tree view AR
Update manager (Operación y Administración) PM
Extension Module GroupAR -
Vista de gestion agente AW +
Vista de gestión agente AW
Edición del agente y de su .conf AW
Asignación de alertas ya creadas LW
Definir, modificar plantillas, comandos y acciones LM
Gestión de grupos PM -
Crear modulos de inventario PM -
Gestionar modulos (Incluidas todas las subopciones)PM +
Crear módulos de inventario PM +
Gestionar módulos (Incluidas todas las subopciones)PM
Operaciones masivas AW
Crear agente AW
Duplicar configuración remotaAW @@ -63,13 +63,18 @@
Gestión de consola SNMPPM
Gestión de perfilesPM
Gestión de servidoresPM -
Auditoría del sistema (edicion y visualizacion)PM +
Auditoría del sistema (edición y visualización)PM
Setup (todas las solapas inferiores incl) PM
Mantenimiento de la BBDD DM -
Extensiones administracion PM -
Barra busqueda AR +
Extensiones administración PM +
Barra búsqueda AR
Gestión de PolíticasAW
Desactivar agente/módulo/alertaAD +
Validar alertasLM&AR o AW&LW +
Vista de mapas de redMR +
Edición de mapas de redMW +
Borrado de mapas de red propiosMW +
Borrado de cualquier mapa de redMM
diff --git a/pandora_console/include/javascript/tree/TreeController.js b/pandora_console/include/javascript/tree/TreeController.js index e3749cc043..27fd11c91c 100644 --- a/pandora_console/include/javascript/tree/TreeController.js +++ b/pandora_console/include/javascript/tree/TreeController.js @@ -46,7 +46,7 @@ TreeController = { $group .addClass("tree-root") .hide() - .prepend(''); + .prepend(''); } // Normal group else { diff --git a/pandora_console/include/languages/ar.mo b/pandora_console/include/languages/ar.mo index eb79507342..2044021562 100644 Binary files a/pandora_console/include/languages/ar.mo and b/pandora_console/include/languages/ar.mo differ diff --git a/pandora_console/include/languages/ar.po b/pandora_console/include/languages/ar.po index d160812bd0..a667846ddf 100644 --- a/pandora_console/include/languages/ar.po +++ b/pandora_console/include/languages/ar.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" #: ../../godmode/menu.php:28 @@ -29388,9 +29388,6 @@ msgstr "" #~ msgid "Search value" #~ msgstr "البحث عن القيمة" -#~ msgid "OID:" -#~ msgstr "قائمة أوراكل إنترنت (OID" - #~ msgid "Read message" #~ msgstr "قراءة رسالة" @@ -29794,6 +29791,3 @@ msgstr "" #~ msgid "Total data" #~ msgstr "إجمالي البيانات" - -#~ msgid "Without permissions" -#~ msgstr "دون تصريح" diff --git a/pandora_console/include/languages/ca.mo b/pandora_console/include/languages/ca.mo index 7c24dcf791..005914541b 100644 Binary files a/pandora_console/include/languages/ca.mo and b/pandora_console/include/languages/ca.mo differ diff --git a/pandora_console/include/languages/ca.po b/pandora_console/include/languages/ca.po index d3374b57a0..8abe824a2b 100644 --- a/pandora_console/include/languages/ca.po +++ b/pandora_console/include/languages/ca.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:52+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:28+0000\n" "X-Generator: Launchpad (build 17413)\n" #: ../../general/links_menu.php:20 ../../godmode/menu.php:216 @@ -30237,12 +30237,6 @@ msgstr "Registres del sistema" #~ msgid "Id" #~ msgstr "Id" -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Delay (sec) / Mòduls retard" - -#~ msgid "Add module macro" -#~ msgstr "Afegir macro mòdul" - #~ msgid "Database sanity tool" #~ msgstr "Eina de base de dades del seny" @@ -30278,72 +30272,9 @@ msgstr "Registres del sistema" #~ msgid "Field 3" #~ msgstr "Camp 3" -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Esquerra en blanc per mòduls d'inventari de xarxa" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "" -#~ "Posi aquí la seva codi de seqüència de comandaments per al mòdul d'inventari" - -#~ msgid "Invalid license." -#~ msgstr "Invalid llicència." - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Si us plau, poseu-vos en contacte amb Artica en info@artica.es d'una " -#~ "llicència vàlida." - -#~ msgid "Columns" -#~ msgstr "Columnes" - -#~ msgid "Agent and monitor information" -#~ msgstr "Agent i la informació del monitor" - -#~ msgid "No servers" -#~ msgstr "No hi ha servidors" - -#~ msgid "Event information" -#~ msgstr "De l'esdeveniment" - -#~ msgid "Without permissions" -#~ msgstr "Sense permisos" - -#~ msgid "disabled" -#~ msgstr "Deshabilitat" - -#~ msgid "Events replication is not enabled" -#~ msgstr "Replicació Esdeveniments no està habilitat" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "Replicació Esdeveniments no està configurat correctament per a aquest " -#~ "metaconsola" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "El servidor sembla estar configurat per replicar els esdeveniments, però cap " -#~ "esdeveniment s'ha rebut encara" - -#~ msgid "Unknown error" -#~ msgstr "Error desconegut" - -#~ msgid "Sort the agents by " -#~ msgstr "Classificar els agents de " - #~ msgid "Search value" #~ msgstr "Valor de Recerca" -#~ msgid "Custom data:" -#~ msgstr "Dades personalitzats:" - -#~ msgid "OID:" -#~ msgstr "OID:" - -#~ msgid "Type:" -#~ msgstr "Tipus:" - #~ msgid "Update manager settings" #~ msgstr "Actualització de valors del gestor" @@ -30369,9 +30300,6 @@ msgstr "Registres del sistema" #~ msgid "Code / binary directory" #~ msgstr "Codi / directori de binaris" -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "No hi ha agents en aquesta Agrupació" - #~ msgid "Current directory is not writable by HTTP Server" #~ msgstr "Directori actual no té permisos d'escriptura pel servidor HTTP" diff --git a/pandora_console/include/languages/cs.mo b/pandora_console/include/languages/cs.mo index b7a7d52461..9dffa69a78 100644 Binary files a/pandora_console/include/languages/cs.mo and b/pandora_console/include/languages/cs.mo differ diff --git a/pandora_console/include/languages/cs.po b/pandora_console/include/languages/cs.po index 3a50b6d4e4..09f1ebd2ab 100644 --- a/pandora_console/include/languages/cs.po +++ b/pandora_console/include/languages/cs.po @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: cs\n" @@ -29593,15 +29593,9 @@ msgstr "Soubory záznamu systému" #~ msgid "No layouts found" #~ msgstr "Nenalezena žádná rozržení" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "Search value" #~ msgstr "Hledaná hodnota" -#~ msgid "Custom data:" -#~ msgstr "Vlastní data:" - #~ msgid "Combined image render" #~ msgstr "Kombinované vykreslení obrázku" diff --git a/pandora_console/include/languages/de.mo b/pandora_console/include/languages/de.mo index fea409bda5..202990ece8 100644 Binary files a/pandora_console/include/languages/de.mo and b/pandora_console/include/languages/de.mo differ diff --git a/pandora_console/include/languages/de.po b/pandora_console/include/languages/de.po index 9e0e36eacf..304a61c83d 100644 --- a/pandora_console/include/languages/de.po +++ b/pandora_console/include/languages/de.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:52+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:28+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -31086,9 +31086,6 @@ msgstr "System-Log" #~ msgid "No layouts found" #~ msgstr "Keine Layouts gefunden" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "MinMax.Al" #~ msgstr "MinMax.Al" @@ -31117,21 +31114,12 @@ msgstr "System-Log" #~ msgid "%d hour" #~ msgstr "%d Stunde" -#~ msgid "Custom data:" -#~ msgstr "Benutzerdefinierte Daten:" - #~ msgid "Download file" #~ msgstr "Datei herunterladen" -#~ msgid "Add module macro" -#~ msgstr "Modulmakro hinzufügen" - #~ msgid "Standard user" #~ msgstr "Standardbenutzer" -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Verzögerung (Sek.) / Module verzögert" - #~ msgid "Map element editor" #~ msgstr "Kartenelemente-Editor" @@ -31306,64 +31294,6 @@ msgstr "System-Log" #~ msgid "Event not validate" #~ msgstr "Ereignis nicht bestätigen" -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Fügen Sie hier ihren Skript-Code für das Bestandsmodul ein." - -#~ msgid "Invalid license." -#~ msgstr "Ungültige Lizenz" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Bitte kontaktieren Sie Artica unter info@artica.es, um eine gültige Lizenz " -#~ "zu erhalten." - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Für Netzwerk-Bestandsmodule leer lassen." - -#~ msgid "Columns" -#~ msgstr "Spalten" - -#~ msgid "Agent and monitor information" -#~ msgstr "Beauftragten- und Überwachungsinformation" - -#~ msgid "No servers" -#~ msgstr "Keine Server" - -#~ msgid "Event information" -#~ msgstr "Ereignis-Information" - -#~ msgid "Without permissions" -#~ msgstr "Ohne Erlaubnisse" - -#~ msgid "disabled" -#~ msgstr "deaktiviert" - -#~ msgid "Events replication is not enabled" -#~ msgstr "Ereignis-Replikation ist nicht eingeschaltet." - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "Ereignis-Replikation ist nicht richtig für diese Meta-Konsole konfiguriert." - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "Der Server scheint richtig für die Replizierung von Ereignissen konfiguriert " -#~ "zu sein. Es sind bis jetzt nur noch keine Ereignisse empfangen worden." - -#~ msgid "Unknown error" -#~ msgstr "Unbekannter Fehler" - -#~ msgid "Sort the agents by " -#~ msgstr "Sortiere die Beauftragten nach " - -#~ msgid "Type:" -#~ msgstr "Typ :" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "Es gibt keine Beauftragten in dieser Gruppierung." - #~ msgid "Checking tagente_estado table" #~ msgstr "Prüfe 'tagente_estado'-Tabelle" @@ -31382,23 +31312,3 @@ msgstr "System-Log" #~ "Pandora FMS (Anzahl der Agenten und der laufenden Module). Wenn Sie das " #~ "unterbinden möchten, löschen Sie das Update Plugin oder die Adresse des " #~ "Remoteservers im Plugin." - -#~ msgid "Custom OID/Data" -#~ msgstr "Benutzerdefinierte OIDs / Daten" - -#~ msgid "Group by OID/IP" -#~ msgstr "Gruppieren nach OID / IP" - -#~ msgid "Contact Ártica ST at info@artica.es to get an auth key." -#~ msgstr "" -#~ "Bitte kontaktieren Sie Ártica ST durch 'info@artica.es', um einen " -#~ "Authentisierungsschlüssel zu erhalten." - -#~ msgid "Modules status" -#~ msgstr "Modulstatus" - -#~ msgid "Agents status" -#~ msgstr "Agentenstatus" - -#~ msgid "Alerts status" -#~ msgstr "Alarmstatus" diff --git a/pandora_console/include/languages/el.mo b/pandora_console/include/languages/el.mo index 2e6b2f0410..9727e7db5c 100644 Binary files a/pandora_console/include/languages/el.mo and b/pandora_console/include/languages/el.mo differ diff --git a/pandora_console/include/languages/el.po b/pandora_console/include/languages/el.po index c7519bdf03..9861a8baf8 100644 --- a/pandora_console/include/languages/el.po +++ b/pandora_console/include/languages/el.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:30+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: el\n" diff --git a/pandora_console/include/languages/en_GB.mo b/pandora_console/include/languages/en_GB.mo index b8da06220c..c576c6a6ed 100644 Binary files a/pandora_console/include/languages/en_GB.mo and b/pandora_console/include/languages/en_GB.mo differ diff --git a/pandora_console/include/languages/en_GB.po b/pandora_console/include/languages/en_GB.po index 3485b7e261..982a8688f9 100644 --- a/pandora_console/include/languages/en_GB.po +++ b/pandora_console/include/languages/en_GB.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: pandora-fms\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-03-24 17:21+0100\n" -"PO-Revision-Date: 2014-10-30 12:03+0000\n" -"Last-Translator: Vanessa \n" +"PO-Revision-Date: 2015-03-27 14:57+0000\n" +"Last-Translator: Andi Chandler \n" "Language-Team: English (United Kingdom) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:30+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -50,7 +50,7 @@ msgstr "QR code of the page" #: ../../general/header.php:134 ../../general/header.php:135 #: ../../include/functions_clippy.php:128 msgid "Pandora FMS assistant" -msgstr "" +msgstr "Pandora FMS assistant" #: ../../general/header.php:160 #: ../../enterprise/meta/general/main_header.php:298 @@ -521,6 +521,9 @@ msgid "" "learn more about Pandora FMS. Monitoring could be overwhelm, but take your " "time to learn how to use the power of Pandora FMS!" msgstr "" +"If this is your first time with Pandora FMS, we propose you a few links to " +"learn more about Pandora FMS. Monitoring could be overwhelm, but take your " +"time to learn how to use the power of Pandora FMS!" #: ../../general/login_help_dialog.php:51 #: ../../general/login_help_dialog.php:53 @@ -591,7 +594,7 @@ msgstr "You don't have access to this page" #: ../../general/noaccess.php:26 msgid "Access to this page is restricted" -msgstr "" +msgstr "Access to this page is restricted" #: ../../general/noaccess.php:31 ../../enterprise/meta/general/noaccess.php:29 #: ../../enterprise/meta/general/metaconsole_no_activated.php:21 @@ -605,6 +608,10 @@ msgid "" "\t\t\tPlease know that all attempts to access this page are recorded in " "security logs of Pandora System Database" msgstr "" +"Access to this page is restricted to authorised users only, please contact " +"system administrator if you need assistance.

\n" +"\t\t\tPlease know that all attempts to access this page are recorded in " +"security logs of Pandora System Database" #: ../../general/shortcut_bar.php:165 msgid "Press here to activate shortcut bar" @@ -747,11 +754,11 @@ msgstr "" #: ../../general/login_page.php:140 ../../mobile/include/user.class.php:295 #: ../../mobile/include/user.class.php:296 msgid "Authenticator code" -msgstr "" +msgstr "Authenticator code" #: ../../general/login_page.php:146 ../../mobile/include/user.class.php:300 msgid "Check code" -msgstr "" +msgstr "Check code" #: ../../general/login_page.php:154 msgid "View details" @@ -3869,25 +3876,25 @@ msgstr "Generated at" #: ../../mobile/include/user.class.php:171 #: ../../mobile/include/user.class.php:178 msgid "Double authentication failed" -msgstr "" +msgstr "Double authentication failed" #: ../../mobile/include/user.class.php:154 msgid "Secret code not found" -msgstr "" +msgstr "Secret code not found" #: ../../mobile/include/user.class.php:155 msgid "Please contact the administrator to reset your double authentication" -msgstr "" +msgstr "Please contact the administrator to reset your double authentication" #: ../../mobile/include/user.class.php:172 ../../index.php:217 #: ../../enterprise/meta/index.php:236 #: ../../include/ajax/double_auth.ajax.php:489 msgid "Invalid code" -msgstr "" +msgstr "Invalid code" #: ../../mobile/include/user.class.php:179 msgid "There was an error checking the code" -msgstr "" +msgstr "There was an error checking the code" #: ../../mobile/include/user.class.php:211 msgid "Login Failed" @@ -4262,7 +4269,7 @@ msgstr "Create" #: ../../godmode/reporting/visual_console_builder.data.php:72 msgid "Create visual console" -msgstr "" +msgstr "Create visual console" #: ../../godmode/reporting/visual_console_builder.data.php:79 #: ../../godmode/setup/os.builder.php:33 @@ -4682,11 +4689,11 @@ msgstr "Could not be created." #: ../../godmode/reporting/visual_console_builder.php:167 msgid "Successfully multiple delete." -msgstr "" +msgstr "Successfully multiple delete." #: ../../godmode/reporting/visual_console_builder.php:168 msgid "Unsuccessfull multiple delete." -msgstr "" +msgstr "Unsuccessfull multiple delete." #: ../../godmode/reporting/visual_console_builder.php:245 msgid "Successfully delete." @@ -4882,7 +4889,7 @@ msgstr "Icon" #: ../../include/functions_visual_map_editor.php:545 #: ../../include/functions_visual_map.php:2035 msgid "Box" -msgstr "" +msgstr "Box" #: ../../godmode/reporting/visual_console_builder.elements.php:190 #: ../../godmode/reporting/visual_console_builder.elements.php:572 @@ -5083,7 +5090,7 @@ msgstr "Filter" #: ../../enterprise/meta/advanced/metasetup.translate_string.php:148 #: ../../enterprise/meta/include/functions_networkmap_meta.php:84 msgid "Show Options" -msgstr "" +msgstr "Show Options" #: ../../godmode/reporting/reporting_builder.list_items.php:270 #: ../../godmode/agentes/module_manager.php:505 @@ -5560,7 +5567,7 @@ msgstr "Free text for search: " #: ../../godmode/reporting/reporting_builder.php:394 msgid "Show Option" -msgstr "" +msgstr "Show Option" #: ../../godmode/reporting/reporting_builder.php:469 #: ../../operation/reporting/custom_reporting.php:38 @@ -5751,7 +5758,7 @@ msgstr "Descending" #: ../../godmode/reporting/reporting_builder.item_editor.php:518 #: ../../enterprise/godmode/reporting/reporting_builder.template_item.php:1020 msgid "Item Editor" -msgstr "" +msgstr "Item Editor" #: ../../godmode/reporting/reporting_builder.item_editor.php:537 msgid "Not valid" @@ -5761,7 +5768,7 @@ msgstr "Not valid" #: ../../enterprise/godmode/reporting/reporting_builder.global.php:188 #: ../../enterprise/godmode/reporting/reporting_builder.template_item.php:1066 msgid "Last value" -msgstr "" +msgstr "Last value" #: ../../godmode/reporting/reporting_builder.item_editor.php:596 #: ../../godmode/reporting/reporting_builder.item_editor.php:2356 @@ -5774,6 +5781,9 @@ msgid "" "Information contained in this kind of reports will be always reporting the " "most recent information" msgstr "" +"Warning: period 0 reports cannot be used to show information back in time. " +"Information contained in this kind of reports will be always reporting the " +"most recent information" #: ../../godmode/reporting/reporting_builder.item_editor.php:610 #: ../../operation/integria_incidents/incident.incident.php:97 @@ -30650,15 +30660,9 @@ msgstr "System logfiles" #~ msgid "From the last" #~ msgstr "From the last" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "S" #~ msgstr "S" -#~ msgid "Custom data:" -#~ msgstr "Custom data:" - #~ msgid "Search text" #~ msgstr "Search text" @@ -30973,76 +30977,3 @@ msgstr "System logfiles" #~ msgid "Total Agents" #~ msgstr "Total Agents" - -#~ msgid "Sort the agents by " -#~ msgstr "Sort the agents by " - -#~ msgid "Type:" -#~ msgstr "Type:" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Delay(sec)/Modules delayed" - -#~ msgid "Add module macro" -#~ msgstr "Add module macro" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Left blank for Network Inventory Modules." - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Please place your script code here for the inventory module." - -#~ msgid "Columns" -#~ msgstr "Columns" - -#~ msgid "Agent and monitor information" -#~ msgstr "Agent and monitor information" - -#~ msgid "Event information" -#~ msgstr "Event information" - -#~ msgid "No servers" -#~ msgstr "No servers" - -#~ msgid "Without permissions" -#~ msgstr "Without permissions" - -#~ msgid "disabled" -#~ msgstr "Disabled" - -#~ msgid "Events replication is not enabled" -#~ msgstr "Event replication is not enabled" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "Event replication is not properly configured for this metaconsole." - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "The server seems to be configured to replicate events, but no events have " -#~ "been received yet." - -#~ msgid "Unknown error" -#~ msgstr "Unknown error" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "There are no agents in this group." - -#~ msgid "Custom OID/Data" -#~ msgstr "Custom OID/Data" - -#~ msgid "Group by OID/IP" -#~ msgstr "Group by OID/IP" - -#~ msgid "Contact Ártica ST at info@artica.es to get an auth key." -#~ msgstr "Contact Ártica ST at info@artica.es to get an auth key." - -#~ msgid "Invalid license." -#~ msgstr "Invalid licence." - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "Please contact Artica at info@artica.es for a valid licence." - -#~ msgid "Report group" -#~ msgstr "Report group" diff --git a/pandora_console/include/languages/es.mo b/pandora_console/include/languages/es.mo index 6f534dd64f..7c6f29f54e 100644 Binary files a/pandora_console/include/languages/es.mo and b/pandora_console/include/languages/es.mo differ diff --git a/pandora_console/include/languages/es.po b/pandora_console/include/languages/es.po index 388555234a..cabe6b05be 100644 --- a/pandora_console/include/languages/es.po +++ b/pandora_console/include/languages/es.po @@ -10,13 +10,13 @@ msgstr "" "Project-Id-Version: index.es\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-03-24 17:21+0100\n" -"PO-Revision-Date: 2015-03-24 16:46+0000\n" -"Last-Translator: Vanessa \n" +"PO-Revision-Date: 2015-03-31 09:50+0000\n" +"Last-Translator: Carlos Moreno \n" "Language-Team: Español; Castellano <>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:52+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:28+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -597,7 +597,7 @@ msgstr "No tiene permiso para acceder a esta página" #: ../../general/noaccess.php:26 msgid "Access to this page is restricted" -msgstr "" +msgstr "El acceso a esta página es restringido" #: ../../general/noaccess.php:31 ../../enterprise/meta/general/noaccess.php:29 #: ../../enterprise/meta/general/metaconsole_no_activated.php:21 @@ -3890,7 +3890,7 @@ msgstr "" #: ../../enterprise/meta/index.php:236 #: ../../include/ajax/double_auth.ajax.php:489 msgid "Invalid code" -msgstr "" +msgstr "Código inválido" #: ../../mobile/include/user.class.php:179 msgid "There was an error checking the code" @@ -4269,7 +4269,7 @@ msgstr "Crear" #: ../../godmode/reporting/visual_console_builder.data.php:72 msgid "Create visual console" -msgstr "" +msgstr "Crear consola visual" #: ../../godmode/reporting/visual_console_builder.data.php:79 #: ../../godmode/setup/os.builder.php:33 @@ -5090,7 +5090,7 @@ msgstr "Filtro" #: ../../enterprise/meta/advanced/metasetup.translate_string.php:148 #: ../../enterprise/meta/include/functions_networkmap_meta.php:84 msgid "Show Options" -msgstr "" +msgstr "Mostrar opciones" #: ../../godmode/reporting/reporting_builder.list_items.php:270 #: ../../godmode/agentes/module_manager.php:505 @@ -5567,7 +5567,7 @@ msgstr "Texto libre de búsqueda " #: ../../godmode/reporting/reporting_builder.php:394 msgid "Show Option" -msgstr "" +msgstr "Mostrar Opciones" #: ../../godmode/reporting/reporting_builder.php:469 #: ../../operation/reporting/custom_reporting.php:38 @@ -5768,7 +5768,7 @@ msgstr "No válida" #: ../../enterprise/godmode/reporting/reporting_builder.global.php:188 #: ../../enterprise/godmode/reporting/reporting_builder.template_item.php:1066 msgid "Last value" -msgstr "" +msgstr "Último valor" #: ../../godmode/reporting/reporting_builder.item_editor.php:596 #: ../../godmode/reporting/reporting_builder.item_editor.php:2356 @@ -6193,7 +6193,7 @@ msgstr "Media" #: ../../godmode/reporting/reporting_builder.item_editor.php:1043 #: ../../enterprise/godmode/reporting/reporting_builder.template_item.php:1313 msgid "Only average" -msgstr "" +msgstr "Solo media" #: ../../godmode/reporting/reporting_builder.item_editor.php:1047 #: ../../godmode/massive/massive_edit_modules.php:440 @@ -6851,11 +6851,11 @@ msgstr "Actualizar perfil" #: ../../godmode/users/configure_profile.php:148 msgid "Update Profile" -msgstr "" +msgstr "Actualizar Perfil" #: ../../godmode/users/configure_profile.php:150 msgid "Create Profile" -msgstr "" +msgstr "Crear Perfil" #: ../../godmode/users/configure_profile.php:159 #: ../../godmode/users/configure_user.php:613 @@ -7153,11 +7153,11 @@ msgstr "El perfil no se puede añadir" #: ../../godmode/users/configure_user.php:422 msgid "Update User" -msgstr "" +msgstr "Actualizar Usuario" #: ../../godmode/users/configure_user.php:425 msgid "Create User" -msgstr "" +msgstr "Crear Usuario" #: ../../godmode/users/configure_user.php:442 #: ../../operation/users/user_edit.php:200 @@ -7320,7 +7320,7 @@ msgstr "El usuario sin permiso de acceso solo puede tener acceso al API" #: ../../godmode/users/configure_user.php:539 msgid "Strict ACL" -msgstr "" +msgstr "ACL Estricto" #: ../../godmode/users/configure_user.php:540 msgid "" @@ -8114,7 +8114,7 @@ msgstr "No se selección ningún agente" #: ../../godmode/massive/massive_delete_tags.php:107 msgid "No tag selected" -msgstr "" +msgstr "Ninguna etiqueta seleccionada" #: ../../godmode/massive/massive_edit_agents.php:95 msgid "No values changed" @@ -8535,7 +8535,7 @@ msgstr "Alertas en standby" #: ../../godmode/massive/massive_add_tags.php:43 msgid "No tags selected" -msgstr "" +msgstr "Ninguna etiqueta seleccionada" #: ../../godmode/massive/massive_delete_profiles.php:61 msgid "Not deleted. You must select an existing user" @@ -9006,7 +9006,7 @@ msgstr "Categoría creada con éxito" #: ../../godmode/category/edit_category.php:139 msgid "Update category" -msgstr "" +msgstr "Actualizar categoría" #: ../../godmode/category/edit_category.php:148 #: ../../godmode/category/category.php:98 @@ -9458,11 +9458,11 @@ msgstr "No se encontraron respuestas" #: ../../godmode/events/event_edit_filter.php:166 msgid "Update Filter" -msgstr "" +msgstr "Actualizar Filtro" #: ../../godmode/events/event_edit_filter.php:169 msgid "Create Filter" -msgstr "" +msgstr "Crear filtro" #: ../../godmode/events/event_edit_filter.php:179 #: ../../operation/events/events_list.php:234 @@ -9590,7 +9590,7 @@ msgstr "Respuestas" #: ../../godmode/events/event_responses.editor.php:63 msgid "Edit event responses" -msgstr "" +msgstr "Editar respuestas de eventos" #: ../../godmode/events/event_responses.editor.php:93 #: ../../enterprise/extensions/ipam/ipam_network.php:125 @@ -10529,7 +10529,7 @@ msgstr "" #: ../../godmode/agentes/module_manager_editor.php:467 #: ../../godmode/agentes/module_manager_editor_common.php:579 msgid "Custom macros" -msgstr "" +msgstr "Macros personalizadas" #: ../../godmode/agentes/module_manager_editor.php:469 msgid "Module relations" @@ -10602,11 +10602,11 @@ msgstr "Los ficheros conf o md5 han podido no ser borrados" #: ../../godmode/agentes/modificar_agente.php:143 msgid "Show Agents" -msgstr "" +msgstr "Mostrar Agentes" #: ../../godmode/agentes/modificar_agente.php:145 msgid "Everyone" -msgstr "" +msgstr "Todos" #: ../../godmode/agentes/modificar_agente.php:146 msgid "Only disabled" @@ -11392,7 +11392,7 @@ msgstr "Solo debe establecerse este valor en los módulos asíncronos" #: ../../godmode/agentes/module_manager_editor_common.php:501 msgid "Tags from policy" -msgstr "" +msgstr "Etiquetas desde política" #: ../../godmode/agentes/module_manager_editor_common.php:514 msgid "The module still stores data but the alerts and events will be stop" @@ -13296,13 +13296,13 @@ msgstr "" #: ../../enterprise/meta/advanced/metasetup.visual.php:167 #: ../../enterprise/meta/include/functions_meta.php:414 msgid "Show only the group name" -msgstr "" +msgstr "Mostrar solo el nombre del grupo" #: ../../godmode/setup/setup_visuals.php:482 #: ../../enterprise/meta/advanced/metasetup.visual.php:169 #: ../../include/functions_config.php:457 msgid "Show the group name instead the group icon." -msgstr "" +msgstr "Mostrar el nombre del grupo en lugar de icono del grupo" #: ../../godmode/setup/setup_visuals.php:492 #: ../../include/functions_config.php:459 @@ -13635,11 +13635,11 @@ msgstr "Etiqueta creada satisfactoriamente" #: ../../godmode/tag/edit_tag.php:159 msgid "Update Tag" -msgstr "" +msgstr "Actualizar Etiqueta" #: ../../godmode/tag/edit_tag.php:162 msgid "Create Tag" -msgstr "" +msgstr "Crear etiqueta" #: ../../godmode/tag/edit_tag.php:183 #: ../../enterprise/meta/monitoring/wizard/wizard.php:108 @@ -13702,7 +13702,7 @@ msgstr "URL update manager" #: ../../godmode/update_manager/update_manager.setup.php:65 msgid "Proxy server:" -msgstr "" +msgstr "Servidor Proxy:" #: ../../godmode/update_manager/update_manager.setup.php:67 msgid "Proxy server" @@ -13710,7 +13710,7 @@ msgstr "Servidor proxy" #: ../../godmode/update_manager/update_manager.setup.php:69 msgid "Proxy port:" -msgstr "" +msgstr "Puerto Proxy:" #: ../../godmode/update_manager/update_manager.setup.php:71 msgid "Proxy port" @@ -13726,7 +13726,7 @@ msgstr "Usuario del proxy" #: ../../godmode/update_manager/update_manager.setup.php:77 msgid "Proxy password:" -msgstr "" +msgstr "Contraseña del Proxy:" #: ../../godmode/update_manager/update_manager.setup.php:79 msgid "Proxy password" @@ -13942,11 +13942,11 @@ msgstr "Actualizar grupo" #: ../../godmode/groups/configure_group.php:105 msgid "Update Group" -msgstr "" +msgstr "Actualizar Grupo" #: ../../godmode/groups/configure_group.php:107 msgid "Create Group" -msgstr "" +msgstr "Crear Grupo" #: ../../godmode/groups/configure_group.php:140 msgid "You have not access to the parent." @@ -14405,7 +14405,7 @@ msgstr "Configurar acción de alerta" #: ../../godmode/alerts/configure_alert_action.php:97 msgid "Update Action" -msgstr "" +msgstr "Actualizar Acción" #: ../../godmode/alerts/configure_alert_action.php:100 #: ../../godmode/alerts/alert_list.builder.php:126 @@ -15624,7 +15624,7 @@ msgstr "Volver a modo normal" #: ../../operation/reporting/reporting_viewer.php:140 msgid "View Report" -msgstr "" +msgstr "Ver Informe" #: ../../operation/reporting/reporting_viewer.php:170 #: ../../enterprise/include/functions_reporting_pdf.php:3988 @@ -15956,7 +15956,7 @@ msgstr "Error al actualizar la información del usuario" #: ../../operation/users/user_edit.php:191 msgid "Edit my User" -msgstr "" +msgstr "Editar mi Usuario" #: ../../operation/users/user_edit.php:233 msgid "New Password" @@ -16026,7 +16026,7 @@ msgstr "Detalle de alertas" #: ../../operation/users/user_edit.php:357 msgid "Show information" -msgstr "" +msgstr "Mostrar información" #: ../../operation/users/user_edit.php:388 msgid "" @@ -16855,7 +16855,7 @@ msgstr "Estado del módulo" #: ../../operation/tree.php:168 msgid "Search module" -msgstr "" +msgstr "Buscar módulo" #: ../../operation/tree.php:193 msgid "Tree search" @@ -16876,23 +16876,23 @@ msgstr "Alertas disparadas" #: ../../operation/tree.php:289 msgid "Critical agents" -msgstr "" +msgstr "Agentes Críticos" #: ../../operation/tree.php:294 msgid "Warning agents" -msgstr "" +msgstr "Agentes en advertencia" #: ../../operation/tree.php:299 msgid "Unknown agents" -msgstr "" +msgstr "Agentes en desconocido" #: ../../operation/tree.php:304 msgid "Not init agents" -msgstr "" +msgstr "Agentes no inicializados" #: ../../operation/tree.php:309 msgid "Normal agents" -msgstr "" +msgstr "Agentes en normal" #: ../../operation/agentes/gis_view.php:93 msgid "Last position in " @@ -17099,7 +17099,7 @@ msgstr "" #: ../../operation/agentes/networkmap_list.php:370 msgid "None selected" -msgstr "" +msgstr "Nada seleccionado" #: ../../operation/agentes/custom_fields.php:28 #: ../../operation/agentes/agent_fields.php:28 @@ -17274,7 +17274,7 @@ msgstr "Agente desconocido" #: ../../operation/agentes/group_view.php:90 #: ../../include/functions_reporting.php:8163 msgid "Agents not init" -msgstr "" +msgstr "Agentes no inicializados" #: ../../operation/agentes/group_view.php:92 msgid "Not Init" @@ -17564,7 +17564,7 @@ msgstr "Lista completa de monitores" #: ../../operation/agentes/estado_monitores.php:150 msgid "List of modules" -msgstr "" +msgstr "Lista de módulos" #: ../../operation/agentes/estado_monitores.php:422 msgid "Status:" @@ -17664,7 +17664,7 @@ msgstr "Estado del monitor" #: ../../operation/agentes/status_monitor.php:542 msgid "Advanced Options" -msgstr "" +msgstr "Opciones Avanzadas" #: ../../operation/agentes/status_monitor.php:984 #: ../../operation/search_modules.php:52 @@ -18445,11 +18445,11 @@ msgstr "La operación no puedo completarse" #: ../../enterprise/godmode/reporting/reporting_builder.template_advanced.php:107 msgid "Advance Options" -msgstr "" +msgstr "Opciones Avanzadas" #: ../../enterprise/godmode/reporting/reporting_builder.advanced.php:69 msgid "Advance Reporting" -msgstr "" +msgstr "Opciones Avanzadas" #: ../../enterprise/godmode/reporting/reporting_builder.template_editor.php:101 #: ../../enterprise/godmode/reporting/reporting_builder.template.php:79 @@ -18611,7 +18611,7 @@ msgstr "No se pudo aplicar" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:221 msgid "Create template report wizard" -msgstr "" +msgstr "Creación de informe con Asistente de Plantillas" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:261 #: ../../enterprise/godmode/reporting/graph_template_wizard.php:142 @@ -18636,7 +18636,7 @@ msgstr "Grupo de destino" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:310 msgid "Filter by" -msgstr "" +msgstr "Filtrar por" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:366 #: ../../enterprise/godmode/reporting/graph_template_wizard.php:162 @@ -18648,7 +18648,7 @@ msgstr "Filtrar agente" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:373 msgid "Filter tag" -msgstr "" +msgstr "Filtro etiqueta" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:385 #: ../../enterprise/godmode/reporting/graph_template_wizard.php:173 @@ -18908,11 +18908,11 @@ msgstr "" #: ../../enterprise/godmode/massive/massive_edit_tags_policy.php:102 msgid "Tags unused" -msgstr "" +msgstr "Etiquetas sin usar" #: ../../enterprise/godmode/massive/massive_edit_tags_policy.php:118 msgid "Tags used" -msgstr "" +msgstr "Etiquetas usadas" #: ../../enterprise/godmode/massive/massive_delete_alerts_snmp.php:165 #: ../../enterprise/godmode/massive/massive_modify_alerts_snmp.php:216 @@ -21428,7 +21428,7 @@ msgstr "Pendiente de generar" #: ../../enterprise/operation/agentes/networkmap_enterprise.php:249 msgid "There are no maps defined." -msgstr "" +msgstr "No hay mapas definidos." #: ../../enterprise/operation/agentes/networkmap_enterprise.php:259 #: ../../enterprise/meta/include/functions_networkmap_meta.php:180 @@ -21532,11 +21532,12 @@ msgstr "(Adoptados)(Desvinculados)" #: ../../enterprise/load_enterprise.php:306 msgid "Invalid licence." -msgstr "" +msgstr "Licencia inválida" #: ../../enterprise/load_enterprise.php:307 msgid "Please contact Artica at info@artica.es for a valid licence." msgstr "" +"Por favor contacte con Ártica en info@artica.es para una licencia válida." #: ../../enterprise/load_enterprise.php:309 msgid "Or disable Pandora FMS enterprise" @@ -21601,11 +21602,11 @@ msgstr "" #: ../../enterprise/load_enterprise.php:666 msgid "E-mail:" -msgstr "" +msgstr "E-mail:" #: ../../enterprise/load_enterprise.php:670 msgid "Contact:" -msgstr "" +msgstr "Contacto:" #: ../../enterprise/load_enterprise.php:674 msgid "Auth Key:" @@ -21618,7 +21619,7 @@ msgstr "" #: ../../enterprise/load_enterprise.php:690 msgid "ERROR:" -msgstr "" +msgstr "ERROR:" #: ../../enterprise/load_enterprise.php:690 msgid "When connecting to Artica server." @@ -21736,11 +21737,11 @@ msgstr "Vista de grupo" #: ../../enterprise/meta/monitoring/group_view.php:74 msgid "Summary of the status groups" -msgstr "" +msgstr "Resumen de los grupos por estatus" #: ../../enterprise/meta/monitoring/group_view.php:94 msgid "Group or Tag" -msgstr "" +msgstr "Grupo o Etiqueta" #: ../../enterprise/meta/monitoring/wizard/wizard.create_agent.php:40 #: ../../enterprise/meta/monitoring/wizard/wizard.module.web.php:84 @@ -21897,15 +21898,15 @@ msgstr "Vista táctica" #: ../../enterprise/meta/monitoring/tactical.php:215 msgid "Report of state" -msgstr "" +msgstr "Informe de estado" #: ../../enterprise/meta/monitoring/tactical.php:340 msgid "Report of events (last hour)" -msgstr "" +msgstr "Informe de eventos (última hora)" #: ../../enterprise/meta/monitoring/tactical.php:356 msgid "Info of state in events (last hour)" -msgstr "" +msgstr "Información del estado en los eventos (última hora)" #: ../../enterprise/meta/monitoring/tactical.php:371 msgid "More events" @@ -21973,7 +21974,7 @@ msgstr "No se puede mover" #: ../../enterprise/meta/advanced/agents_setup.move_agents.php:124 msgid "Move Agents" -msgstr "" +msgstr "Mover Agentes" #: ../../enterprise/meta/advanced/agents_setup.move_agents.php:137 msgid "Source Server" @@ -22181,7 +22182,7 @@ msgstr "Sólo bases de datos" #: ../../enterprise/meta/advanced/policymanager.apply.php:188 msgid "Apply Policies" -msgstr "" +msgstr "Aplicar Políticas" #: ../../enterprise/meta/advanced/synchronizing.user.php:215 #, php-format @@ -22225,7 +22226,7 @@ msgstr "" #: ../../enterprise/meta/advanced/synchronizing.user.php:498 msgid "Synchronizing Users" -msgstr "" +msgstr "Sincronizando Usuarios" #: ../../enterprise/meta/advanced/synchronizing.user.php:553 msgid "Profile mode" @@ -22334,7 +22335,7 @@ msgstr "Creadas/actualizadas %s/%s plantillas" #: ../../enterprise/meta/advanced/synchronizing.alert.php:324 msgid "Synchronizing Alerts" -msgstr "" +msgstr "Sincronizando Alertas" #: ../../enterprise/meta/advanced/synchronizing.group.php:103 #, php-format @@ -22384,7 +22385,7 @@ msgstr "NInguna actualización o creación de grupo" #: ../../enterprise/meta/advanced/synchronizing.group.php:227 msgid "Synchronizing Groups" -msgstr "" +msgstr "Sincronizando Grupos" #: ../../enterprise/meta/advanced/synchronizing.tag.php:124 #, php-format @@ -22398,7 +22399,7 @@ msgstr "Creados/actualizados %s/%s tags" #: ../../enterprise/meta/advanced/synchronizing.tag.php:138 msgid "Synchronizing Tags" -msgstr "" +msgstr "Sincronizando Etiquetas" #: ../../enterprise/meta/advanced/metasetup.php:49 msgid "Consoles Setup" @@ -22930,7 +22931,7 @@ msgstr "Gracias por usar Pandora FMS" #: ../../enterprise/dashboard/widgets/tree_view.php:24 msgid "Show the tree view" -msgstr "" +msgstr "Mostrar la vista de árbol" #: ../../enterprise/dashboard/widgets/tree_view.php:27 #: ../../enterprise/dashboard/widgets/url.php:26 @@ -25155,11 +25156,11 @@ msgstr "Siguiente IP disponible" #: ../../enterprise/extensions/check_acls.php:16 msgid "ACL users for this agent" -msgstr "" +msgstr "Usuarios ACL para este agente" #: ../../enterprise/extensions/check_acls.php:100 msgid "There are no defined users" -msgstr "" +msgstr "No hay usuarios definidos" #: ../../enterprise/extensions/check_acls.php:104 msgid "ACL module tags for the modules in this agent" @@ -25175,7 +25176,7 @@ msgstr "" #: ../../enterprise/extensions/check_acls.php:201 msgid "Check ACL" -msgstr "" +msgstr "Chequear ACL" #: ../../enterprise/extensions/backup/main.php:53 msgid "Pandora database backup utility" @@ -25401,7 +25402,7 @@ msgstr "No existe un agente con este nombre" #: ../../include/functions_api.php:886 msgid "Does not exist module with this name." -msgstr "" +msgstr "No existe módulos con este nombre." #: ../../include/functions_api.php:1231 msgid "Correct Delete" @@ -28374,20 +28375,20 @@ msgstr "Estado actual" #: ../../include/functions_reporting.php:8137 msgid "Agents critical" -msgstr "" +msgstr "Agentes críticos" #: ../../include/functions_reporting.php:8142 msgid "Agents warning" -msgstr "" +msgstr "Agentes warning" #: ../../include/functions_reporting.php:8150 msgid "Agents ok" -msgstr "" +msgstr "Agentes ok" #: ../../include/functions_reporting.php:8176 #: ../../include/functions_reporting.php:8185 msgid "Agents by status" -msgstr "" +msgstr "Agentes por estado" #: ../../include/functions_reporting.php:8231 #: ../../include/functions_reporting.php:8239 @@ -28397,29 +28398,29 @@ msgstr "Resumen de nodos" #: ../../include/functions_reporting.php:8263 #: ../../include/functions_reporting.php:8286 msgid "Warning events" -msgstr "" +msgstr "Eventos en advertencia" #: ../../include/functions_reporting.php:8269 #: ../../include/functions_reporting.php:8290 msgid "OK events" -msgstr "" +msgstr "Eventos OK" #: ../../include/functions_reporting.php:8275 #: ../../include/functions_reporting.php:8294 msgid "Unknown events" -msgstr "" +msgstr "Eventos desconocidos" #: ../../include/functions_reporting.php:8343 msgid "Last activity in Pandora FMS console" -msgstr "" +msgstr "Última actividad en la consola de Pandora FMS" #: ../../include/functions_reporting.php:8463 msgid "Events info (1hr.)" -msgstr "" +msgstr "Información de Eventos (1hr.)" #: ../../include/functions_reporting.php:8476 msgid "Events info (1hr)" -msgstr "" +msgstr "Información de Eventos (1hr.)" #: ../../include/graphs/functions_flot.php:302 msgid "Cancel zoom" @@ -28509,7 +28510,7 @@ msgstr "" #: ../../include/ajax/double_auth.ajax.php:203 #: ../../include/ajax/double_auth.ajax.php:294 msgid "Continue" -msgstr "" +msgstr "Continuar" #: ../../include/ajax/double_auth.ajax.php:219 msgid "Are you installed the app yet?" @@ -28856,7 +28857,7 @@ msgstr "" #: ../../include/class/Tree.class.php:1281 msgid "NO DATA" -msgstr "" +msgstr "SIN DATOS" #: ../../include/functions_visual_map.php:823 msgid "Last value: " @@ -28931,7 +28932,7 @@ msgstr "Ir a \"editar agentes\"" #: ../../include/functions_treeview.php:433 msgid "Agent data" -msgstr "" +msgstr "Datos de agentes" #: ../../include/functions_treeview.php:506 msgid "Advanced information" @@ -29832,7 +29833,7 @@ msgstr "Vista de Agentes/Alertas" #: ../../extensions/db_status.php:43 ../../extensions/db_status.php:365 msgid "DB Status" -msgstr "" +msgstr "Estado BD" #: ../../extensions/db_status.php:56 msgid "" @@ -29846,7 +29847,7 @@ msgstr "" #: ../../extensions/db_status.php:63 msgid "DB settings" -msgstr "" +msgstr "Configuración BD" #: ../../extensions/db_status.php:67 msgid "DB User with privileges" @@ -31229,15 +31230,9 @@ msgstr "Logs sistema" #~ msgid "hour" #~ msgstr "hora" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "Manage SNMP console" #~ msgstr "Consola SNMP" -#~ msgid "Custom data:" -#~ msgstr "Datos personalizados:" - #~ msgid "" #~ "Pandora FMS Sanity tool is used to remove bad database structure data, " #~ "created modules with missing status, or modules that cannot be initialized " @@ -31255,91 +31250,3 @@ msgstr "Logs sistema" #~ "datos esta también implementada en Pandora_db.pl de modo que debería " #~ "ejecutarla cada día o cada semana. Esta herramienta no COMPACTA O REDUCE su " #~ "base de datos, solo elimina las estructuras corruptas." - -#~ msgid "Sort the agents by " -#~ msgstr "Listar los agentes por " - -#~ msgid "Type:" -#~ msgstr "Tipo:" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "No hay agentes en esta agrupación" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Demora (Sec)/Modulos retrasados" - -#~ msgid "Add module macro" -#~ msgstr "Añadir macro de módulo" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Módulos de inventario de red en blanco" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Introduzca aquí el código de script para el módulo de inventario" - -#~ msgid "Invalid license." -#~ msgstr "Licencia no válida" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Por favor, póngase en contacto con info@artica.es para obtener una licencia " -#~ "válida." - -#~ msgid "Columns" -#~ msgstr "Columnas" - -#~ msgid "Agent and monitor information" -#~ msgstr "Información sobre el agente y el monitor" - -#~ msgid "Event information" -#~ msgstr "Información del evento" - -#~ msgid "No servers" -#~ msgstr "No hay servidores" - -#~ msgid "Without permissions" -#~ msgstr "Sin permisos" - -#~ msgid "disabled" -#~ msgstr "desactivado" - -#~ msgid "Events replication is not enabled" -#~ msgstr "La replicación de eventos no está habilitada" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "La replicación eventos no está configurado correctamente para esta " -#~ "metaconsola" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "El servidor parece estar configurado para replicar eventos, pero no se han " -#~ "recibido eventos todavía" - -#~ msgid "Unknown error" -#~ msgstr "Error desconocido" - -#~ msgid "Custom OID/Data" -#~ msgstr "OID/Data Personalizado" - -#~ msgid "Contact Ártica ST at info@artica.es to get an auth key." -#~ msgstr "" -#~ "Contactar con Artica ST en info@artica.es para obtener una clave de " -#~ "autenticación" - -#~ msgid "Group by OID/IP" -#~ msgstr "Agrupar por OID/IP" - -#~ msgid "Report group" -#~ msgstr "Informe de grupo" - -#~ msgid "Modules status" -#~ msgstr "Estado de los módulos" - -#~ msgid "Agents status" -#~ msgstr "Estado de los agentes" - -#~ msgid "Alerts status" -#~ msgstr "Estado de las alertas" diff --git a/pandora_console/include/languages/fr.mo b/pandora_console/include/languages/fr.mo index 65e4e8c0b2..64bac1d8d0 100644 Binary files a/pandora_console/include/languages/fr.mo and b/pandora_console/include/languages/fr.mo differ diff --git a/pandora_console/include/languages/fr.po b/pandora_console/include/languages/fr.po index 0dbaf4b5fa..6e64a22673 100644 --- a/pandora_console/include/languages/fr.po +++ b/pandora_console/include/languages/fr.po @@ -9,13 +9,13 @@ msgstr "" "Project-Id-Version: pandora-fr\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-03-24 17:21+0100\n" -"PO-Revision-Date: 2014-10-01 22:06+0000\n" -"Last-Translator: katalina rodriguez \n" +"PO-Revision-Date: 2015-03-29 11:01+0000\n" +"Last-Translator: Jean Marc \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:52+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:28+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: fr\n" @@ -61,12 +61,12 @@ msgstr "Pret" #: ../../general/header.php:107 ../../general/header.php:108 msgid "QR Code of the page" -msgstr "" +msgstr "Code QR de la page" #: ../../general/header.php:112 #: ../../operation/visual_console/public_console.php:104 msgid "QR code of the page" -msgstr "" +msgstr "Code QR de la page" #: ../../general/header.php:134 ../../general/header.php:135 #: ../../include/functions_clippy.php:128 @@ -614,7 +614,7 @@ msgstr "Vous n'avez pas l'autorisation pour accéder à cette page" #: ../../general/noaccess.php:26 msgid "Access to this page is restricted" -msgstr "" +msgstr "L'accès à cette page est limité" #: ../../general/noaccess.php:31 ../../enterprise/meta/general/noaccess.php:29 #: ../../enterprise/meta/general/metaconsole_no_activated.php:21 @@ -3877,7 +3877,7 @@ msgstr "" #: ../../mobile/include/user.class.php:154 msgid "Secret code not found" -msgstr "" +msgstr "Code secret introuvable" #: ../../mobile/include/user.class.php:155 msgid "Please contact the administrator to reset your double authentication" @@ -3887,7 +3887,7 @@ msgstr "" #: ../../enterprise/meta/index.php:236 #: ../../include/ajax/double_auth.ajax.php:489 msgid "Invalid code" -msgstr "" +msgstr "Code non valide" #: ../../mobile/include/user.class.php:179 msgid "There was an error checking the code" @@ -5088,7 +5088,7 @@ msgstr "Filtre" #: ../../enterprise/meta/advanced/metasetup.translate_string.php:148 #: ../../enterprise/meta/include/functions_networkmap_meta.php:84 msgid "Show Options" -msgstr "" +msgstr "Afficher les options" #: ../../godmode/reporting/reporting_builder.list_items.php:270 #: ../../godmode/agentes/module_manager.php:505 @@ -5504,7 +5504,7 @@ msgstr "" #: ../../godmode/reporting/reporting_builder.php:78 msgid "An error has ocurred" -msgstr "" +msgstr "Une erreur s'est produite" #: ../../godmode/reporting/reporting_builder.php:279 #: ../../godmode/reporting/reporting_builder.php:1568 @@ -5569,7 +5569,7 @@ msgstr "Texte libre pour la recherche: " #: ../../godmode/reporting/reporting_builder.php:394 msgid "Show Option" -msgstr "" +msgstr "Afficher les options" #: ../../godmode/reporting/reporting_builder.php:469 #: ../../operation/reporting/custom_reporting.php:38 @@ -5770,7 +5770,7 @@ msgstr "Non valide" #: ../../enterprise/godmode/reporting/reporting_builder.global.php:188 #: ../../enterprise/godmode/reporting/reporting_builder.template_item.php:1066 msgid "Last value" -msgstr "" +msgstr "Dernière valeur" #: ../../godmode/reporting/reporting_builder.item_editor.php:596 #: ../../godmode/reporting/reporting_builder.item_editor.php:2356 @@ -6857,7 +6857,7 @@ msgstr "" #: ../../godmode/users/configure_profile.php:150 msgid "Create Profile" -msgstr "" +msgstr "Créer le profil" #: ../../godmode/users/configure_profile.php:159 #: ../../godmode/users/configure_user.php:613 @@ -7160,7 +7160,7 @@ msgstr "" #: ../../godmode/users/configure_user.php:425 msgid "Create User" -msgstr "" +msgstr "Créer l'utilisateur" #: ../../godmode/users/configure_user.php:442 #: ../../operation/users/user_edit.php:200 @@ -7944,14 +7944,14 @@ msgstr "Tout changement d'état" #: ../../godmode/agentes/module_manager_editor_common.php:277 #: ../../enterprise/godmode/modules/configure_local_component.php:253 msgid "To normal" -msgstr "" +msgstr "À la normale" #: ../../godmode/massive/massive_edit_modules.php:476 #: ../../godmode/modules/manage_network_components_form_common.php:140 #: ../../godmode/agentes/module_manager_editor_common.php:279 #: ../../enterprise/godmode/modules/configure_local_component.php:255 msgid "To warning" -msgstr "" +msgstr "Pour avertissement" #: ../../godmode/massive/massive_edit_modules.php:477 #: ../../godmode/modules/manage_network_components_form_common.php:142 @@ -9465,7 +9465,7 @@ msgstr "" #: ../../godmode/events/event_edit_filter.php:169 msgid "Create Filter" -msgstr "" +msgstr "Créer le filtre" #: ../../godmode/events/event_edit_filter.php:179 #: ../../operation/events/events_list.php:234 @@ -9903,7 +9903,7 @@ msgstr "Exécution" #: ../../godmode/agentes/planned_downtime.editor.php:334 #: ../../godmode/agentes/planned_downtime.list.php:252 msgid "Once" -msgstr "" +msgstr "Une fois" #: ../../godmode/agentes/planned_downtime.editor.php:335 #: ../../godmode/agentes/planned_downtime.list.php:252 @@ -10614,7 +10614,7 @@ msgstr "" #: ../../godmode/agentes/modificar_agente.php:145 msgid "Everyone" -msgstr "" +msgstr "Tout le monde" #: ../../godmode/agentes/modificar_agente.php:146 msgid "Only disabled" @@ -12749,11 +12749,11 @@ msgstr "" #: ../../godmode/setup/setup_general.php:247 msgid "On demand" -msgstr "" +msgstr "À la demande" #: ../../godmode/setup/setup_general.php:248 msgid "Expert" -msgstr "" +msgstr "Expert" #: ../../godmode/setup/setup_general.php:250 #: ../../include/functions_config.php:186 @@ -13329,7 +13329,7 @@ msgstr "" #: ../../godmode/setup/news.php:173 ../../godmode/setup/news.php:224 msgid "Expiration" -msgstr "" +msgstr "Expiration" #: ../../godmode/setup/news.php:215 msgid "There are no defined news" @@ -13343,7 +13343,7 @@ msgstr "Auteur" #: ../../godmode/setup/news.php:242 msgid "Modal" -msgstr "" +msgstr "Modale" #: ../../godmode/setup/news.php:245 msgid "Board" @@ -13429,7 +13429,7 @@ msgstr "Pour obtenir votre Pandora FMS Enterprise License :" #: ../../godmode/setup/license.php:90 #, php-format msgid "Go to %s" -msgstr "" +msgstr "Aller à %s" #: ../../godmode/setup/license.php:93 msgid "Enter the auth key and the following request key:" @@ -13924,11 +13924,11 @@ msgstr "Actualiser le groupe" #: ../../godmode/groups/configure_group.php:105 msgid "Update Group" -msgstr "" +msgstr "Mettre à jour le groupe" #: ../../godmode/groups/configure_group.php:107 msgid "Create Group" -msgstr "" +msgstr "Créer le groupe" #: ../../godmode/groups/configure_group.php:140 msgid "You have not access to the parent." @@ -14384,7 +14384,7 @@ msgstr "Configurer l'action d'alerte" #: ../../godmode/alerts/configure_alert_action.php:97 msgid "Update Action" -msgstr "" +msgstr "Mettre à jour l'action" #: ../../godmode/alerts/configure_alert_action.php:100 #: ../../godmode/alerts/alert_list.builder.php:126 @@ -15599,7 +15599,7 @@ msgstr "Retourner au mode normal" #: ../../operation/reporting/reporting_viewer.php:140 msgid "View Report" -msgstr "" +msgstr "Afficher le rapport" #: ../../operation/reporting/reporting_viewer.php:170 #: ../../enterprise/include/functions_reporting_pdf.php:3988 @@ -16000,7 +16000,7 @@ msgstr "Detail des alertes" #: ../../operation/users/user_edit.php:357 msgid "Show information" -msgstr "" +msgstr "Afficher les informations" #: ../../operation/users/user_edit.php:388 msgid "" @@ -16038,7 +16038,7 @@ msgstr "" #: ../../operation/users/user_edit.php:674 msgid "Deactivate" -msgstr "" +msgstr "Désactiver" #: ../../operation/users/user_edit.php:706 msgid "The double autentication was deactivated successfully" @@ -17367,7 +17367,7 @@ msgstr "Vue de la topologie" #: ../../operation/agentes/networkmap.php:219 #: ../../operation/agentes/networkmap.php:289 msgid "Dynamic view" -msgstr "" +msgstr "Vue dynamique" #: ../../operation/agentes/networkmap.php:224 #: ../../operation/agentes/networkmap.php:292 @@ -17642,7 +17642,7 @@ msgstr "Status du moniteur" #: ../../operation/agentes/status_monitor.php:542 msgid "Advanced Options" -msgstr "" +msgstr "Options avancées" #: ../../operation/agentes/status_monitor.php:984 #: ../../operation/search_modules.php:52 @@ -18602,7 +18602,7 @@ msgstr "" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:310 msgid "Filter by" -msgstr "" +msgstr "Filtrer par" #: ../../enterprise/godmode/reporting/reporting_builder.template_wizard.php:366 #: ../../enterprise/godmode/reporting/graph_template_wizard.php:162 @@ -18666,11 +18666,11 @@ msgstr "" #: ../../enterprise/godmode/reporting/visual_console_builder.wizard_services.php:114 msgid "Available" -msgstr "" +msgstr "Disponibles" #: ../../enterprise/godmode/reporting/visual_console_builder.wizard_services.php:116 msgid "Selected" -msgstr "" +msgstr "Sélectionnés" #: ../../enterprise/godmode/reporting/visual_console_builder.wizard_services.php:123 msgid "Push the selected services into the list" @@ -21212,7 +21212,7 @@ msgstr "Exporter au format PDF" #: ../../enterprise/operation/reporting/custom_reporting.php:47 #: ../../enterprise/operation/reporting/custom_reporting.php:70 msgid "Send by email" -msgstr "" +msgstr "Envoyer par courriel" #: ../../enterprise/operation/reporting/custom_reporting.php:55 msgid "ID Report" @@ -21390,7 +21390,7 @@ msgstr "Avec succès supprimé" #: ../../enterprise/operation/agentes/networkmap_enterprise.php:176 #: ../../include/functions_reporting.php:8222 msgid "Nodes" -msgstr "" +msgstr "Nœuds" #: ../../enterprise/operation/agentes/networkmap_enterprise.php:212 msgid "Pending to generate" @@ -21571,11 +21571,11 @@ msgstr "" #: ../../enterprise/load_enterprise.php:666 msgid "E-mail:" -msgstr "" +msgstr "Courriel :" #: ../../enterprise/load_enterprise.php:670 msgid "Contact:" -msgstr "" +msgstr "Contact :" #: ../../enterprise/load_enterprise.php:674 msgid "Auth Key:" @@ -21588,7 +21588,7 @@ msgstr "" #: ../../enterprise/load_enterprise.php:690 msgid "ERROR:" -msgstr "" +msgstr "ERREUR :" #: ../../enterprise/load_enterprise.php:690 msgid "When connecting to Artica server." @@ -23268,7 +23268,7 @@ msgstr "" #: ../../include/functions_update_manager.php:333 #: ../../include/functions_update_manager.php:336 msgid "Server not found." -msgstr "" +msgstr "Serveur introuvable." #: ../../enterprise/include/functions_update_manager.php:146 #: ../../enterprise/include/functions_update_manager.php:248 @@ -23283,17 +23283,17 @@ msgstr "" #: ../../enterprise/include/functions_update_manager.php:165 msgid "Version number:" -msgstr "" +msgstr "Numéro de version :" #: ../../enterprise/include/functions_update_manager.php:166 #: ../../enterprise/include/functions_networkmap_enterprise.php:596 msgid "Show details" -msgstr "" +msgstr "Afficher les détails" #: ../../enterprise/include/functions_update_manager.php:173 #: ../../include/functions_update_manager.php:355 msgid "Update to the last version" -msgstr "" +msgstr "Mettre à jour vers la dernière version" #: ../../enterprise/include/functions_update_manager.php:188 #: ../../include/functions_update_manager.php:358 @@ -23323,7 +23323,7 @@ msgstr "" #: ../../enterprise/include/functions_update_manager.php:350 #: ../../include/ajax/update_manager.ajax.php:447 msgid "progress" -msgstr "" +msgstr "progression" #: ../../enterprise/include/functions_update_manager.php:428 #: ../../enterprise/include/functions_update_manager.php:432 @@ -23350,19 +23350,19 @@ msgstr "" #: ../../include/functions_update_manager.php:175 #: ../../include/ajax/update_manager.ajax.php:205 msgid "An error ocurred while reading a file." -msgstr "" +msgstr "Une erreur s'est produite lors de la lecture d'un fichier." #: ../../enterprise/include/functions_update_manager.php:481 #: ../../include/functions_update_manager.php:182 #: ../../include/ajax/update_manager.ajax.php:211 msgid "The package does not exist" -msgstr "" +msgstr "Le paquet n'existe pas" #: ../../enterprise/include/functions_update_manager.php:487 #: ../../include/functions_update_manager.php:188 #: ../../include/ajax/update_manager.ajax.php:477 msgid "The package is installed." -msgstr "" +msgstr "Le paquet est installé" #: ../../enterprise/include/functions_groups.php:47 msgid "Metaconsole" @@ -23417,12 +23417,12 @@ msgstr "" #: ../../enterprise/include/functions_license.php:35 #: ../../enterprise/include/functions_license.php:52 msgid "Client" -msgstr "" +msgstr "Client" #: ../../enterprise/include/functions_license.php:37 #: ../../enterprise/include/functions_license.php:52 msgid "Trial" -msgstr "" +msgstr "Essai" #: ../../enterprise/include/functions_policies.php:456 #: ../../enterprise/include/functions_policies.php:471 @@ -23684,7 +23684,7 @@ msgstr "Hors des limites" #: ../../enterprise/include/functions_reporting.php:1062 msgid "Day" -msgstr "" +msgstr "Jour" #: ../../enterprise/include/functions_reporting.php:1063 #: ../../enterprise/include/functions_reporting.php:1520 @@ -23720,7 +23720,7 @@ msgstr "" #: ../../include/functions_reporting.php:3906 #: ../../include/functions_reporting.php:4016 msgid "Dates" -msgstr "" +msgstr "Dates" #: ../../enterprise/include/functions_reporting.php:1386 #: ../../enterprise/include/functions_reporting.php:2057 @@ -24212,11 +24212,11 @@ msgstr "" #: ../../enterprise/include/functions_networkmap_enterprise.php:602 #: ../../enterprise/include/functions_networkmap_enterprise.php:1630 msgid "Add node" -msgstr "" +msgstr "Ajouter un nœud" #: ../../enterprise/include/functions_networkmap_enterprise.php:603 msgid "Set center" -msgstr "" +msgstr "Définir le centre" #: ../../enterprise/include/functions_networkmap_enterprise.php:605 msgid "Refresh Holding area" @@ -24225,7 +24225,7 @@ msgstr "" #: ../../enterprise/include/functions_networkmap_enterprise.php:1061 #: ../../enterprise/include/functions_networkmap_enterprise.php:1541 msgid "Circle" -msgstr "Cercl" +msgstr "Cercle" #: ../../enterprise/include/functions_networkmap_enterprise.php:1062 #: ../../enterprise/include/functions_networkmap_enterprise.php:1542 @@ -24312,7 +24312,7 @@ msgstr "" #: ../../enterprise/include/functions_networkmap_enterprise.php:1624 #: ../../enterprise/include/functions_networkmap_enterprise.php:1625 msgid "Relations" -msgstr "" +msgstr "Relations" #: ../../enterprise/include/functions_networkmap_enterprise.php:1649 #: ../../enterprise/include/functions_networkmap_enterprise.php:1654 @@ -24788,11 +24788,11 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_network.php:521 #: ../../enterprise/extensions/ipam/ipam_excel.php:105 msgid "Hostname" -msgstr "" +msgstr "Nom d'hôte" #: ../../enterprise/extensions/ipam/ipam_ajax.php:167 msgid "Operating system" -msgstr "" +msgstr "Système d'exploitation" #: ../../enterprise/extensions/ipam/ipam_ajax.php:177 msgid "This agent has other IPs" @@ -24828,7 +24828,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_ajax.php:252 msgid "Ping" -msgstr "" +msgstr "Ping" #: ../../enterprise/extensions/ipam/ipam_ajax.php:269 #: ../../include/ajax/events.php:157 @@ -24847,7 +24847,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_massive.php:68 msgid "Addresses" -msgstr "" +msgstr "Adresses" #: ../../enterprise/extensions/ipam/ipam_network.php:89 msgid "No addresses found on this network" @@ -24855,7 +24855,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_network.php:106 msgid "Subnet" -msgstr "" +msgstr "Sous-réseau" #: ../../enterprise/extensions/ipam/ipam_network.php:204 msgid "Total IPs" @@ -24890,16 +24890,16 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_network.php:259 msgid "A -> Z" -msgstr "" +msgstr "A -> Z" #: ../../enterprise/extensions/ipam/ipam_network.php:260 msgid "Z -> A" -msgstr "" +msgstr "Z -> A" #: ../../enterprise/extensions/ipam/ipam_network.php:261 #: ../../enterprise/extensions/ipam/ipam_network.php:262 msgid "Last check" -msgstr "" +msgstr "Dernière vérification" #: ../../enterprise/extensions/ipam/ipam_network.php:261 msgid "Newer -> Older" @@ -24923,7 +24923,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_network.php:275 msgid "Icons style" -msgstr "" +msgstr "Style des icônes" #: ../../enterprise/extensions/ipam/ipam_network.php:282 msgid "Show not alive hosts" @@ -24947,7 +24947,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_network.php:457 msgid "Edit address" -msgstr "" +msgstr "Modifier l'adresse" #: ../../enterprise/extensions/ipam/ipam_network.php:462 msgid "Disabled address" @@ -24983,7 +24983,7 @@ msgstr "" #: ../../enterprise/extensions/ipam/ipam_list.php:45 msgid "No networks found" -msgstr "" +msgstr "Aucun réseau trouvé" #: ../../enterprise/extensions/ipam/ipam_list.php:64 msgid "IPs" @@ -31035,9 +31035,6 @@ msgstr "Fichiers d'archive du sytème" #~ msgid "Alerts disabled" #~ msgstr "Alertes désactivées" -#~ msgid "OID:" -#~ msgstr "OID" - #~ msgid "Remote modules rate" #~ msgstr "Rythme des modules á distance" @@ -31102,9 +31099,6 @@ msgstr "Fichiers d'archive du sytème" #~ msgid "Search text" #~ msgstr "cherche texte" -#~ msgid "Custom data:" -#~ msgstr "Données du client" - #~ msgid "" #~ "Red cell when the module group and agent have at least one module in " #~ "critical state and the others in any state." @@ -31126,67 +31120,3 @@ msgstr "Fichiers d'archive du sytème" #~ msgid "Modules warning" #~ msgstr "Alerte modules" - -#~ msgid "Sort the agents by " -#~ msgstr "Trier les agents de " - -#~ msgid "Type:" -#~ msgstr "Type :" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Retard (s) / Modules retardés" - -#~ msgid "Add module macro" -#~ msgstr "Ajouter module de macro" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Gauche en blanc pour les modules d'inventaire de réseau" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Mettez ici votre code de script pour le module d'inventaire" - -#~ msgid "Invalid license." -#~ msgstr "Licence invalide" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "S'il vous plaît contacter Artica à info@artica.es pour une licence valide." - -#~ msgid "Columns" -#~ msgstr "Colonnes" - -#~ msgid "Agent and monitor information" -#~ msgstr "Agent de surveillance et d'information" - -#~ msgid "No servers" -#~ msgstr "Pas de serveurs" - -#~ msgid "Event information" -#~ msgstr "les informations de l'événement" - -#~ msgid "Without permissions" -#~ msgstr "Sans autorisation" - -#~ msgid "disabled" -#~ msgstr "désactivé" - -#~ msgid "Events replication is not enabled" -#~ msgstr "la réplication des événements n'est pas activée" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "la réplication des événements n'est pas correctement configuré pour cette " -#~ "metaconsole" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "Le serveur semble être configuré pour reproduire des événements, mais aucun " -#~ "événement n'a encore été reçue" - -#~ msgid "Unknown error" -#~ msgstr "Erreur inconnue" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "Il n'y a pas d'agents dans ce agrupation" diff --git a/pandora_console/include/languages/it.mo b/pandora_console/include/languages/it.mo index 680fdf175f..27e2ef1df1 100644 Binary files a/pandora_console/include/languages/it.mo and b/pandora_console/include/languages/it.mo differ diff --git a/pandora_console/include/languages/it.po b/pandora_console/include/languages/it.po index e2792c9a06..f5051991fd 100644 --- a/pandora_console/include/languages/it.po +++ b/pandora_console/include/languages/it.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "X-Poedit-Country: ITALY\n" "Language: \n" diff --git a/pandora_console/include/languages/ja.mo b/pandora_console/include/languages/ja.mo index 6357163a26..ee1db2cfa3 100644 Binary files a/pandora_console/include/languages/ja.mo and b/pandora_console/include/languages/ja.mo differ diff --git a/pandora_console/include/languages/ja.po b/pandora_console/include/languages/ja.po index f5af7b3a8f..90c67e168f 100644 --- a/pandora_console/include/languages/ja.po +++ b/pandora_console/include/languages/ja.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:30+0000\n" "X-Generator: Launchpad (build 17413)\n" #: ../../general/links_menu.php:20 ../../godmode/menu.php:216 @@ -30271,15 +30271,9 @@ msgstr "システムログファイル" #~ msgid "Oper" #~ msgstr "演算子" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "S" #~ msgstr "状態" -#~ msgid "Custom data:" -#~ msgstr "カスタムデータ:" - #~ msgid "int" #~ msgstr "間隔" @@ -30288,89 +30282,3 @@ msgstr "システムログファイル" #~ msgid "Search text" #~ msgstr "検索文字列" - -#~ msgid "Add module macro" -#~ msgstr "モジュールマクロの追加" - -#~ msgid "Sort the agents by " -#~ msgstr "エージェントの並び替え: " - -#~ msgid "Type:" -#~ msgstr "タイプ:" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "このグループのエージェントはありません。" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "最大遅延(秒)/遅延モジュール" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "ネットワークインベントリモジュールでは空にしてください" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "インベントリモジュールのスクリプトコードをここに入力してください" - -#~ msgid "Invalid license." -#~ msgstr "不正なライセンスです。" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "正しいライセンスについては、Artica (info@artica.es) までお問い合わせください。" - -#~ msgid "Agent and monitor information" -#~ msgstr "エージェントおよびモニタ情報" - -#~ msgid "Columns" -#~ msgstr "カラム" - -#~ msgid "Event information" -#~ msgstr "イベント情報" - -#~ msgid "No servers" -#~ msgstr "サーバがありません" - -#~ msgid "Without permissions" -#~ msgstr "パーミッションなし" - -#~ msgid "disabled" -#~ msgstr "無効化" - -#~ msgid "Events replication is not enabled" -#~ msgstr "イベント複製が有効化されていません" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "サーバはイベントを複製する設定がされていますが、まだイベントを受信していません" - -#~ msgid "Unknown error" -#~ msgstr "不明なエラー" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "このメタコンソールでは、イベント複製が設定されていません" - -#~ msgid "Custom OID/Data" -#~ msgstr "カスタム OID/データ" - -#~ msgid "Group by OID/IP" -#~ msgstr "OID/IP ごとのグループ" - -#~ msgid "Contact Ártica ST at info@artica.es to get an auth key." -#~ msgstr "authkey の入手は、Artica ST info@artica.es までお問い合わせください。" - -#~ msgid "Report group" -#~ msgstr "レポートグループ" - -#~ msgid "Alerts status" -#~ msgstr "アラートの状態" - -#~ msgid "Modules status" -#~ msgstr "モジュールの状態" - -#~ msgid "Agents status" -#~ msgstr "エージェントの状態" - -#~ msgid "Trap OID" -#~ msgstr "トラップOID" - -#~ msgid "Traps received by OID" -#~ msgstr "OID ごとの受信トラップ" diff --git a/pandora_console/include/languages/nl.mo b/pandora_console/include/languages/nl.mo index 038941cb7d..e5391d92c1 100644 Binary files a/pandora_console/include/languages/nl.mo and b/pandora_console/include/languages/nl.mo differ diff --git a/pandora_console/include/languages/nl.po b/pandora_console/include/languages/nl.po index 9287af3c2d..2702374d35 100644 --- a/pandora_console/include/languages/nl.po +++ b/pandora_console/include/languages/nl.po @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:30+0000\n" "X-Generator: Launchpad (build 17413)\n" "uProject-Id-Version: pandora-nl\n" "Taal: nl\n" @@ -29935,21 +29935,9 @@ msgstr "Systeem log bestanden" #~ msgid "Agent down" #~ msgstr "Agent beneden" -#~ msgid "Sort the agents by " -#~ msgstr "Sorteer de agenten door " - #~ msgid "Search value" #~ msgstr "Zoek waarde" -#~ msgid "Custom data:" -#~ msgstr "Aangepaste gegevens:" - -#~ msgid "OID:" -#~ msgstr "OID:" - -#~ msgid "Type:" -#~ msgstr "Type:" - #~ msgid "Events generated -by module-" #~ msgstr "Evenementen gegenereerd -door module-" @@ -30015,9 +30003,6 @@ msgstr "Systeem log bestanden" #~ msgid "Agent keepalive monitor" #~ msgstr "Agent houdt monitor levend" -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "Er zijn geen agenten in deze agrupatie" - #~ msgid "SLA period (seconds)" #~ msgstr "SLA-periode (seconden)" @@ -30776,57 +30761,3 @@ msgstr "Systeem log bestanden" #~ msgid "Configuration detail" #~ msgstr "Configuration detail" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Max. Vertraging(sec)/Modules vertraagd" - -#~ msgid "Add module macro" -#~ msgstr "Toevoegen module macro" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Leeg gelaten voor Netwerk Voorraad Modules" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Plaats hier uw script code voor de voorraad module" - -#~ msgid "Invalid license." -#~ msgstr "Ongeldige licentie." - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Neem a.u.b. contact op met Artica op info@artica.es voor een geldige " -#~ "licentie." - -#~ msgid "Columns" -#~ msgstr "Kolommen" - -#~ msgid "Agent and monitor information" -#~ msgstr "Agent en monitor informatie" - -#~ msgid "No servers" -#~ msgstr "Geen servers" - -#~ msgid "Event information" -#~ msgstr "Gebeurtenis informatie" - -#~ msgid "Without permissions" -#~ msgstr "Zonder machtigingen" - -#~ msgid "disabled" -#~ msgstr "uitgeschakeld" - -#~ msgid "Events replication is not enabled" -#~ msgstr "Gebeurtenis replicatie is niet ingeschakeld" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "Gebeurtenis replicatie is niet juist ingesteld voor deze metaconsole" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "De server lijkt te zijn geconfigureerd om gebeurtenissen te repliceren, maar " -#~ "er zijn nog geen gebeurtenissen ontvangen" - -#~ msgid "Unknown error" -#~ msgstr "Onbekende fout" diff --git a/pandora_console/include/languages/pl.mo b/pandora_console/include/languages/pl.mo index 39e08b94a0..fdd8ec90e7 100644 Binary files a/pandora_console/include/languages/pl.mo and b/pandora_console/include/languages/pl.mo differ diff --git a/pandora_console/include/languages/pl.po b/pandora_console/include/languages/pl.po index 284be57fd4..ae28444750 100644 --- a/pandora_console/include/languages/pl.po +++ b/pandora_console/include/languages/pl.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: pl\n" diff --git a/pandora_console/include/languages/pt.mo b/pandora_console/include/languages/pt.mo index a146b79122..6afa0d69c5 100644 Binary files a/pandora_console/include/languages/pt.mo and b/pandora_console/include/languages/pt.mo differ diff --git a/pandora_console/include/languages/pt.po b/pandora_console/include/languages/pt.po index 67d1356ae9..d5faa7be6e 100644 --- a/pandora_console/include/languages/pt.po +++ b/pandora_console/include/languages/pt.po @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -29560,9 +29560,6 @@ msgstr "Registo de actividade do sistema" #~ msgid "Search value" #~ msgstr "Valor de procura" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "Read message" #~ msgstr "Ler mensagem" @@ -30425,9 +30422,6 @@ msgstr "Registo de actividade do sistema" #~ msgid "Profile successfully deleted" #~ msgstr "Perfil apagado com sucesso" -#~ msgid "Custom data:" -#~ msgstr "Dados personalizados" - #~ msgid "Custom graph name" #~ msgstr "Nome de grapho personalizado" diff --git a/pandora_console/include/languages/pt_BR.mo b/pandora_console/include/languages/pt_BR.mo index 5907ce2f7f..b5fc252604 100644 Binary files a/pandora_console/include/languages/pt_BR.mo and b/pandora_console/include/languages/pt_BR.mo differ diff --git a/pandora_console/include/languages/pt_BR.po b/pandora_console/include/languages/pt_BR.po index 6ae0579c3f..e714e2ac93 100644 --- a/pandora_console/include/languages/pt_BR.po +++ b/pandora_console/include/languages/pt_BR.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -30920,76 +30920,5 @@ msgstr "Logfile do Sistema" #~ msgid "Create incident from event" #~ msgstr "Criar incidente para o evento" -#~ msgid "Sort the agents by " -#~ msgstr "Classificar os agentes por " - -#~ msgid "Type:" -#~ msgstr "Tipo:" - -#~ msgid "Custom data:" -#~ msgstr "Dados personalizados:" - -#~ msgid "OID:" -#~ msgstr "OID:" - -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Atraso Max.(seg)/Módulos atrasados" - -#~ msgid "Add module macro" -#~ msgstr "Adicionar macro do módulo" - #~ msgid "E/D" #~ msgstr "E/D" - -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Deixado em branco para Módulos de Inventário de Rede" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Coloque aqui código do seu script para o módulo de inventário" - -#~ msgid "Invalid license." -#~ msgstr "Licença inválida." - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Por favor, entre em contato com Artica através do info@artica.es para obter " -#~ "uma licença válida." - -#~ msgid "Columns" -#~ msgstr "Colunas" - -#~ msgid "Agent and monitor information" -#~ msgstr "Informação de monitor e agente" - -#~ msgid "Event information" -#~ msgstr "Informação sobre o evento" - -#~ msgid "No servers" -#~ msgstr "Sem servidores" - -#~ msgid "Without permissions" -#~ msgstr "Sem permissões" - -#~ msgid "disabled" -#~ msgstr "desabilitado" - -#~ msgid "Events replication is not enabled" -#~ msgstr "A replicação de eventos não está habilitada" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "O servidor parece ter sido configurado para replicar eventos, mas nenhum " -#~ "evento foi recebido ainda" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "A replicação de eventos não está configurada apropriadamente para este " -#~ "metaconsole" - -#~ msgid "Unknown error" -#~ msgstr "Erro desconhecido" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "Não há agentes neste agrupamento" diff --git a/pandora_console/include/languages/ru.mo b/pandora_console/include/languages/ru.mo index f1c995323e..7213f9b3de 100644 Binary files a/pandora_console/include/languages/ru.mo and b/pandora_console/include/languages/ru.mo differ diff --git a/pandora_console/include/languages/ru.po b/pandora_console/include/languages/ru.po index 5c04e8d613..e5fd2fd76e 100644 --- a/pandora_console/include/languages/ru.po +++ b/pandora_console/include/languages/ru.po @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: ru\n" @@ -30103,12 +30103,6 @@ msgstr "Система журнал фйлов" #~ msgid "Monitors not init" #~ msgstr "Мониторы не включены" -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "Максимальная Задержка (сек) / Модули отложены" - -#~ msgid "Add module macro" -#~ msgstr "Добавить модуль макроса" - #~ msgid "Checking tagente_estado table" #~ msgstr "Проверка таблицы tagente_estado" @@ -30193,66 +30187,6 @@ msgstr "Система журнал фйлов" #~ msgid "Field 3" #~ msgstr "Поле 3" -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "Слева в заготовке для модулей инвентаризации Network" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "Вставьте здесь ваш скрипт-код для инвентаризации модуля" - -#~ msgid "Invalid license." -#~ msgstr "Лицензия недействительна" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "" -#~ "Пожалуйста, свяжитесь с Artica на info@artica.es для действительной лицензии." - -#~ msgid "Columns" -#~ msgstr "Столбцы" - -#~ msgid "Agent and monitor information" -#~ msgstr "Агент и Монитор информации" - -#~ msgid "Event information" -#~ msgstr "Информация о событии" - -#~ msgid "No servers" -#~ msgstr "Нет серверов" - -#~ msgid "Without permissions" -#~ msgstr "Без разрешения" - -#~ msgid "disabled" -#~ msgstr "отключено" - -#~ msgid "Events replication is not enabled" -#~ msgstr "Последние событие репликации" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "" -#~ "События репликация не настроены должным образом для этой мета консоли" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "" -#~ "Сервер, кажется, сконфигурирован для репликации событий, но никаких событий " -#~ "не было еще получено" - -#~ msgid "Unknown error" -#~ msgstr "Неизвестная ошибка" - -#~ msgid "Sort the agents by " -#~ msgstr "Сорторовать агенты по " - -#~ msgid "Type:" -#~ msgstr "Тип:" - -#~ msgid "Custom data:" -#~ msgstr "Данные клиента:" - -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "Search value" #~ msgstr "Поисковое значение" @@ -30265,6 +30199,3 @@ msgstr "Система журнал фйлов" #~ "FMS (число работующих агентов и модулей). Чтобы отключить ее, просто удалите " #~ "расширение или удалите дистанционный адрес сервера из настроек плагина " #~ "Манеджера Обновлений." - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "Нет агентов в этом agrupation" diff --git a/pandora_console/include/languages/sk.mo b/pandora_console/include/languages/sk.mo index c19c712ae0..a8d96ac880 100644 Binary files a/pandora_console/include/languages/sk.mo and b/pandora_console/include/languages/sk.mo differ diff --git a/pandora_console/include/languages/sk.po b/pandora_console/include/languages/sk.po index fabad23b15..e7032b3f47 100644 --- a/pandora_console/include/languages/sk.po +++ b/pandora_console/include/languages/sk.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:30+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: sk\n" @@ -30160,9 +30160,6 @@ msgstr "Systémové log-súbory" #~ msgid "Search value" #~ msgstr "Hľadať hodnotu" -#~ msgid "OID:" -#~ msgstr "OID:" - #~ msgid "Update server host" #~ msgstr "Aktualizovať serverový host" diff --git a/pandora_console/include/languages/tr.mo b/pandora_console/include/languages/tr.mo index 9f7bec6b21..64b1361d20 100644 Binary files a/pandora_console/include/languages/tr.mo and b/pandora_console/include/languages/tr.mo differ diff --git a/pandora_console/include/languages/tr.po b/pandora_console/include/languages/tr.po index 8f52588347..7727953c24 100644 --- a/pandora_console/include/languages/tr.po +++ b/pandora_console/include/languages/tr.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:54+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: tr\n" diff --git a/pandora_console/include/languages/zh_CN.mo b/pandora_console/include/languages/zh_CN.mo index 31ee2befce..7160da82a1 100644 Binary files a/pandora_console/include/languages/zh_CN.mo and b/pandora_console/include/languages/zh_CN.mo differ diff --git a/pandora_console/include/languages/zh_CN.po b/pandora_console/include/languages/zh_CN.po index d2e538680d..9a0c077941 100644 --- a/pandora_console/include/languages/zh_CN.po +++ b/pandora_console/include/languages/zh_CN.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2015-03-24 16:53+0000\n" +"X-Launchpad-Export-Date: 2015-04-01 07:29+0000\n" "X-Generator: Launchpad (build 17413)\n" "Language: \n" @@ -29848,12 +29848,6 @@ msgstr "系统日志文件" #~ msgid "Monitors unknown" #~ msgstr "未知的" -#~ msgid "Max. Delay(sec)/Modules delayed" -#~ msgstr "最大延迟时间(秒)/最多延迟模块数量" - -#~ msgid "Add module macro" -#~ msgstr "添加模块宏" - #~ msgid "Sanitize my database now" #~ msgstr "正在清理我的数据库" @@ -29887,65 +29881,9 @@ msgstr "系统日志文件" #~ msgid "Field 3" #~ msgstr "域3" -#~ msgid "Left in blank for Network Inventory Modules" -#~ msgstr "为网络索引模块留白" - -#~ msgid "Put here your script code for the inventory module" -#~ msgstr "在此为索引模块填入脚本代码" - -#~ msgid "Invalid license." -#~ msgstr "无效许可" - -#~ msgid "Please contact Artica at info@artica.es for a valid license." -#~ msgstr "请通过info@artica.es联系Artica索要有效许可。" - -#~ msgid "Columns" -#~ msgstr "栏" - -#~ msgid "Agent and monitor information" -#~ msgstr "代理和监控器信息" - -#~ msgid "Event information" -#~ msgstr "事件信息" - -#~ msgid "No servers" -#~ msgstr "无服务器" - -#~ msgid "Without permissions" -#~ msgstr "未经许可" - -#~ msgid "disabled" -#~ msgstr "已禁用" - -#~ msgid "Events replication is not enabled" -#~ msgstr "未启用事件复制" - -#~ msgid "Events replication is not properly configured for this metaconsole" -#~ msgstr "此meta控制台未适当配置事件复制" - -#~ msgid "" -#~ "The server seems to be configurated to replicate events, but no events has " -#~ "been received yet" -#~ msgstr "服务器似乎已配置以复制事件,但仍未收到任何事件" - -#~ msgid "Unknown error" -#~ msgstr "未知错误" - -#~ msgid "Sort the agents by " -#~ msgstr "代理排序按 " - -#~ msgid "Type:" -#~ msgstr "类型:" - -#~ msgid "OID:" -#~ msgstr "对象标识:" - #~ msgid "Search value" #~ msgstr "搜索值" -#~ msgid "Custom data:" -#~ msgstr "自定义数据:" - #~ msgid "There's a new update for Pandora FMS" #~ msgstr "Pandora FMS 有新版本" @@ -29957,15 +29895,3 @@ msgstr "系统日志文件" #~ msgid "E/D" #~ msgstr "E/D" - -#~ msgid "There aren't agents in this agrupation" -#~ msgstr "该中断无代理存在" - -#~ msgid "Custom OID/Data" -#~ msgstr "自定义OID/数据" - -#~ msgid "Group by OID/IP" -#~ msgstr "OID/IP分组" - -#~ msgid "Contact Ártica ST at info@artica.es to get an auth key." -#~ msgstr "联系Ártica ST at info@artica.es获得授权密钥。" diff --git a/pandora_console/install.php b/pandora_console/install.php index eb7026078e..c0920e36b5 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -63,7 +63,7 @@
checkACL($this->acl)) { + if ($id === false) + $this->getFilters(); + else + $this->id = $id; + + $store_group = db_get_value('store_group', + 'tnetwork_map', 'id_networkmap', $this->id); + + if ($store_group !== false + && $system->checkACL($this->acl, $store_group)) $this->correct_acl = true; - } - else { - $this->correct_acl = false; - } } public function ajax($parameter2 = false) { diff --git a/pandora_console/mobile/operation/networkmaps.php b/pandora_console/mobile/operation/networkmaps.php index b1d96e5ae1..33b72c39e1 100755 --- a/pandora_console/mobile/operation/networkmaps.php +++ b/pandora_console/mobile/operation/networkmaps.php @@ -168,10 +168,10 @@ class Networkmaps { $where['order'] = 'type'; if ($this->group != '0') { - $where['id_group'] = $this->group; + $where['store_group'] = $this->group; } else { - $where['id_group'] = array_keys(users_get_groups()); + $where['store_group'] = array_keys(users_get_groups()); } if ($this->type != '0') @@ -184,13 +184,17 @@ class Networkmaps { } $list = array(); foreach ($network_maps as $networkmap) { + // ACL + if (! $system->checkACL("AR", $networkmap['store_group'])) + continue; + // If enterprise not loaded then skip this code if ($networkmap['type'] == 'policies' and (!defined('PANDORA_ENTERPRISE'))) continue; $row = array(); $row[__('Name')] = '' . io_safe_output($networkmap['name']) . ''; $row[__('Type')] = $networkmap['type']; - $row[__('Group')] = ui_print_group_icon($networkmap["id_group"], true, "groups_small", "" , false); + $row[__('Group')] = ui_print_group_icon($networkmap["store_group"], true, "groups_small", "" , false); $list[] = $row; } diff --git a/pandora_console/mobile/operation/visualmap.php b/pandora_console/mobile/operation/visualmap.php index def96a3c81..e7c2617fd7 100644 --- a/pandora_console/mobile/operation/visualmap.php +++ b/pandora_console/mobile/operation/visualmap.php @@ -16,12 +16,16 @@ require_once ('../include/functions_visual_map.php'); class Visualmap { private $correct_acl = false; - private $acl = "RR"; + private $acl = "VR"; private $id = 0; - private $visual_map = null; + private $visualmap = null; function __construct() { + + } + + private function checkVisualmapACL($groupID = 0) { $system = System::getInstance(); if ($system->checkACL($this->acl)) { @@ -39,17 +43,21 @@ class Visualmap { } public function show() { + $this->getFilters(); + + $this->visualmap = db_get_row('tlayout', + 'id', $this->id); + + if (empty($this->visualmap)) { + $this->show_fail_acl(); + } + + $this->checkVisualmapACL($this->visualmap['id_group']); if (!$this->correct_acl) { $this->show_fail_acl(); } - else { - $this->getFilters(); - - $this->visualmap = db_get_row('tlayout', - 'id', $this->id); - - $this->show_visualmap(); - } + + $this->show_visualmap(); } private function show_fail_acl() { diff --git a/pandora_console/mobile/operation/visualmaps.php b/pandora_console/mobile/operation/visualmaps.php index e08e6f34dd..f2f608a5d0 100644 --- a/pandora_console/mobile/operation/visualmaps.php +++ b/pandora_console/mobile/operation/visualmaps.php @@ -18,7 +18,7 @@ ob_get_clean(); //Fixed unused javascript code. class Visualmaps { private $correct_acl = false; - private $acl = "RR"; + private $acl = "VR"; private $default = true; private $default_filters = array(); diff --git a/pandora_console/operation/agentes/networkmap.dinamic.php b/pandora_console/operation/agentes/networkmap.dinamic.php index 2f8d2849de..edc5823803 100755 --- a/pandora_console/operation/agentes/networkmap.dinamic.php +++ b/pandora_console/operation/agentes/networkmap.dinamic.php @@ -19,7 +19,34 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "AR")) { +// Networkmap id required +if (!isset($id_networkmap)) { + db_pandora_audit("ACL Violation", + "Trying to access node graph builder"); + require ("general/noaccess.php"); + exit; +} + +// Get the group for ACL +if (!isset($store_group)) { + $store_group = db_get_value("store_group", "tnetwork_map", "id_networkmap", $id_networkmap); + if ($store_group === false) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } +} + +// ACL for the networkmap permission +if (!isset($networkmap_read)) + $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); +if (!isset($networkmap_write)) + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); +if (!isset($networkmap_manage)) + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + +if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) { db_pandora_audit("ACL Violation", "Trying to access node graph builder"); include ("general/noaccess.php"); diff --git a/pandora_console/operation/agentes/networkmap.groups.php b/pandora_console/operation/agentes/networkmap.groups.php index bb85d2ecb4..b6004367c8 100644 --- a/pandora_console/operation/agentes/networkmap.groups.php +++ b/pandora_console/operation/agentes/networkmap.groups.php @@ -19,7 +19,34 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "AR")) { +// Networkmap id required +if (!isset($id_networkmap)) { + db_pandora_audit("ACL Violation", + "Trying to access node graph builder"); + require ("general/noaccess.php"); + exit; +} + +// Get the group for ACL +if (!isset($store_group)) { + $store_group = db_get_value("store_group", "tnetwork_map", "id_networkmap", $id_networkmap); + if ($store_group === false) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } +} + +// ACL for the networkmap permission +if (!isset($networkmap_read)) + $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); +if (!isset($networkmap_write)) + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); +if (!isset($networkmap_manage)) + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + +if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) { db_pandora_audit("ACL Violation", "Trying to access node graph builder"); include ("general/noaccess.php"); diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index a7975bc167..3cc7512e0c 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -19,13 +19,6 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "AR")) { - db_pandora_audit("ACL Violation", - "Trying to access node graph builder"); - include ("general/noaccess.php"); - exit; -} - require_once ('include/functions_networkmap.php'); require_once ('include/functions_clippy.php'); @@ -42,16 +35,54 @@ $update_networkmap = get_parameter ('update_networkmap', 0); $recenter_networkmap = get_parameter ('recenter_networkmap', 0); $hidden_options = get_parameter ('hidden_options', 1); -if ($delete_networkmap) { - $result = networkmap_delete_networkmap($id_networkmap); - $message = ui_print_result_message ($result, - __('Network map deleted successfully'), - __('Could not delete network map'), '', true); +// ACL checks // +// New networkmap. +if ($add_networkmap) { + // ACL for the new network map + // $networkmap_read = check_acl ($config['id_user'], 0, "MR"); + $networkmap_write = check_acl ($config['id_user'], 0, "MW"); + $networkmap_manage = check_acl ($config['id_user'], 0, "MM"); + + if (!$networkmap_write && !$networkmap_manage) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } +} +// The networkmap exist. Should have id and store goup. +else { + // Networkmap id required + if (empty($id_networkmap)) { + db_pandora_audit("ACL Violation", + "Trying to access node graph builder"); + require ("general/noaccess.php"); + exit; + } + // Get the group for ACL + $store_group = db_get_value("store_group", "tnetwork_map", "id_networkmap", $id_networkmap); + if ($store_group === false) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } - $id_networkmap = 0; + // ACL for the general permission + $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + + if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) { + db_pandora_audit("ACL Violation", + "Trying to access node graph builder"); + include ("general/noaccess.php"); + exit; + } } +// Create if ($add_networkmap) { // Load variables $layout = 'radial'; @@ -66,104 +97,160 @@ if ($add_networkmap) { $font_size = 12; $text_filter = ''; $dont_show_subgroups = false; + $store_group = 0; $group = 0; $module_group = 0; $center = 0; $name = $activeTab; + $show_snmp_modules = 0; + $l2_network = 0; $check = db_get_value('name', 'tnetwork_map', 'name', $name); $sql = db_get_value_filter('COUNT(name)', 'tnetwork_map', array('name' => "%$name")); - if ($check) { - $id_networkmap = networkmap_create_networkmap("($sql) ".$name, - $activeTab, $layout, $nooverlap, $simple, $regen, - $font_size, $group, $module_group, $depth, $modwithalerts, - $hidepolicymodules, $zoom, $ranksep, $center, $text_filter, - $dont_show_subgroups); - - $message = ui_print_result_message ($id_networkmap, - __('Network map created successfully'), - __('Could not create network map'), '', true); - } - else { - $id_networkmap = networkmap_create_networkmap($name, $activeTab, - $layout, $nooverlap, $simple, $regen, $font_size, $group, - $module_group, $depth, $modwithalerts, $hidepolicymodules, - $zoom, $ranksep, $center, $text_filter, $dont_show_subgroups); - - $message = ui_print_result_message ($id_networkmap, - __('Network map created successfully'), - __('Could not create network map'), '', true); + $values = array( + 'name' => ($check ? "($sql) $name" : $name), + 'type' => $activeTab, + 'layout' => $layout, + 'nooverlap' => $nooverlap, + 'simple' => $simple, + 'regenerate' => $regen, + 'font_size' => $font_size, + 'store_group' => $store_group, + 'id_group' => $group, + 'id_module_group' => $module_group, + 'depth' => $depth, + 'only_modules_with_alerts' => $modwithalerts, + 'hide_policy_modules' => $hidepolicymodules, + 'zoom' => $zoom, + 'distance_nodes' => $ranksep, + 'text_filter' => $text_filter, + 'dont_show_subgroups' => $dont_show_subgroups, + 'center' => $center, + 'show_snmp_modules' => $show_snmp_modules, + 'l2_network' => $l2_network + ); + $id_networkmap = networkmap_create_networkmap($values); + + $message = ui_print_result_message ($id_networkmap, + __('Network map created successfully'), + __('Could not create network map'), '', true); + + // Exit when the networkmap was not created + if ($id_networkmap === false) { + return; } } - -if ($save_networkmap || $update_networkmap) { - // Load variables - $layout = (string) get_parameter ('layout', 'radial'); - $depth = (string) get_parameter ('depth', 'all'); - $nooverlap = (bool) get_parameter ('nooverlap', 0); - $modwithalerts = (int) get_parameter ('modwithalerts', 0); - $hidepolicymodules = (int) get_parameter ('hidepolicymodules', 0); - $zoom = (float) get_parameter ('zoom', 1); - $ranksep = (float) get_parameter ('ranksep', 2.5); - $simple = (int) get_parameter ('simple', 0); - $regen = (int) get_parameter ('regen', 0); - $show_snmp_modules = (int) get_parameter ('show_snmp_modules', 0); - $font_size = (int) get_parameter ('font_size', 12); - $text_filter = get_parameter ('text_filter', ''); - $dont_show_subgroups = (bool)get_parameter ('dont_show_subgroups', 0); - $group = (int) get_parameter ('group', 0); - $module_group = (int) get_parameter ('module_group', 0); - $center = (int) get_parameter ('center', 0); - $name = (string) get_parameter ('name', $activeTab); - $l2_network = (int) get_parameter ('l2_network', 0); +// Action in existing networkmap +else if ($delete_networkmap || $save_networkmap || $update_networkmap) { - if ($save_networkmap) { - $result = networkmap_update_networkmap($id_networkmap, - array('name' => $name, - 'type' => $activeTab, - 'layout' => $layout, - 'nooverlap' => $nooverlap, - 'simple' => $simple, - 'regenerate' => $regen, - 'font_size' => $font_size, - 'id_group' => $group, - 'id_module_group' => $module_group, - 'depth' => $depth, - 'only_modules_with_alerts' => $modwithalerts, - 'hide_policy_modules' => $hidepolicymodules, - 'zoom' => $zoom, - 'distance_nodes' => $ranksep, - 'text_filter' => $text_filter, - 'dont_show_subgroups' => $dont_show_subgroups, - 'center' => $center, - 'show_snmp_modules' => (int)$show_snmp_modules, - 'l2_network' => (int)$l2_network)); - + // ACL for the network map + // if (!isset($networkmap_read)) + // $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); + if (!isset($networkmap_write)) + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); + if (!isset($networkmap_manage)) + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + + if (!$networkmap_write && !$networkmap_manage) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } + + // Actions // + + // Not used now. The new behaviour is delete the map posting to the list. + if ($delete_networkmap) { + $result = networkmap_delete_networkmap($id_networkmap); $message = ui_print_result_message ($result, - __('Network map saved successfully'), - __('Could not save network map'), '', true); + __('Network map deleted successfully'), + __('Could not delete network map'), '', true); + + return; } -} - -$networkmaps = networkmap_get_networkmaps('','', true, $strict_user); - -$nomaps = false; -if ($networkmaps === false) { - $nomaps = true; -} - -// If the map id is not defined, we set the first id of the active type -if (!$nomaps && $id_networkmap == 0) { - $networkmaps_of_type = networkmap_get_networkmaps('', $activeTab); - if ($networkmaps_of_type !== false) { - $id_networkmap = reset(array_keys($networkmaps_of_type)); - } -} - -if (!$update_networkmap && !$save_networkmap && $id_networkmap != 0) { - $networkmap_data = networkmap_get_networkmap($id_networkmap); + // Save updates the db data, update only updates the view. + if ($save_networkmap || $update_networkmap) { + // Load variables + $layout = (string) get_parameter ('layout', 'radial'); + $depth = (string) get_parameter ('depth', 'all'); + $nooverlap = (bool) get_parameter ('nooverlap', 0); + $modwithalerts = (int) get_parameter ('modwithalerts', 0); + $hidepolicymodules = (int) get_parameter ('hidepolicymodules', 0); + $zoom = (float) get_parameter ('zoom', 1); + $ranksep = (float) get_parameter ('ranksep', 2.5); + $simple = (int) get_parameter ('simple', 0); + $regen = (int) get_parameter ('regen', 0); + $show_snmp_modules = (int) get_parameter ('show_snmp_modules', 0); + $font_size = (int) get_parameter ('font_size', 12); + $text_filter = get_parameter ('text_filter', ''); + $dont_show_subgroups = (bool)get_parameter ('dont_show_subgroups', 0); + $store_group = (int) get_parameter ('store_group', 0); + $group = (int) get_parameter ('group', 0); + $module_group = (int) get_parameter ('module_group', 0); + $center = (int) get_parameter ('center', 0); + $name = (string) get_parameter ('name', $activeTab); + $l2_network = (int) get_parameter ('l2_network', 0); + + if ($save_networkmap) { + // ACL for the new network map + $networkmap_read_new = check_acl ($config['id_user'], $store_group, "MR"); + $networkmap_write_new = check_acl ($config['id_user'], $store_group, "MW"); + $networkmap_manage_new = check_acl ($config['id_user'], $store_group, "MM"); + + if (!$networkmap_write_new && !$networkmap_manage_new) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } + + $result = networkmap_update_networkmap($id_networkmap, + array('name' => $name, + 'type' => $activeTab, + 'layout' => $layout, + 'nooverlap' => $nooverlap, + 'simple' => $simple, + 'regenerate' => $regen, + 'font_size' => $font_size, + 'store_group' => $store_group, + 'id_group' => $group, + 'id_module_group' => $module_group, + 'depth' => $depth, + 'only_modules_with_alerts' => $modwithalerts, + 'hide_policy_modules' => $hidepolicymodules, + 'zoom' => $zoom, + 'distance_nodes' => $ranksep, + 'text_filter' => $text_filter, + 'dont_show_subgroups' => $dont_show_subgroups, + 'center' => $center, + 'show_snmp_modules' => (int)$show_snmp_modules, + 'l2_network' => (int)$l2_network)); + + $message = ui_print_result_message ($result, + __('Network map saved successfully'), + __('Could not save network map'), '', true); + + if ($result) { + // Save the new ACL permisison + $networkmap_read = $networkmap_read_new; + $networkmap_write = $networkmap_write_new; + $networkmap_manage = $networkmap_manage_new; + } + } + } +} + +if (!$update_networkmap && !$save_networkmap) { + $networkmap_data = networkmap_get_networkmap($id_networkmap); + if (empty($networkmap_data)) { + ui_print_error_message(__('There was an error loading the network map')); + return; + } + + // Load variables $layout = $networkmap_data['layout']; $depth = $networkmap_data['depth']; $nooverlap = (bool)$networkmap_data['nooverlap']; @@ -177,6 +264,7 @@ if (!$update_networkmap && !$save_networkmap && $id_networkmap != 0) { $font_size = $networkmap_data['font_size']; $text_filter = $networkmap_data['text_filter']; $dont_show_subgroups = $networkmap_data['dont_show_subgroups']; + $store_group = $networkmap_data['store_group']; $group = $networkmap_data['id_group']; $module_group = $networkmap_data['id_module_group']; $center = $networkmap_data['center']; @@ -190,106 +278,128 @@ if ($recenter_networkmap) { } /* Main code */ + +$qs = http_build_query(array( + "sec" => "network", + "sec2" => "operation/agentes/networkmap_list" + )); +$href = "index.php?$qs"; + +$buttons['list'] = array('active' => false, 'text' => "" . + html_print_image("images/list.png", true, array ("title" => __('List'))) .""); + if ($pure == 1) { - $buttons['screen'] = array('active' => false, - 'text' => '' . - html_print_image("images/normal_screen.png", true, array ('title' => __('Normal screen'))) .''); + $qs = http_build_query(array( + "sec" => "network", + "sec2" => "operation/agentes/networkmap", + "id_networkmap" => $id_networkmap, + "tab" => $activeTab + )); + $href = "index.php?$qs"; + + $buttons['screen'] = array('active' => false, 'text' => "" . + html_print_image("images/normal_screen.png", true, array ('title' => __('Normal screen'))) .""); } else { - $buttons['screen'] = array('active' => false, - 'text' => '' . - html_print_image("images/full_screen.png", true, array ('title' => __('Full screen'))) .''); -} -if (($config['enterprise_installed']) && (!$strict_user)) { - $buttons['policies'] = array('active' => $activeTab == 'policies', - 'text' => '' . - html_print_image("images/policies_mc.png", true, array ("title" => __('Policies view'))) .''); -} - -$buttons['groups'] = array('active' => $activeTab == 'groups', - 'text' => '' . - html_print_image("images/group.png", true, array ("title" => __('Groups view'))) .''); - -$buttons['topology'] = array('active' => $activeTab == 'topology', - 'text' => '' . - html_print_image("images/op_network.png", true, array ("title" => __('Topology view'))) .''); - -$buttons['dinamic'] = array('active' => $activeTab == 'dinamic', - 'text' => '' . - html_print_image("images/dynamic_network_icon.png", true, array ("title" => __('Dynamic view'))) .''); - -if (!$strict_user) { - $buttons['radial_dinamic'] = array('active' => $activeTab == 'radial_dynamic', - 'text' => '' . - html_print_image("images/radial_dynamic_network_icon.png", true, array ("title" => __('Radial dynamic view'))) .''); -} - -$combolist = ''; - -$combolist .= html_print_select($networkmaps, 'id_networkmap', $id_networkmap, 'onchange:this.form.submit()', __('No selected'), 0, true, false, false, '', false, 'margin-top:4px; margin-left:3px; width:150px;'); - -$combolist .= html_print_input_hidden('hidden_options',$hidden_options, true); - -$combolist .= ''; - -$buttons['combolist'] = $combolist; - -if (check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) { - $buttons['addmap'] = array('active' => $activeTab == false, - 'text' => '' . - html_print_image("images/add_mc.png", true, array ("title" => __('Add map'))) .''); + $qs = http_build_query(array( + "sec" => "network", + "sec2" => "operation/agentes/networkmap", + "id_networkmap" => $id_networkmap, + "tab" => $activeTab, + "pure" => 1 + )); + $href = "index.php?$qs"; - if (!$nomaps && $id_networkmap != 0) { - $buttons['deletemap'] = array('active' => $activeTab == false, - 'text' => '' . - html_print_image("images/delete_mc.png", true, array ("title" => __('Delete map'))) .''); - - $buttons['savemap'] = array('active' => $activeTab == false, - 'text' => '' . - html_print_image("images/save_mc.png", true, array ("title" => __('Save map'))) .''); - } + $buttons['screen'] = array('active' => false, 'text' => "" . + html_print_image("images/full_screen.png", true, array ('title' => __('Full screen'))) .""); } +if ($networkmap_write || $networkmap_manage) { + + $qs = http_build_query(array( + "sec" => "network", + "sec2" => "operation/agentes/networkmap_list", + "id_networkmap" => $id_networkmap, + "delete_networkmap" => 1 + )); + $href = "index.php?$qs"; + + $buttons['deletemap'] = array('active' => false, 'text' => "" . + html_print_image("images/delete_mc.png", true, array ("title" => __('Delete map'))) .""); + + $qs = http_build_query(array( + "sec" => "network", + "sec2" => "operation/agentes/networkmap", + "id_networkmap" => $id_networkmap, + "save_networkmap" => 1, + "tab" => $activeTab, + "name" => $name, + "store_group" => $store_group, + "group" => $group, + "layout" => $layout, + "nooverlap" => $nooverlap, + "simple" => $simple, + "regen" => $regen, + "zoom" => $zoom, + "ranksep" => $$ranksep, + "font_size" => $font_size, + "depth" => $depth, + "modwithalerts" => $modwithalerts, + "text_filter" => $text_filter, + "dont_show_subgroups" => $dont_show_subgroups, + "hidepolicymodules" => $hidepolicymodules, + "module_group" => $module_group, + "hidden_options" => (int)$hidden_options, + "show_snmp_modules" => (int)$show_snmp_modules, + "l2_network" => (int)$l2_network, + "pure" => $pure + )); + $href = "index.php?$qs"; + + $buttons['savemap'] = array('active' => false, 'text' => "" . + html_print_image("images/save_mc.png", true, array ("title" => __('Save map'))) .''); +} + +// Disabled. It's a waste of resources to check the ACL of every networkmap +// for only provide a shorthand feature. +// $combolist = '
'; + +// $networkmaps = networkmap_get_networkmaps('','', true, $strict_user); +// if (empty($networkmaps)) +// $networkmaps = array(); + +// $combolist .= html_print_select($networkmaps, 'id_networkmap', $id_networkmap, +// 'onchange:this.form.submit()', '', 0, true, false, false, +// '', false, 'margin-top:4px; margin-left:3px; width:150px;'); + +// $combolist .= html_print_input_hidden('hidden_options',$hidden_options, true); + +// $combolist .= '
'; + +// $buttons['combolist'] = $combolist; + $title = ''; +$icon = "images/op_network.png"; switch ($activeTab) { case 'topology': $title = __('Topology view'); + $icon = "images/op_network.png"; break; case 'groups': $title = __('Groups view'); + $icon = "images/group.png"; break; case 'policies': $title = __('Policies view'); + $icon = "images/policies_mc.png"; break; case 'dinamic': $title = __('Dynamic view'); + $icon = "images/dynamic_network_icon.png"; break; - case 'radial_dinamic': + case 'radial_dynamic': $title = __('Radial dynamic view'); + $icon = "images/radial_dynamic_network_icon.png"; break; } @@ -298,7 +408,7 @@ if (!empty($name)) { } ui_print_page_header (__('Network map') . " - " . $title, - "images/op_network.png", false, "network_map", false, $buttons); + $icon, false, "network_map", false, $buttons); if ((tags_has_user_acl_tags()) && (!$strict_user)) { ui_print_tags_warning(); @@ -308,12 +418,6 @@ if ($delete_networkmap || $add_networkmap || $save_networkmap) { echo $message; } -if ($id_networkmap == 0) { - echo "
" . - __('There are no defined maps in this view') . "
"; - return; -} - // CONFIGURATION FORM echo "
"; @@ -328,84 +432,88 @@ $layout_array = array ( $options_form = '
'; +// Fill an array with the form inputs +$form_elems = array(); - -unset($table); -$table->width = '98%'; -$table->class = 'databox'; -$table->data = array(); -$table->data[0][] = __('Name:') . ' ' . +// Name +$element = __('Name') . ' ' . html_print_input_text ('name', $name, '', 25, 50, true); -if ($activeTab == 'groups'){ - $table->data[0][0] .= clippy_context_help("topology_group"); -} -$table->data[0][] = __('Group:') . ' ' . +if ($activeTab == 'groups') + $element .= clippy_context_help("topology_group"); +$form_elems[] = $element; + +// Store group +$form_elems[] = __('Store group') . ' ' . + html_print_select_groups(false, 'AR', false, 'store_group', $store_group, '', 'All', 0, true); + +// Group +$form_elems[] = __('Group') . ' ' . html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true); + +// Module group if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') { - $table->data[0][] = __('Module group') . ' ' . + $form_elems[] = __('Module group') . ' ' . html_print_select_from_sql (' SELECT id_mg, name FROM tmodule_group', 'module_group', $module_group, '', 'All', 0, true); } +// Interfaces if ($activeTab == 'topology') { - $table->data[0][] = __('Show interfaces') . ' ' . + $form_elems[] = __('Show interfaces') . ' ' . html_print_checkbox ('show_snmp_modules', '1', $show_snmp_modules, true); } +// Layout if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { - $table->data[0][] = __('Layout') . ' ' . + $form_elems[] = __('Layout') . ' ' . html_print_select ($layout_array, 'layout', $layout, '', '', '', true); } +// Depth if ($activeTab == 'groups') { $depth_levels = array( 'all' => __('All'), 'agent' => __('Agents'), 'group' => __('Groups')); - $table->data[0][] = __('Depth') . ' ' . - html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); -} - -if ($activeTab == 'policies') { - $depth_levels = array( - 'all' => __('All'), - 'agent' => __('Agents'), - 'policy' => __('Policies')); - $table->data[0][] = __('Depth') . ' ' . + $form_elems[] = __('Depth') . ' ' . html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false); } +// No overlap if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { - $table->data[1][] = __('No Overlap') . ' ' . + $form_elems[] = __('No Overlap') . ' ' . html_print_checkbox ('nooverlap', '1', $nooverlap, true); } -if (($activeTab == 'groups' || $activeTab == 'policies') && - $depth == 'all') { - $table->data[1][] = __('Only modules with alerts') . ' ' . +// Modules with alerts +if (($activeTab == 'groups' || $activeTab == 'policies') && $depth == 'all') { + $form_elems[] = __('Only modules with alerts') . ' ' . html_print_checkbox ('modwithalerts', '1', $modwithalerts, true); - - if ($activeTab == 'groups') { - if ($config['enterprise_installed']) { - $table->data[1][] = __('Hide policy modules') . ' ' . - html_print_checkbox ('hidepolicymodules', '1', $hidepolicymodules, true); - } +} + +// Hide policy modules +if ($activeTab == 'groups') { + if ($config['enterprise_installed']) { + $form_elems[] = __('Hide policy modules') . ' ' . + html_print_checkbox ('hidepolicymodules', '1', $hidepolicymodules, true); } } +// Simple if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { - $table->data[1][] = __('Simple') . ' ' . + $form_elems[] = __('Simple') . ' ' . html_print_checkbox ('simple', '1', $simple, true); } +// Regenerate if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { - $table->data[1][] = __('Regenerate') . ' ' . + $form_elems[] = __('Regenerate') . ' ' . html_print_checkbox ('regen', '1', $regen, true); } +// Zoom if ($pure == "1") { - // Zoom $zoom_array = array ( '1' => 'x1', '1.2' => 'x2', @@ -415,38 +523,62 @@ if ($pure == "1") { '5' => 'x10', ); - $table->data[1][] = __('Zoom') . ' ' . + $form_elems[] = __('Zoom') . ' ' . html_print_select ($zoom_array, 'zoom', $zoom, '', '', '', true, false, false, false); } +// Font if ($activeTab != 'dinamic' && $activeTab != 'radial_dynamic') { - $table->data[1][] = __('Font') . ' ' . + $form_elems[] = __('Font') . ' ' . html_print_input_text ('font_size', $font_size, $alt = 'Font size (in pt)', 2, 4, true); } +// Free text if ($activeTab != 'radial_dynamic') { - $table->data[2][] = __('Free text for search (*):') . ' ' . + $form_elems[] = __('Free text for search (*):') . ' ' . html_print_input_text('text_filter', $text_filter, '', 30, 100, true); } +// Don't show subgroups if (($activeTab == 'groups') || ($activeTab == 'topology')) { - $table->data[2][] = __('Don\'t show subgroups:') . + $form_elems[] = __('Don\'t show subgroups:') . ui_print_help_tip(__('Only run with it is filter for any group'), true) . ' ' . html_print_checkbox ('dont_show_subgroups', '1', $dont_show_subgroups, true); } +// L2 network if ($activeTab == 'topology') { - $table->data[2][] = __('L2 network interfaces') . ' ' . + $form_elems[] = __('L2 network interfaces') . ' ' . html_print_checkbox ('l2_network', '1', $l2_network, true); } +// Distance between nodes if ($nooverlap == 1) { - $table->data[2][] = __('Distance between nodes') . ' ' . + $form_elems[] = __('Distance between nodes') . ' ' . html_print_input_text ('ranksep', $ranksep, __('Separation between elements in the map (in Non-overlap mode)'), 3, 4, true); } +unset($table); +$table->width = '98%'; +$table->class = 'databox'; +$table->data = array(); + +$max_col = 5; +$col = 0; +$row = 0; + +foreach ($form_elems as $key => $element) { + if ($col >= $max_col) { + $col = 0; + $row++; + } + + $table->data[$row][$col] = $element; + $col++; +} + $options_form .= html_print_input_hidden('update_networkmap',1, true) . html_print_input_hidden('hidden_options',0, true); $options_form .= html_print_table ($table, true); @@ -457,24 +589,22 @@ $options_form .= '
'; ui_toggle($options_form, __('Map options'), '', $hidden_options); -if ($id_networkmap != 0) { - switch ($activeTab) { - case 'groups': - require_once('operation/agentes/networkmap.groups.php'); - break; - case 'policies': - require_once(ENTERPRISE_DIR . '/operation/policies/networkmap.policies.php'); - break; - case 'dinamic': - require_once('operation/agentes/networkmap.dinamic.php'); - break; - case 'radial_dynamic': - require_once('operation/agentes/networkmap.dinamic.php'); - break; - default: - case 'topology': - require_once('operation/agentes/networkmap.topology.php'); - break; - } +switch ($activeTab) { + case 'groups': + require_once('operation/agentes/networkmap.groups.php'); + break; + case 'policies': + require_once(ENTERPRISE_DIR . '/operation/policies/networkmap.policies.php'); + break; + case 'dinamic': + require_once('operation/agentes/networkmap.dinamic.php'); + break; + case 'radial_dynamic': + require_once('operation/agentes/networkmap.dinamic.php'); + break; + default: + case 'topology': + require_once('operation/agentes/networkmap.topology.php'); + break; } ?> diff --git a/pandora_console/operation/agentes/networkmap.topology.php b/pandora_console/operation/agentes/networkmap.topology.php index ad587e79f4..29048be445 100644 --- a/pandora_console/operation/agentes/networkmap.topology.php +++ b/pandora_console/operation/agentes/networkmap.topology.php @@ -19,7 +19,34 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "AR")) { +// Networkmap id required +if (!isset($id_networkmap)) { + db_pandora_audit("ACL Violation", + "Trying to access node graph builder"); + require ("general/noaccess.php"); + exit; +} + +// Get the group for ACL +if (!isset($store_group)) { + $store_group = db_get_value("store_group", "tnetwork_map", "id_networkmap", $id_networkmap); + if ($store_group === false) { + db_pandora_audit("ACL Violation", + "Trying to accessnode graph builder"); + require ("general/noaccess.php"); + exit; + } +} + +// ACL for the networkmap permission +if (!isset($networkmap_read)) + $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); +if (!isset($networkmap_write)) + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); +if (!isset($networkmap_manage)) + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + +if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) { db_pandora_audit("ACL Violation", "Trying to access node graph builder"); include ("general/noaccess.php"); diff --git a/pandora_console/operation/agentes/networkmap_list.php b/pandora_console/operation/agentes/networkmap_list.php index 6cef0715fe..585440ec7c 100644 --- a/pandora_console/operation/agentes/networkmap_list.php +++ b/pandora_console/operation/agentes/networkmap_list.php @@ -19,7 +19,12 @@ global $config; check_login (); -if (! check_acl ($config['id_user'], 0, "AR")) { +// ACL for the general permission +$networkmaps_read = check_acl ($config['id_user'], 0, "MR"); +$networkmaps_write = check_acl ($config['id_user'], 0, "MW"); +$networkmaps_manage = check_acl ($config['id_user'], 0, "MM"); + +if (!$networkmaps_read && !$networkmaps_write && !$networkmaps_manage) { db_pandora_audit("ACL Violation", "Trying to access Networkmap builder"); if (is_ajax()) { @@ -38,35 +43,34 @@ if (is_ajax()) { $delete_networkmaps = (bool) get_parameter('delete_networkmaps'); if ($delete_networkmaps) { - if ( check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM") ) { - if (check_acl ($config['id_user'], 0, "RM")) { - $result = false; - $results = array(); - $ids_networkmap = (array) get_parameter ('ids_networkmap'); - foreach ($ids_networkmap as $id) { - $results[$id] = (bool) networkmap_delete_networkmap($id); - } - echo json_encode($results); - return; - } - else{ - if (check_acl ($config['id_user'], 0, "RW")) { - $result = false; - $results = array(); - $ids_networkmap = (array) get_parameter ('ids_networkmap'); - foreach ($ids_networkmap as $id) { - $results[$id] = (bool) networkmap_delete_user_networkmap($config['id_user'], $id); - } - echo json_encode($results); - return; - } + + $results = array(); + $ids_networkmap = (array) get_parameter('ids_networkmap'); + + foreach ($ids_networkmap as $id) { + $store_group = (int) db_get_value('store_group', 'tnetwork_map', 'id_networkmap',$id_networkmap); + + // ACL + // $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + + if ($networkmap_manage) { + $results[$id] = (bool) networkmap_delete_networkmap($id); + } + else if ($networkmap_write) { + $results[$id] = (bool) networkmap_delete_user_networkmap($config['id_user'], $id); } - }else{ - db_pandora_audit("ACL Violation", - "Trying to access Networkmap deletion"); - echo json_encode(-1); - return; } + + // None permission + if (!empty($ids_networkmap) && empty($results)) { + db_pandora_audit("ACL Violation", "Trying to access Networkmap deletion"); + $results = -1; + } + + echo json_encode($results); + return; } return; } @@ -80,12 +84,16 @@ $id_networkmap = get_parameter ('id_networkmap', 0); $delete_networkmap = get_parameter ('delete_networkmap', 0); if ($delete_networkmap) { - if (is_user_admin ($config['id_user'])){ + + // ACL + // $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + + if ($networkmap_manage || is_user_admin ($config['id_user'])) { $result = networkmap_delete_networkmap($id_networkmap); } - elseif (check_acl ($config['id_user'], 0, "RM")) { - $result = networkmap_delete_networkmap($id_networkmap); - }elseif (check_acl ($config['id_user'], 0, "RW")) { + else if ($networkmap_write) { $result = networkmap_delete_user_networkmap($config['id_user'], $id_networkmap); } $message = ui_print_result_message ($result, @@ -144,14 +152,13 @@ $table->style[1] = 'text-align: center;'; $table->style[2] = 'text-align: center;'; $table->style[3] = 'text-align: center;'; $table->style[4] = 'text-align: center;'; -$table->style[5] = 'text-align: center;'; $table->size = array(); $table->size[0] = '80%'; $table->size[1] = '60px'; $table->size[2] = '30px'; -if (check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) { +if ($networkmaps_write || $networkmaps_manage) { $table->size[3] = '30px'; $table->size[4] = '30px'; } @@ -160,22 +167,21 @@ $table->head = array(); $table->head[0] = __('Name'); $table->head[1] = __('Type'); $table->head[2] = __('Group'); -if (check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) { - $table->head[3] = __('Edit'); - $table->head[4] = __('Delete'); +if ($networkmaps_write || $networkmaps_manage) { + $table->head[3] = __('Delete'); // Checkbox to select all the another checkboxes - $table->head[5] = html_print_checkbox('check_delete_all', 0, false, true); + $table->head[4] = html_print_checkbox('check_delete_all', 0, false, true); } $id_groups = array_keys(users_get_groups()); // Create filter $where = array(); -$where['id_group'] = $id_groups; +$where['store_group'] = $id_groups; // Order by type field $where['order'] = 'type'; if (!empty($group_search)) - $where['id_group'] = $group_search; + $where['store_group'] = $group_search; if ($type_search != '0') $where['type'] = $type_search; @@ -183,11 +189,6 @@ if ($type_search != '0') //Check for maps only visible for this user $user_info = users_get_user_by_id($config['id_user']); -//If the user is not admin only user map are shown. -//if (!$user_info['is_admin']) { -// $where['id_user'] = $config['id_user']; -//} - $network_maps = db_get_all_rows_filter('tnetwork_map', $where); if ($network_maps === false) { @@ -197,24 +198,33 @@ if ($network_maps === false) { else { $table->data = array(); foreach ($network_maps as $network_map) { + // ACL + $networkmap_read = check_acl ($config['id_user'], $store_group, "MR"); + $networkmap_write = check_acl ($config['id_user'], $store_group, "MW"); + $networkmap_manage = check_acl ($config['id_user'], $store_group, "MM"); + + // ACL + if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) + continue; + // If enterprise not loaded then skip this code - if ($network_map['type'] == 'policies' and (!defined('PANDORA_ENTERPRISE'))) + if ($network_map['type'] == 'policies' && !defined('PANDORA_ENTERPRISE')) continue; - if (($network_map['type'] == 'radial_dynamic' || $network_map['type'] == 'policies') && ($strict_user)) { + if (($network_map['type'] == 'radial_dynamic' || $network_map['type'] == 'policies') && $strict_user) { continue; } - - $data = array(); - $data[0] = '' . $network_map['name'] . ''; - $data[1] = $network_map['type']; - $data[2] = ui_print_group_icon ($network_map['id_group'], true); - if (check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) { - $data[3] = '' . html_print_image("images/config.png", true) . ''; - $data[4] = '' . html_print_image('images/cross.png', true) . ''; + $data = array(); + $data[0] = '' . $network_map['name'] . ''; + $data[1] = $network_map['type']; + $data[2] = ui_print_group_icon ($network_map['store_group'], true); + + if ($networkmap_write || $networkmap_manage) { + $data[3] = '' . html_print_image('images/cross.png', true) . ''; // The value of the checkbox will be the networkmap id to recover it in js to perform the massive deletion - $data[5] = html_print_checkbox('check_delete', $network_map['id_networkmap'], false, true); + $data[4] = html_print_checkbox('check_delete', $network_map['id_networkmap'], false, true); } $table->data[] = $data; @@ -224,7 +234,7 @@ else { } // Create networkmap form -if (check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) { +if ($networkmaps_write || $networkmaps_manage) { $table_manage = new StdClass(); $table_manage->width = "100%"; $table_manage->style = array(); diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 9494b138c4..05f1c4dece 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -55,9 +55,10 @@ if (file_exists ('../../include/languages/'.$user_language.'.mo')) { } echo ''; - +$label = str_replace('%3D', '=', get_parameter('label', '')); +$label = base64_decode($label); $id = get_parameter('id'); -$label = base64_decode(get_parameter('label', '')); +//$label = rawurldecode(urldecode(base64_decode(get_parameter('label', '')))); ?> diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php index 23e33d8bba..6f143e1bc1 100644 --- a/pandora_console/operation/agentes/ver_agente.php +++ b/pandora_console/operation/agentes/ver_agente.php @@ -246,7 +246,12 @@ if (is_ajax ()) { foreach ($idAgents as $idA) { if (empty($metaconsole_server_name)) { - $row = explode ('|', $idA); + if (strstr($idA, "|@_@|")) { + $row = explode ('|@_@|', $idA); + } + else { + $row = explode ('|', $idA); + } $server_name = $row[0]; $id_agent = $row [1]; } @@ -438,6 +443,7 @@ if (is_ajax ()) { $server = null; if ($metaconsole) { + $strict_user = (bool) db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']); $server = db_get_row('tmetaconsole_setup', 'id', $id_server); if (metaconsole_connect($server) != NOERR) { @@ -527,7 +533,7 @@ if (is_ajax ()) { $size_bad_modules = sizeof ($bad_modules); // Modules down - if ($size_bad_modules > 0) { + if ($size_bad_modules > 0 && (!$metaconsole || !$strict_user)) { echo ''.__('Monitors down').': '.$size_bad_modules.' / '.$total_modules; echo '
    '; foreach ($bad_modules as $module) { @@ -561,7 +567,7 @@ if (is_ajax ()) { $alert_modules = db_get_sql ($sql); } - if ($alert_modules > 0) { + if ($alert_modules > 0 && (!$metaconsole || !$strict_user)) { $sql = sprintf ('SELECT tagente_modulo.nombre, talert_template_modules.last_fired FROM talert_template_modules, tagente_modulo, tagente WHERE tagente.id_agente = %d diff --git a/pandora_console/operation/events/events_list.php b/pandora_console/operation/events/events_list.php index 103ca95919..b049083d92 100644 --- a/pandora_console/operation/events/events_list.php +++ b/pandora_console/operation/events/events_list.php @@ -233,7 +233,10 @@ if (check_acl ($config["id_user"], 0, "EW") || check_acl ($config["id_user"], 0, $table->rowid[1] = 'save_filter_row1'; $data[0] = __('Filter name') . $jump; $data[0] .= html_print_input_text ('id_name', '', '', 15, 255, true); - $data[1] = __('Filter group') . $jump; + if(defined('METACONSOLE')) + $data[1] = __('Group') . $jump; + else + $data[1] = __('Filter group') . $jump; # Fix : Only admin users can see group ALL $data[1] .= html_print_select_groups($config['id_user'], "ER", users_can_manage_group_all(), "id_group", $id_group, '', '', 0, true, false, false, 'w130', false, '', false, false, 'id_grupo', $strict_user); $table->data[] = $data; @@ -469,9 +472,13 @@ if (!$meta) { } else { $data[1] = __('Server') . $jump; - $data[1] .= html_print_select_from_sql( - 'SELECT id, server_name FROM tmetaconsole_setup', - 'server_id', $server_id, 'script', __('All'), '0', true); + if ($strict_user) + $data[1] .= html_print_select('','server_id', + $server_id, 'script', __('All'), '0', true); + else + $data[1] .= html_print_select_from_sql( + 'SELECT id, server_name FROM tmetaconsole_setup', + 'server_id', $server_id, 'script', __('All'), '0', true); } $table_advanced->data[] = $data; diff --git a/pandora_console/operation/tree.php b/pandora_console/operation/tree.php index c83b3f3751..12a69aed64 100755 --- a/pandora_console/operation/tree.php +++ b/pandora_console/operation/tree.php @@ -235,7 +235,8 @@ enterprise_hook('close_meta_frame'); $("form#tree_search").submit(function(e) { e.preventDefault(); - + $(".tree-element-detail-content").hide(); + $(".tree-controller-detail-recipient").hide(); processTreeSearch(); }); diff --git a/pandora_console/operation/visual_console/render_view.php b/pandora_console/operation/visual_console/render_view.php index 048f2e5f85..e4ae5c1d82 100755 --- a/pandora_console/operation/visual_console/render_view.php +++ b/pandora_console/operation/visual_console/render_view.php @@ -74,7 +74,12 @@ $bheight = $layout["height"]; $pure_url = "&pure=" . $config["pure"]; -if (! check_acl ($config["id_user"], $id_group, "RR")) { +// ACL +$vconsole_read = check_acl ($config["id_user"], $id_group, "VR"); +$vconsole_write = check_acl ($config["id_user"], $id_group, "VW"); +$vconsole_manage = check_acl ($config["id_user"], $id_group, "VM"); + +if (! $vconsole_read) { db_pandora_audit("ACL Violation", "Trying to access visual console without group access"); require ("general/noaccess.php"); @@ -89,7 +94,7 @@ $options['consoles_list']['text'] = html_print_image ("images/visual_console.png", true, array ("title" => __('Visual consoles list'))) . ''; -if (check_acl ($config["id_user"], $id_group, "RW")) { +if ($vconsole_write || $vconsole_manage) { $url_base = 'index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&action='; $hash = md5($config["dbpass"] . $id_layout . $config["id_user"]); @@ -123,7 +128,7 @@ if (check_acl ($config["id_user"], $id_group, "RW")) { $options['view']['text'] = '' . html_print_image ("images/operation.png", true, array ("title" => __('View'))) .''; $options['view']['active'] = true; -if (!defined('METACONSOLE')) { +if (! defined('METACONSOLE')) { if ($config["pure"] == 0) { $options['pure']['text'] = '' . html_print_image ("images/full_screen.png", true, array ("title" => __('Full screen mode'))) . ""; @@ -138,18 +143,15 @@ if (!defined('METACONSOLE')) { $options = array('view' => $options['view'], 'pure' => $options['pure']); } $options['pure']['active'] = false; -} - -//Set the hidden value for the javascript -if (defined('METACONSOLE')) { - html_print_input_hidden('metaconsole', 1); -} -else { + + //Set the hidden value for the javascript html_print_input_hidden('metaconsole', 0); ui_print_page_header ($layout_name, "images/visual_console.png", false, '', false, $options); } - - +else { + //Set the hidden value for the javascript + html_print_input_hidden('metaconsole', 1); +} visual_map_print_visual_map ($id_layout); diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index 08ee2ab869..c0e1f1cf6c 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 6.0dev -%define release 150327 +%define release 150413 # 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 5c40ec49eb..6e188b7207 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 6.0dev -%define release 150327 +%define release 150413 %define httpd_name httpd # User and Group under which Apache is running %define httpd_name apache2 diff --git a/pandora_console/pandoradb.data.oracle.sql b/pandora_console/pandoradb.data.oracle.sql index 26eb0c988a..cc136482f9 100644 --- a/pandora_console/pandoradb.data.oracle.sql +++ b/pandora_console/pandoradb.data.oracle.sql @@ -317,11 +317,11 @@ END;; -- BEGIN LOCK TABLE tperfil IN EXCLUSIVE MODE; -INSERT INTO tperfil VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0); -INSERT INTO tperfil VALUES (2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0); -INSERT INTO tperfil VALUES (3,'Chief Operator',1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,0,1); -INSERT INTO tperfil VALUES (4,'Group coordinator',1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1); -INSERT INTO tperfil VALUES (5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); +INSERT INTO tperfil VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0); +INSERT INTO tperfil VALUES (2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0); +INSERT INTO tperfil VALUES (3,'Chief Operator',1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1); +INSERT INTO tperfil VALUES (4,'Group coordinator',1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1); +INSERT INTO tperfil VALUES (5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); COMMIT; END;; diff --git a/pandora_console/pandoradb.data.postgreSQL.sql b/pandora_console/pandoradb.data.postgreSQL.sql index 73c827d6a4..8abccd16c4 100644 --- a/pandora_console/pandoradb.data.postgreSQL.sql +++ b/pandora_console/pandoradb.data.postgreSQL.sql @@ -289,7 +289,7 @@ SELECT setval('tusuario_perfil_id_up_seq', (SELECT (SELECT MAX(id_up) FROM tusua -- -- Dumping data for table "tperfil" -- -INSERT INTO "tperfil" VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0),(2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0),(3,'Chief Operator',1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,0,1),(4,'Group coordinator',1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1),(5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); +INSERT INTO "tperfil" VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0),(2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0),(3,'Chief Operator',1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1),(4,'Group coordinator',1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1),(5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); SELECT setval('tperfil_id_perfil_seq', (SELECT (SELECT MAX(id_perfil) FROM tperfil))); -- diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index b8438d6a83..57a9a8f871 100755 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -823,23 +823,29 @@ CREATE TABLE torigen ( CREATE TABLE tperfil ( id_perfil NUMBER(10, 0) NOT NULL PRIMARY KEY, name CLOB default '', - incident_edit NUMBER(5, 0) default 0 NOT NULL, - incident_view NUMBER(5, 0) default 0 NOT NULL, - incident_management NUMBER(5, 0) default 0 NOT NULL, - agent_view NUMBER(5, 0) default 0 NOT NULL, - agent_edit NUMBER(5, 0) default 0 NOT NULL, - alert_edit NUMBER(5, 0) default 0 NOT NULL, - user_management NUMBER(5, 0) default 0 NOT NULL, - db_management NUMBER(5, 0) default 0 NOT NULL, - alert_management NUMBER(5, 0) default 0 NOT NULL, - pandora_management NUMBER(5, 0) default 0 NOT NULL, - report_view NUMBER(5, 0) default 0 NOT NULL, - report_edit NUMBER(5, 0) default 0 NOT NULL, - report_management NUMBER(5, 0) default 0 NOT NULL, - event_view NUMBER(5, 0) default 0 NOT NULL, - event_edit NUMBER(5, 0) default 0 NOT NULL, - event_management NUMBER(5, 0) default 0 NOT NULL, - agent_disable NUMBER(5, 0) default 0 NOT NULL + incident_edit NUMBER(1, 0) default 0 NOT NULL, + incident_view NUMBER(1, 0) default 0 NOT NULL, + incident_management NUMBER(1, 0) default 0 NOT NULL, + agent_view NUMBER(1, 0) default 0 NOT NULL, + agent_edit NUMBER(1, 0) default 0 NOT NULL, + alert_edit NUMBER(1, 0) default 0 NOT NULL, + user_management NUMBER(1, 0) default 0 NOT NULL, + db_management NUMBER(1, 0) default 0 NOT NULL, + alert_management NUMBER(1, 0) default 0 NOT NULL, + pandora_management NUMBER(1, 0) default 0 NOT NULL, + report_view NUMBER(1, 0) default 0 NOT NULL, + report_edit NUMBER(1, 0) default 0 NOT NULL, + report_management NUMBER(1, 0) default 0 NOT NULL, + event_view NUMBER(1, 0) default 0 NOT NULL, + event_edit NUMBER(1, 0) default 0 NOT NULL, + event_management NUMBER(1, 0) default 0 NOT NULL, + agent_disable NUMBER(1, 0) default 0 NOT NULL, + map_view NUMBER(1, 0) default 0 NOT NULL, + map_edit NUMBER(1, 0) default 0 NOT NULL, + map_management NUMBER(1, 0) default 0 NOT NULL, + vconsole_view NUMBER(1, 0) default 0 NOT NULL, + vconsole_edit NUMBER(1, 0) default 0 NOT NULL, + vconsole_management NUMBER(1, 0) default 0 NOT NULL ); CREATE SEQUENCE tperfil_s INCREMENT BY 1 START WITH 1; diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index a78404a135..7d3ed285a8 100755 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -738,7 +738,13 @@ CREATE TABLE "tperfil" ( "event_view" SMALLINT NOT NULL default 0, "event_edit" SMALLINT NOT NULL default 0, "event_management" SMALLINT NOT NULL default 0, - "agent_disable" SMALLINT NOT NULL default 0 + "agent_disable" SMALLINT NOT NULL default 0, + "map_view" SMALLINT NOT NULL default 0, + "map_edit" SMALLINT NOT NULL default 0, + "map_management" SMALLINT NOT NULL default 0, + "vconsole_view" SMALLINT NOT NULL default 0, + "vconsole_edit" SMALLINT NOT NULL default 0, + "vconsole_management" SMALLINT NOT NULL default 0 ); -- --------------------------------------------------------------------- diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 5674dba402..32fd2a49b0 100755 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -782,23 +782,29 @@ CREATE TABLE IF NOT EXISTS `torigen` ( CREATE TABLE IF NOT EXISTS `tperfil` ( `id_perfil` int(10) unsigned NOT NULL auto_increment, `name` TEXT NOT NULL, - `incident_edit` tinyint(3) NOT NULL default '0', - `incident_view` tinyint(3) NOT NULL default '0', - `incident_management` tinyint(3) NOT NULL default '0', - `agent_view` tinyint(3) NOT NULL default '0', - `agent_edit` tinyint(3) NOT NULL default '0', - `alert_edit` tinyint(3) NOT NULL default '0', - `user_management` tinyint(3) NOT NULL default '0', - `db_management` tinyint(3) NOT NULL default '0', - `alert_management` tinyint(3) NOT NULL default '0', - `pandora_management` tinyint(3) NOT NULL default '0', - `report_view` tinyint(3) NOT NULL default '0', - `report_edit` tinyint(3) NOT NULL default '0', - `report_management` tinyint(3) NOT NULL default '0', - `event_view` tinyint(3) NOT NULL default '0', - `event_edit` tinyint(3) NOT NULL default '0', - `event_management` tinyint(3) NOT NULL default '0', - `agent_disable` tinyint(3) NOT NULL default '0', + `incident_edit` tinyint(1) NOT NULL DEFAULT 0, + `incident_view` tinyint(1) NOT NULL DEFAULT 0, + `incident_management` tinyint(1) NOT NULL DEFAULT 0, + `agent_view` tinyint(1) NOT NULL DEFAULT 0, + `agent_edit` tinyint(1) NOT NULL DEFAULT 0, + `alert_edit` tinyint(1) NOT NULL DEFAULT 0, + `user_management` tinyint(1) NOT NULL DEFAULT 0, + `db_management` tinyint(1) NOT NULL DEFAULT 0, + `alert_management` tinyint(1) NOT NULL DEFAULT 0, + `pandora_management` tinyint(1) NOT NULL DEFAULT 0, + `report_view` tinyint(1) NOT NULL DEFAULT 0, + `report_edit` tinyint(1) NOT NULL DEFAULT 0, + `report_management` tinyint(1) NOT NULL DEFAULT 0, + `event_view` tinyint(1) NOT NULL DEFAULT 0, + `event_edit` tinyint(1) NOT NULL DEFAULT 0, + `event_management` tinyint(1) NOT NULL DEFAULT 0, + `agent_disable` tinyint(1) NOT NULL DEFAULT 0, + `map_view` tinyint(1) NOT NULL DEFAULT 0, + `map_edit` tinyint(1) NOT NULL DEFAULT 0, + `map_management` tinyint(1) NOT NULL DEFAULT 0, + `vconsole_view` tinyint(1) NOT NULL DEFAULT 0, + `vconsole_edit` tinyint(1) NOT NULL DEFAULT 0, + `vconsole_management` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id_perfil`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 59af8d640d..cdf5cc70e0 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','6.0dev'), -('db_scheme_build','PD150327'), +('db_scheme_build','PD150413'), ('show_unknown','0'), ('show_lastalerts','1'), ('style','pandora'), @@ -279,7 +279,7 @@ INSERT INTO `tusuario_perfil` (`id_up`, `id_usuario`, `id_perfil`, `id_grupo`, ` -- Dumping data for table `tperfil` -- -INSERT INTO `tperfil` VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0),(2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0),(3,'Chief Operator',1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1),(4,'Group coordinator',1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1),(5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); +INSERT INTO `tperfil` VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0),(2,'Operator (Write)',1,1,0,1,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0),(3,'Chief Operator',1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,1,1,1),(4,'Group coordinator',1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1),(5,'Pandora Administrator',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); -- -- Dumping data for table `tnews` diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control index f2b199cc4d..0511ce051f 100644 --- a/pandora_server/DEBIAN/control +++ b/pandora_server/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-server -Version: 6.0dev-150327 +Version: 6.0dev-150413 Architecture: all Priority: optional Section: admin diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh index 1df8a6d666..a50910a02a 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="6.0dev-150327" +pandora_version="6.0dev-150413" package_cpan=0 package_pandora=1 diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index e2c7773fe7..c121bbca15 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 = "6.0dev"; -my $pandora_build = "150327"; +my $pandora_build = "150413"; 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 b014af234f..088d53e40b 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 6.0dev -%define release 150327 +%define release 150413 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 07d08c2e1e..1f2fd70ad5 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 6.0dev -%define release 150327 +%define release 150413 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 2161336f86..79b230877e 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 = "6.0dev PS150327"; +my $version = "6.0dev PS150413"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 79c2f3fa61..ac7c2e05f9 100644 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -35,7 +35,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "6.0dev PS150327"; +my $version = "6.0dev PS150413"; # save program name for logging my $progname = basename($0);