diff --git a/pandora_agents/pc/Linux/pandora_agent.conf b/pandora_agents/pc/Linux/pandora_agent.conf index 8cb980cff1..45c7eb54bb 100644 --- a/pandora_agents/pc/Linux/pandora_agent.conf +++ b/pandora_agents/pc/Linux/pandora_agent.conf @@ -234,16 +234,6 @@ module_description Number of cron task files module_unit files module_end -# This module /var/log/syslog file, under the module name "syslog" -# And search for "ssh" string into it, sending only that information. -module_begin -module_name Syslog -module_description Search for ssh string into /var/log/syslog file -module_type log -module_regexp /var/log/syslog -module_pattern ssh -module_end - #Hardening plugin for security compliance analysis. Enable to use it. #module_begin #module_plugin /usr/share/pandora_agent/plugins/pandora_hardening -t 150 @@ -310,11 +300,15 @@ module_plugin pandora_df #module_description Postcondition test module #module_end +# This plugin runs several security checks in a Linux system + +#module_plugin pandora_security_check + # Extraction module example #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/pc/Win32/pandora_agent.conf b/pandora_agents/pc/Win32/pandora_agent.conf index 0b8aeb6e0b..f6e51eb6f7 100644 --- a/pandora_agents/pc/Win32/pandora_agent.conf +++ b/pandora_agents/pc/Win32/pandora_agent.conf @@ -354,11 +354,11 @@ module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df.vbs" #module_description Postcondition test module #module_end -# Example of collector module +# Logs extraction #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp C:\server\logs\messages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/shellscript/linux/pandora_agent.conf b/pandora_agents/shellscript/linux/pandora_agent.conf index b8f6941240..d0172175a9 100644 --- a/pandora_agents/shellscript/linux/pandora_agent.conf +++ b/pandora_agents/shellscript/linux/pandora_agent.conf @@ -163,26 +163,16 @@ module_end #module_absoluteinterval 7d #module_end -# This module parses /var/log/syslog file, under the module name "syslog" -# And search for "ssh" string into it, sending only that information. -module_begin -module_name Syslog -module_description Search for ssh string into /var/log/syslog file -module_type log -module_regexp /var/log/syslog -module_pattern ssh -module_end - # Plugin example # Plugin for inventory on the agent. # module_plugin inventory 1 cpu ram video nic hd cdrom software -# Extraction module example +# Logs extraction #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/shellscript/mac_osx/pandora_agent.conf b/pandora_agents/shellscript/mac_osx/pandora_agent.conf index 6d6c530a45..1baa97d507 100644 --- a/pandora_agents/shellscript/mac_osx/pandora_agent.conf +++ b/pandora_agents/shellscript/mac_osx/pandora_agent.conf @@ -378,26 +378,16 @@ module_end #module_absoluteinterval 7d #module_end -# This module parses /var/log/syslog file, under the module name "syslog" -# And search for "ssh" string into it, sending only that information. -module_begin -module_name Syslog -module_description Log collection modules -module_type log -module_regexp /var/log/syslog -module_pattern ssh -module_end - # Plugin example # Plugin for inventory on the agent. # module_plugin inventory 1 cpu ram video nic hd cdrom software -# Extraction module example +# Logs extraction #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 85fd264914..c665a30841 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.776-240410 +Version: 7.0NG.776-240411 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 a1390d619c..a6185dcff7 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="7.0NG.776-240410" +pandora_version="7.0NG.776-240411" 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/FreeBSD/pandora_agent.conf b/pandora_agents/unix/FreeBSD/pandora_agent.conf index b182045ac9..a146bb28d8 100644 --- a/pandora_agents/unix/FreeBSD/pandora_agent.conf +++ b/pandora_agents/unix/FreeBSD/pandora_agent.conf @@ -277,4 +277,10 @@ module_plugin grep_log /var/log/auth.log Syslog sshd # Log collection modules. Only for enterprise version, this will collect log files for forensic analysis. # This is for LOG monitoring, only on enterprise version -#module_plugin grep_log_module /var/log/messages Syslog \.\* +#module_begin +#module_name Syslog +#module_description Gets all logs from system messages +#module_type log +#module_regexp /var/log/messages +#module_pattern .* +#module_end diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 20714a13b7..ca2c414d9d 100644 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -325,12 +325,3 @@ module_end #module_plugin /usr/share/pandora_agent/plugins/pandora_hardening -t 150 #module_absoluteinterval 7d #module_end - -# Extraction module example -#module_begin -#module_name Collector -#module_description Logs extraction module -#module_type log -#module_regexp /var/log/logfile.log -#module_pattern .* -#module_end \ No newline at end of file diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index be678985b8..c23c763e69 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1039,7 +1039,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.776'; -use constant AGENT_BUILD => '240410'; +use constant AGENT_BUILD => '240411'; # Agent log default file size maximum and instances use constant DEFAULT_MAX_LOG_SIZE => 600000; diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 62bc889628..93548856bd 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.776 -%define release 240410 +%define release 240411 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent.redhat_bin.el8.spec b/pandora_agents/unix/pandora_agent.redhat_bin.el8.spec index 35bb00dcd9..7a1b0525e4 100644 --- a/pandora_agents/unix/pandora_agent.redhat_bin.el8.spec +++ b/pandora_agents/unix/pandora_agent.redhat_bin.el8.spec @@ -5,7 +5,7 @@ %define name pandorafms_agent_linux_bin %define source_name pandorafms_agent_linux %define version 7.0NG.776 -%define release 240410 +%define release 240411 %define debug_package %{nil} Summary: Pandora FMS Linux agent, binary version diff --git a/pandora_agents/unix/pandora_agent.redhat_bin.el9.spec b/pandora_agents/unix/pandora_agent.redhat_bin.el9.spec index 63702a385b..b46fd8d021 100644 --- a/pandora_agents/unix/pandora_agent.redhat_bin.el9.spec +++ b/pandora_agents/unix/pandora_agent.redhat_bin.el9.spec @@ -5,7 +5,7 @@ %define name pandorafms_agent_linux_bin %define source_name pandorafms_agent_linux %define version 7.0NG.776 -%define release 240410 +%define release 240411 %define debug_package %{nil} Summary: Pandora FMS Linux agent, binary version diff --git a/pandora_agents/unix/pandora_agent.redhat_bin.spec b/pandora_agents/unix/pandora_agent.redhat_bin.spec index 027bf514f6..34dda65b65 100644 --- a/pandora_agents/unix/pandora_agent.redhat_bin.spec +++ b/pandora_agents/unix/pandora_agent.redhat_bin.spec @@ -5,7 +5,7 @@ %define name pandorafms_agent_linux_bin %define source_name pandorafms_agent_linux %define version 7.0NG.776 -%define release 240410 +%define release 240411 Summary: Pandora FMS Linux agent, binary version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index 1ea84212af..583de39dea 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.776 -%define release 240410 +%define release 240411 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent_installer b/pandora_agents/unix/pandora_agent_installer index 9ee0aed4d7..84b44b6990 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.776" -PI_BUILD="240410" +PI_BUILD="240411" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/bin/pandora_agent.conf b/pandora_agents/win32/bin/pandora_agent.conf index 1fc54530c5..b0faeeabbd 100644 --- a/pandora_agents/win32/bin/pandora_agent.conf +++ b/pandora_agents/win32/bin/pandora_agent.conf @@ -289,14 +289,6 @@ module_plugin "%PROGRAMFILES%\Pandora_Agent\util\autodiscover.exe" --default #module_type generic_data_string #module_end -# Get logs from Application source. Need enterprise version. -#module_begin -#module_name Eventlog_Application -#module_type log -#module_logevent -#module_source Application -#module_end - # Example: get Network information using Agent plugin #module_plugin cscript //B "%ProgramFiles%\Pandora_Agent\util\nettraffic.vbs" @@ -533,10 +525,10 @@ module_plugin "%PROGRAMFILES%\Pandora_Agent\util\autodiscover.exe" --default # Logs extraction #module_begin -#module_name X_Server_log -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp C:\server\logs\xserver.log +#module_regexp C:\server\logs\messages #module_pattern .* #module_end diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index cd3d838ffd..2a92409a9d 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{240410} +{240411} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 717d7a0f37..d9250f4d5c 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 ("7.0NG.776 Build 240410") +#define PANDORA_VERSION ("7.0NG.776 Build 240411") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 170e2b1bc1..ad139ecdaa 100644 --- a/pandora_agents/win32/versioninfo.rc +++ b/pandora_agents/win32/versioninfo.rc @@ -11,7 +11,7 @@ BEGIN VALUE "LegalCopyright", "Pandora FMS" VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "ProductName", "Pandora FMS Windows Agent" - VALUE "ProductVersion", "(7.0NG.776(Build 240410))" + VALUE "ProductVersion", "(7.0NG.776(Build 240411))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 52e9d061aa..2e55ffa032 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.776-240410 +Version: 7.0NG.776-240411 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 4cac08383a..1bc7b0890d 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="7.0NG.776-240410" +pandora_version="7.0NG.776-240411" package_pear=0 package_pandora=1 diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 1596ec7d80..2d3d95a77e 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -140,7 +140,6 @@ echo sprintf('
', $menuTypeClass); } } - $search_bar .= '
'; $search_bar .= '', $menuTypeClass); $modal_box .= ''.__('Join discord community').''; $modal_box .= '
'; + // Move help modal (header) fix z-index. + $modal_box .= ' + + '; + if ($config['activate_feedback'] === '1') { $modal_help = html_print_div( [ @@ -883,7 +903,8 @@ echo sprintf('
', $menuTypeClass); enterprise: , }, success: function (data) { - $('#result_order').html(data); + $('#result_order').html(data); + resizeSearchHeader() }, error: function (data) { console.error("Fatal error in AJAX call to interpreter order", data) @@ -1208,4 +1229,8 @@ echo sprintf('
', $menuTypeClass); }); }); /* ]]> */ + +$(window).resize(function () { + resizeSearchHeader() +}); diff --git a/pandora_console/godmode/setup/file_manager.php b/pandora_console/godmode/setup/file_manager.php index 4aac87d770..8ccddde606 100644 --- a/pandora_console/godmode/setup/file_manager.php +++ b/pandora_console/godmode/setup/file_manager.php @@ -75,8 +75,8 @@ if (isset($text) === false) { } $directory = (string) get_parameter('directory'); -$directory = str_replace('<', '', $text); -$directory = str_replace('>', '', $text); +$directory = str_replace('<', '', $directory); +$directory = str_replace('>', '', $directory); if (empty($directory) === true) { $directory = $fallback_directory; } else { diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index 6518470811..8624146692 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -111,11 +111,8 @@ if (enterprise_installed()) { array_push($menu_tabs, $menu_tab_url); $menu_tab_url = ''.__('History database').''; array_push($menu_tabs, $menu_tab_url); - - if ($config['log_collector']) { - $menu_tab_url = ''.__('Log collector').''; - array_push($menu_tabs, $menu_tab_url); - } + $menu_tab_url = ''.__('Log collector').''; + array_push($menu_tabs, $menu_tab_url); } $buttons['auth'] = [ @@ -422,8 +419,14 @@ switch ($section) { $help_header = ''; break; + case 'log': + $buttons['log']['active'] = true; + $subpage = __('Log Collector'); + $help_header = 'opensearch_installation'; + break; + default: - $subpage = 'seccion: '; + $subpage = ''; // Default. break; } @@ -432,7 +435,7 @@ $dots = dot_tab($menu_tabs); // Header. ui_print_standard_header( - __('Setup').' » '.$subpage, + $subpage, '', false, $help_header, diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index b7c9498973..884991c9f2 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -250,6 +250,13 @@ class ConsoleSupervisor $this->checkAllowOverrideEnabled(); + /* + * Check if OpenSearch is configured and log collector enabled + * NOTIF.OPENSEARCH.CONSOLELOG + */ + + $this->checkOpenSearchLogCollector(); + /* * Check if the Pandora Console log * file remains in old location. @@ -540,6 +547,12 @@ class ConsoleSupervisor $this->checkUpdateManagerRegistration(); + /* + * Check if OpenSearch is configured and log collector enabled + * NOTIF.OPENSEARCH.CONSOLELOG + */ + $this->checkOpenSearchLogCollector(); + /* * Check if has API access. * NOTIF.API.ACCESS @@ -2540,6 +2553,35 @@ class ConsoleSupervisor } + /** + * Check if OpenSearch is configured and log collector enabled. + * + * @return void + */ + public function checkOpenSearchLogCollector() + { + global $config; + include_once $config['homedir'].'/include/functions_update_manager.php'; + $login = get_parameter('login', false); + + if ($config['log_collector'] !== '1' && empty($config['elasticsearch_ip']) === false && empty($config['elasticsearch_port']) === false) { + if (update_manager_verify_registration() === false) { + $this->notify( + [ + 'type' => 'NOTIF.OPENSEARCH.CONSOLELOG', + 'title' => __('The Log collector is not enabled'), + 'message' => __('The OpenSearch is defined but the log collector is not enabled.'), + 'url' => '__url__/index.php?sec=gsetup&sec2=godmode/setup/setup§ion=log', + 'icon_notification' => self::ICON_QUESTION, + ] + ); + } else { + $this->cleanNotifications('NOTIF.OPENSEARCH.CONSOLELOG'); + } + } + } + + /** * Check if has access to the API * diff --git a/pandora_console/include/class/OrderInterpreter.class.php b/pandora_console/include/class/OrderInterpreter.class.php index b96ad6e510..0936c40d86 100644 --- a/pandora_console/include/class/OrderInterpreter.class.php +++ b/pandora_console/include/class/OrderInterpreter.class.php @@ -404,7 +404,7 @@ class OrderInterpreter extends Wizard if ($iterator <= 9 && $this->canShowItem($enterprise, $this->pages_menu[$key]['url'])) { echo '
  • '; echo ' - Go to   + Go to   '; echo '  diff --git a/pandora_console/include/class/SnmpConsole.class.php b/pandora_console/include/class/SnmpConsole.class.php index 160e020e07..d166f03590 100644 --- a/pandora_console/include/class/SnmpConsole.class.php +++ b/pandora_console/include/class/SnmpConsole.class.php @@ -240,27 +240,27 @@ class SnmpConsole extends HTML 'status', [ 'text' => 'snmp_agent', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], [ 'text' => 'enterprise_string', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], [ 'text' => 'count', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], [ 'text' => 'trap_subtype', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], [ 'text' => 'user_id', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], [ 'text' => 'timestamp', - 'class' => 'snmp-td datos_green', + 'class' => 'snmp-td', ], 'alert', [ @@ -791,7 +791,7 @@ class SnmpConsole extends HTML // SNMP Agent. $agent = agents_get_agent_with_ip($tmp->source); if ($agent === false) { - $tmp->snmp_agent .= ''.$tmp->source.''; + $tmp->snmp_agent .= 'source.'" title="'.__('Create agent').'">'.$tmp->source.''; } else { $tmp->snmp_agent .= '
    '; $tmp->snmp_agent .= ''.$agent['alias'].ui_print_help_tip($tmp->source, true); diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 72c75f7c39..4562f52114 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -22,7 +22,7 @@ use DI\ContainerBuilder; /* * Pandora build version and version */ -$build_version = 'PC240410'; +$build_version = 'PC240411'; $pandora_version = 'v7.0NG.776'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index c2dc891bcc..e3418a0f48 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -5617,6 +5617,13 @@ function get_help_info($section_name) } break; + case 'opensearch_installation': + if ($es) { + $result .= 'pandorafms/technical_annexes/38_opensearch_installation#instalacion'; + } else { + $result .= 'pandorafms/technical_annexes/38_opensearch_installation#installation'; + } + case 'servers_ha_clusters_tab': if ($es) { $result .= 'pandorafms/complex_environments_and_optimization/06_ha#alta_disponibilidad_del_servidor_de_datos'; diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 09424ac021..a3a46dbc52 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -4597,7 +4597,7 @@ function html_print_table(&$table, $return=false) } else { $headStyle = ''; } - + if (isset($table->headStyle[$heading])) { $headStyle = ' style = "'.$table->headStyle[$heading].'" '; } diff --git a/pandora_console/include/functions_notifications.php b/pandora_console/include/functions_notifications.php index 30b30539d5..947b2d8657 100644 --- a/pandora_console/include/functions_notifications.php +++ b/pandora_console/include/functions_notifications.php @@ -147,6 +147,7 @@ function notifications_get_subtypes(?string $source=null) 'NOTIF.METACONSOLE.DB_CONNECTION', 'NOTIF.DOWNTIME', 'NOTIF.UPDATEMANAGER.REGISTRATION', + 'NOTIF.OPENSEARCH.CONSOLELOG', 'NOTIF.API.ACCESS', 'NOTIF.MISC.EVENTSTORMPROTECTION', 'NOTIF.MISC.DEVELOPBYPASS', diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index c42a69ae57..640ccafc51 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -4646,10 +4646,12 @@ function ui_toggle( $imageRotate = $rotateB; $style .= 'height:0;position:absolute;'; $original = $img_b; + $data_close = 'true'; } else { $imageRotate = $rotateA; $style .= 'height:auto;position:relative;'; $original = $img_a; + $data_close = 'false'; } $header_class = ''; @@ -4668,7 +4670,7 @@ function ui_toggle( // Link to toggle. $output = '
    '; - $output .= '
    '; + $output .= '
    '; if ($reverseImg === false) { if ($switch === true) { if (empty($switch_name) === true) { @@ -4783,6 +4785,7 @@ function ui_toggle( $output .= " $('#tgl_div_".$uniqid."').css('position', '".$position_div."');\n"; $output .= " $('#image_".$uniqid."').attr('style', 'rotate: ".$rotateA."');\n"; $output .= " $('#checkbox-".$switch_name."').prop('checked', true);\n"; + $output .= " $('#tgl_ctrl_".$uniqid."').attr('data-close', 'false');\n"; $output .= $class_table; $output .= " }\n"; $output .= " else {\n"; @@ -4791,6 +4794,7 @@ function ui_toggle( $output .= " $('#tgl_div_".$uniqid."').css('position', 'absolute');\n"; $output .= " $('#image_".$uniqid."').attr('style', 'rotate: ".$rotateB."');\n"; $output .= " $('#checkbox-".$switch_name."').prop('checked', false);\n"; + $output .= " $('#tgl_ctrl_".$uniqid."').attr('data-close', 'true');\n"; $output .= " }\n"; $output .= " });\n"; $output .= " }\n"; diff --git a/pandora_console/include/functions_users.php b/pandora_console/include/functions_users.php index 3a4725ff49..98b7764b02 100755 --- a/pandora_console/include/functions_users.php +++ b/pandora_console/include/functions_users.php @@ -1126,3 +1126,29 @@ function user_print_header(int $pure=0, string $tab='user', ?string $title=null) ] ); } + + +/** + * Returns the timezone of the user given or the actual one. + * + * @param mixed $id_user Id usuario (No give notingh return current user). + * + * @return string Return timezone of the user. + */ +function user_get_timezone($id_user=null) +{ + global $config; + + if (empty($id_user)) { + $id_user = $config['id_user']; + } + + $timezone = db_get_value( + 'timezone', + 'tusuario', + 'id_user', + $id_user + ); + + return $timezone; +} diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 40530a49be..329e515f06 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -344,6 +344,22 @@ function flot_area_graph( // Trick to get translated string from javascript. $return .= html_print_input_hidden('unknown_text', __('Unknown'), true); + if (isset($array_events_alerts)) { + $user_timezone = user_get_timezone(); + if (isset($user_timezone) && $user_timezone !== '') { + foreach ($array_events_alerts as $key_event_alert => $event_alert) { + foreach ($event_alert as $key => $row) { + if (isset($row['timestamp']) === true) { + $timezone = new DateTimeZone($user_timezone); + $date = new DateTime(); + $date->setTimestamp($row['utimestamp']); + $date->setTimezone($timezone); + $array_events_alerts[$key_event_alert][$key]['timestamp'] = $date->format('Y-m-d H:i:s'); + } + } + } + } + } $values = json_encode($array_data); diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index 2a2d7205a0..c12f8b9147 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -2736,3 +2736,8 @@ function menuTabsShowHide() { } } } + +function resizeSearchHeader() { + $(".show_result_interpreter").width($("#keywords").outerWidth() - 12); + $(".show_result_interpreter").css("left", $("#keywords").position().left + 2); +} diff --git a/pandora_console/include/lib/Dashboard/Widgets/events_list.php b/pandora_console/include/lib/Dashboard/Widgets/events_list.php index beb7a92b5f..12da343ba5 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/events_list.php +++ b/pandora_console/include/lib/Dashboard/Widgets/events_list.php @@ -615,7 +615,7 @@ class EventsListWidget extends Widget if (in_array('0', $this->values['groupId'])) { $filter['id_group_filter'] = 0; } else { - $filter['id_group_filter'] = (!empty($this->values['groupId'][0])) ? $this->values['groupId'] : 0; + $filter['id_group_filter'] = (!empty($customFilter['id_group'])) ? $customFilter['id_group'] : 0; } $filter['tag_with'] = base64_encode( diff --git a/pandora_console/include/lib/Group.php b/pandora_console/include/lib/Group.php index 66afa624ad..5c66d517d6 100644 --- a/pandora_console/include/lib/Group.php +++ b/pandora_console/include/lib/Group.php @@ -778,6 +778,7 @@ class Group extends Entity exit; } + /** * Check whether group is linked to a database element (needed for ajax check). * diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index 154d98fc21..5a7b88b171 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -478,7 +478,6 @@ ul li { top: 0; left: 0; background-color: #ffffff; - border-right: 1px solid #eee; } .button_collapse { @@ -545,6 +544,13 @@ ul li { width: 35px; } +#button_collapse { + width: 32px; + height: 32px; + background-color: #f6f7fb; + border-radius: 50%; +} + @media screen and (max-height: 750px) { .operation { padding-top: 10px; @@ -586,7 +592,7 @@ ul li { #menu_tabs { height: 49px; - border-bottom: 1px solid #c1ccdc; + border-bottom: 1px solid #f6f7fb; } .div_border_line { diff --git a/pandora_console/include/styles/order_interpreter.css b/pandora_console/include/styles/order_interpreter.css index 604a0141a8..91812ab226 100644 --- a/pandora_console/include/styles/order_interpreter.css +++ b/pandora_console/include/styles/order_interpreter.css @@ -2,16 +2,18 @@ div.show_result_interpreter { background-color: #fff; color: #000; border: 1px solid #e2e2e2; - border-bottom-left-radius: 10px; - border-bottom-right-radius: 10px; + border-top: 0; + border-bottom-left-radius: 18px; + border-bottom-right-radius: 18px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; box-shadow: 0px 0px 15px -4px #dadada; - position: absolute; - z-index: 1; + position: fixed; + z-index: 3; width: 300px; - top: 45px; + top: 48px; + left: 50%; } .more_results { @@ -21,27 +23,37 @@ div.show_result_interpreter { } .results-found { - background-image: url("../../images/input_zoom_gray.png"); - background-position: center right 10px; + background-image: url("../../images/details.svg"); + background-position: center left 20px; background-repeat: no-repeat; background-size: 17px; - background-color: #f2f6f7; + background-color: #f6f7fb; padding: 0px; margin: 0; - width: 300px; - height: 30px; + width: 150px; + height: 36px; margin-left: 2px; - padding-left: 15px; - padding-right: 40px; + padding-right: 15px; + padding-left: 45px; color: #777; font-size: 8.5pt; - border-top-left-radius: 10px; - border-top-right-radius: 10px; + border-top-left-radius: 18px; + border-top-right-radius: 18px; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; border-color: transparent; } .list_found { - padding-top: 5px; + padding: 5px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; +} + +.list_found img { + padding: 0 5px; } .active { diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index c1cf6bc423..0d5d315415 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -29,6 +29,7 @@ :root { --primary-color: #14524f; + --primary-color-hover: #318280; --secondary-color: #ffffff; --text-color: #333; @@ -44,6 +45,31 @@ --input-border: #c0ccdc; --table-hover-background: #ebfffe; + + /* Events priorities colors */ + --events-priority-bg-green: #82b92e; + --events-priority-text-green: #fff; + + --events-priority-bg-red: #e63c52; + --events-priority-text-red: #fff; + + --events-priority-bg-yellow: #f3b200; + --events-priority-text-yellow: #111; + + --events-priority-bg-blue: #4ca8e0; + --events-priority-text-blue: #fff; + + --events-priority-bg-grey: #999999; + --events-priority-text-grey: #fff; + + --events-priority-bg-pink: #fdc4ca; + --events-priority-text-pink: #111; + + --events-priority-bg-brown: #a67c52; + --events-priority-text-brown: #fff; + + --events-priority-bg-orange: #f7931e; + --events-priority-text-orange: #111; } /* @@ -1584,7 +1610,6 @@ div#head { height: 60px; padding-top: 0px; margin: 0 auto; - border-bottom: 1px solid #eee; min-width: 882px; background-color: #fff; color: #000; @@ -1982,21 +2007,43 @@ div.title_line { #menu_tab_frame_view, #menu_tab_frame_view_bc { position: sticky; - top: 61px; + top: 60px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; - border-bottom: 1px solid #eee; width: -webkit-fill-available; width: -moz-available; padding-right: 0px; height: 50px; box-sizing: border-box; - background-color: #fff; + background-color: #f6f7fb; margin: -25px -25px 25px -25px; } +#menu_full::before { + content: ""; + width: 16px; + height: 16px; + background-color: var(--secondary-color); + position: absolute; + top: 60px; + right: -16px; + z-index: 0; +} + +#menu_full::after { + content: ""; + width: 16px; + height: 16px; + background-color: #f6f7fb; + position: absolute; + top: 60px; + right: -16px; + z-index: 0; + border-top-left-radius: 16px; +} + /* Breadcrum */ #menu_tab_frame_view_bc { min-height: 55px; @@ -2805,10 +2852,31 @@ div#pandora_logo_header { flex-direction: column; } +#head, +#header { + text-wrap: nowrap; +} + .header_center { display: flex; justify-content: center; align-items: center; + width: 100%; +} + +#header_searchbar { + width: 100%; + padding: 0 100px; +} + +@media screen and (max-width: 1300px) { + #header_searchbar { + padding: 0 30px; + } +} + +#header_searchbar #keywords { + width: 100%; } .header_right { @@ -3591,17 +3659,17 @@ div.tip > img { */ input.search_input { background-image: url("../../images/details.svg"); - background-position: center right 10px; + background-position: center left 20px; background-repeat: no-repeat; background-size: 17px; - background-color: #f2f6f7; + background-color: #f6f7fb; padding: 0px; margin: 0; width: 150px; - height: 30px; + height: 36px; margin-left: 2px; - padding-left: 15px; - padding-right: 40px; + padding-right: 15px; + padding-left: 45px; color: #777; font-size: 8.5pt; border-top-left-radius: 50px; @@ -4073,15 +4141,22 @@ div.div_groups_status { min-height: 53px; } -#menu_tab li:hover:not(.menu-dots-li) { - box-shadow: inset 0px 4px var(--primary-color); -} - #menu_tab li.nomn_high, #menu_tab li.nomn_high span { color: #fff; - box-shadow: inset 0px 4px var(--primary-color); - background-color: #fff; +} + +#menu_tab li.nomn_high::before, +#menu_tab li:hover:not(.menu-dots-li)::before { + content: ""; + display: block; + position: absolute; + bottom: 0px; + width: 40px; + height: 5px; + margin-left: -5px; + background-color: var(--primary-color-hover); + border-radius: 5px; } #menu_tab li.nomn img, @@ -10509,6 +10584,11 @@ select:focus { border: 2px solid #8a96a6; } +#keywords.results-found { + border: 1px solid var(--border-color); + border-bottom: 0px; +} + :focus { outline: #8a96a6; } @@ -11602,12 +11682,56 @@ pre.external_tools_output { z-index: 1; width: -webkit-fill-available; width: -moz-available; - margin: -25px -25px 25px -25px; + margin-bottom: 25px; } .white_table_graph.fixed_filter_bar { + border-radius: 0px; + background-color: #f6f7fb; + border: 0; + top: 133px; +} + +.white_table_graph.fixed_filter_bar::before { + content: ""; + width: calc(100% + 2px); + height: 25px; + background-color: #f6f7fb; + position: absolute; + top: -25px; + margin: 0 -1px; +} + +.white_table_graph.fixed_filter_bar > div:nth-child(1) { + background-color: var(--secondary-color); + border: 1px solid #e5e9ed; + border-bottom: 0px; border-radius: 0; - top: 110px; + border-top-left-radius: 8px; + border-top-right-radius: 8px; +} + +.white_table_graph.fixed_filter_bar > div:nth-child(1)[data-close="true"] { + border-radius: 8px; + border: 1px solid #e5e9ed; +} + +.white_table_graph.fixed_filter_bar > div:nth-child(2) { + background-color: var(--secondary-color); + /* border: 1px solid #e5e9ed; */ + border-top: 0px; + border-radius: 0; + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; +} + +.white_table_graph.fixed_filter_bar > div:nth-child(2) > div { + background-color: unset; + border: 1px solid #e5e9ed; + border-top: 0px; + border-radius: 0; + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; } /* @@ -14017,3 +14141,57 @@ form#aws-view > span.select2 { vertical-align: bottom; margin-right: 15px; } + +table#snmp_console tbody td:not(.table_action_buttons) * { + height: 100%; + display: flex; + align-items: center; +} + +table#snmp_console tbody .datos_green, +table#snmp_console tbody .datos_green * { + background-color: var(--events-priority-bg-green); + color: var(--events-priority-text-green) !important; +} + +table#snmp_console tbody .datos_red, +table#snmp_console tbody .datos_red * { + background-color: var(--events-priority-bg-red); + color: var(--events-priority-text-red) !important; +} + +table#snmp_console tbody .datos_yellow, +table#snmp_console tbody .datos_yellow * { + background-color: var(--events-priority-bg-yellow); + color: var(--events-priority-text-yellow) !important; +} + +table#snmp_console tbody .datos_blue, +table#snmp_console tbody .datos_blue * { + background-color: var(--events-priority-bg-blue); + color: var(--events-priority-text-blue) !important; +} + +table#snmp_console tbody .datos_grey, +table#snmp_console tbody .datos_grey * { + background-color: var(--events-priority-bg-grey); + color: var(--events-priority-text-grey) !important; +} + +table#snmp_console tbody .datos_pink, +table#snmp_console tbody .datos_pink * { + background-color: var(--events-priority-bg-pink); + color: var(--events-priority-text-pink) !important; +} + +table#snmp_console tbody .datos_brown, +table#snmp_console tbody .datos_brown * { + background-color: var(--events-priority-bg-brown); + color: var(--events-priority-text-brown) !important; +} + +table#snmp_console tbody .datos_orange, +table#snmp_console tbody .datos_orange * { + background-color: var(--events-priority-bg-orange); + color: var(--events-priority-text-orange) !important; +} diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index f2daebfd29..2946b30385 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -22,6 +22,7 @@ Description: The default Pandora FMS theme layout */ :root { --primary-color: #14524f; + --primary-color-hover: #14524f; --secondary-color: #222; --text-color: #fff; @@ -61,7 +62,16 @@ button.sub, .select2-container .select2-selection--single, .select2-container { background-color: #111 !important; - color: #fff !important; + color: var(--text-color) !important; +} + +table + > tbody + > tr + > td.table_action_buttons:not(.qwerqwer) + input[type="image"]:not(.qwerqwer) { + background-color: transparent !important; + /* filter: brightness(4.5) contrast(100%) !important; */ } div#head, @@ -83,30 +93,23 @@ button.sub, div#rules::after, table.agent_info_table thead > tr:first-child th, table.agent_info_table tr { - background-color: #222 !important; - color: #fff !important; -} - -div#head { - border-bottom: 1px solid #1a1a1a; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .menu_full_classic #menu_tabs { height: 49px; - border-bottom: 1px solid #82b92e; + border-bottom: 1px solid var(--border-color); } .menu_full_collapsed #menu_tabs { height: 49px; - border-bottom: 1px solid #82b92e; + border-bottom: 1px solid var(--border-color); padding-bottom: 1px; } -#menu_full { - border-right: 1px solid #111; -} .logo_green { - background-color: #000; + background-color: var(--secondary-color); } #um-next:hover, #um-last:hover { @@ -115,7 +118,7 @@ div#head { #um-next, #um-last { background-color: #111 !important; - color: #fff !important; + color: var(--text-color) !important; font-weight: 500; border-radius: 5px; background-repeat: no-repeat; @@ -167,8 +170,8 @@ textarea:disabled { .white_table, .white_table tr:first-child > th, .white_table_graph_content { - background-color: #222; - color: #fff; + background-color: var(--secondary-color); + color: var(--text-color); } .notify, @@ -182,7 +185,7 @@ textarea:disabled { .default_container { font-weight: bold; - background-color: #222; + background-color: var(--secondary-color); border: 1px solid #e2e2e2; margin-bottom: 4px; } @@ -209,7 +212,7 @@ input:-webkit-autofill { /* messages */ .container, input.pure_full { - background-color: #222; + background-color: var(--secondary-color); } .p-slider { @@ -223,12 +226,12 @@ input.pure_full { } .fileupload_form, #button-pure { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } #drop_file { background-color: #444 !important; - color: #fff !important; + color: var(--text-color) !important; } ol.steps li.current { @@ -272,7 +275,7 @@ tr.group_view_data, .group_view_data, ol.steps li span, ol.steps li a { - color: #fff !important; + color: var(--text-color) !important; } /* Tabs icons change color */ @@ -281,7 +284,7 @@ ol.steps li a { .operation, .godmode, #menu_full { - background-color: #222; + background-color: var(--secondary-color); } .button_collapse { @@ -301,11 +304,11 @@ ol.steps li a { font-weight: normal; letter-spacing: -0.3px; height: 18px; - color: #fff; + color: var(--text-color); } .head_tab_selected span { - color: #fff; + color: var(--text-color); } .tabs_selected { @@ -314,13 +317,13 @@ ol.steps li a { .operation .menu_icon ul.submenu > li, .godmode .menu_icon ul.submenu > li { - background-color: #222; + background-color: var(--secondary-color); padding-left: 24px !important; } .submenu_not_selected:hover { background-color: #171717 !important; - color: #fff !important; + color: var(--text-color) !important; } .submenu_selected { @@ -330,14 +333,14 @@ ol.steps li a { .submenu_selected_no_submenu { background-color: #111 !important; - color: #ffffff !important; + color: var(--text-color) fff !important; } .sub_subMenu { font-weight: normal; background-color: #171717; padding-left: 1.5em; - color: #fff !important; + color: var(--text-color) !important; } .sub_subMenu.selected { @@ -350,13 +353,13 @@ ol.steps li a { } .sub_subMenu.selected a { - color: #fff !important; + color: var(--text-color) !important; } .span_has_menu_text { font-weight: normal; font-size: 9.4pt; - color: #fff; + color: var(--text-color); } /* footer */ @@ -367,32 +370,32 @@ div#foot { /* Overwrite inline styles */ .textodialogo td .white_important, .multi-select-container { - color: #fff !important; + color: var(--text-color) !important; } /* snmp */ #snmp_browser { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } /* events.css */ table.table_modal_alternate tr:nth-child(odd) td { - background-color: #222 !important; - color: #fff; + background-color: var(--secondary-color) !important; + color: var(--text-color); border-bottom: 1px solid #707070; border-top: 1px solid #707070; } table.table_modal_alternate tr:nth-child(even) td { background-color: #111 !important; - color: #fff; + color: var(--text-color); border-bottom: 1px solid #707070; border-top: 1px solid #707070; } /* events.css */ table.black_table_modal_alternate tr:nth-child(odd) td { - background-color: #222 !important; + background-color: var(--secondary-color) !important; border-bottom: 1px solid #707070; border-top: 1px solid #707070; } @@ -405,7 +408,7 @@ table.black_table_modal_alternate tr:nth-child(even) td { /* tables.css */ .info_table { - background-color: #222; + background-color: var(--secondary-color); } .info_table > tbody > tr:nth-child(even) { @@ -414,8 +417,8 @@ table.black_table_modal_alternate tr:nth-child(even) td { .info_table tr:first-child > th, .info_table th { - background-color: #222 !important; - color: #fff; + background-color: var(--secondary-color) !important; + color: var(--text-color); } .info_table > tbody > tr:hover, @@ -431,18 +434,24 @@ table.black_table_modal_alternate tr:nth-child(even) td { .info_table .datos4, .datos4 { background-color: #444; - color: #fff; + color: var(--text-color); } .table_action_buttons a[href] img, .table_action_buttons input[type="image"], .action_button_img { - filter: brightness(4.5) contrast(50%); + filter: brightness(4.5) contrast(100%) !important; background-color: transparent !important; } +.table_action_buttons a[href] img.invert_filter, +.table_action_buttons input[type="image"].invert_filter, +.action_button_img.invert_filter { + filter: invert(100%) brightness(4.5) contrast(100%) !important; +} + a.pandora_pagination { - color: #fff; + color: var(--text-color); } span.reinvert_filter { @@ -452,7 +461,7 @@ span.reinvert_filter { .new_task, div.new_task, div.new_task > div { - background-color: #222; + background-color: var(--secondary-color); } /* events.css */ @@ -467,7 +476,7 @@ div.new_task > div { } #chat_box > div span { - color: #fff !important; + color: var(--text-color) !important; } /* tree.css */ @@ -476,7 +485,7 @@ div.new_task > div { } .tree-node div.node-content:hover { - background-color: #222; + background-color: var(--secondary-color); } ul.tree-group @@ -492,16 +501,16 @@ ul.tree-group } #user-notifications-wrapper { - color: #fff; + color: var(--text-color); } /* datatables */ table.dataTable tbody tr { - background-color: #222; + background-color: var(--secondary-color); } table.dataTable span { - color: #fff; + color: var(--text-color); } /* diagnostic info */ @@ -514,7 +523,7 @@ table#diagnostic_info th { } table#diagnostic_info tbody td div { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } /* agent view */ @@ -525,12 +534,12 @@ table#diagnostic_info tbody td div { /* jquery custom */ .ui-dialog, .ui-widget-content { - background-color: #222 !important; - color: #fff; + background-color: var(--secondary-color) !important; + color: var(--text-color); } .ui-widget-content, .ui-widget-content a { - color: #fff !important; + color: var(--text-color) !important; } .ui-widget-content.ui-autocomplete a { @@ -540,8 +549,8 @@ table#diagnostic_info tbody td div { .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } #cancel_btn_dialog { @@ -551,7 +560,7 @@ table#diagnostic_info tbody td div { .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { background-color: #111; - color: #fff; + color: var(--text-color); } .ui-state-default a, @@ -561,7 +570,7 @@ a.ui-button, a:link.ui-button, a:visited.ui-button, .ui-button { - color: #fff; + color: var(--text-color); } ul.ui-tabs-nav.ui-corner-all.ui-helper-reset.ui-helper-clearfix.ui-widget-header @@ -571,13 +580,13 @@ ul.ui-tabs-nav.ui-corner-all.ui-helper-reset.ui-helper-clearfix.ui-widget-header .ui-dialog .ui-dialog-buttonpane button { background-color: transparent; - color: #fff; + color: var(--text-color); } /* notifications */ #notification-wrapper::before { border-bottom-color: #222 !important; - color: #fff; + color: var(--text-color); } #notification-wrapper { @@ -591,12 +600,12 @@ ul.ui-tabs-nav.ui-corner-all.ui-helper-reset.ui-helper-clearfix.ui-widget-header pre, .notification-subtitle { - color: #fff; + color: var(--text-color); } /* update_manager.css */ div#box_online * { - color: #fff; + color: var(--text-color); } /* discovery.css */ @@ -620,7 +629,7 @@ div#form_activate_licence #code { margin-top: 20px; margin-bottom: 20px; border: 0px; - background-color: #222; + background-color: var(--secondary-color); } .backgrund_primary_important { @@ -634,7 +643,7 @@ div#form_activate_licence #code { } .sound_div_background { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } /* @@ -645,7 +654,6 @@ div#form_activate_licence #code { #menu_tab_frame, #menu_tab_frame_view, #menu_tab_frame_view_bc { - border-bottom: 1px solid #82b92e; background-color: #111 !important; } @@ -723,7 +731,7 @@ form#modal_form_feedback ul.wizard li > textarea { #library_main_content div.library_main_category:hover { border: 1px solid #e2e2e2; - background-color: #222; + background-color: var(--secondary-color); border-radius: 4px; padding: 19px; cursor: pointer; @@ -785,7 +793,7 @@ form ul.form_flex { .container_table, .second_background, .bg_color222 { - background-color: #222; + background-color: var(--secondary-color); } .content-widget .container-center { @@ -810,16 +818,16 @@ form ul.form_flex { } .bullet .range.s0 { - background-color: #222; + background-color: var(--secondary-color); fill: #222 !important; border-radius: 4px; } text { - color: #fff !important; + color: var(--text-color) !important; } .legendLabel { - color: #fff; + color: var(--text-color); } .incident_table { @@ -838,7 +846,7 @@ text { .cluetip-default #cluetip-outer { position: relative; margin: 0; - background-color: #222; + background-color: var(--secondary-color); } .cluetip-default h3 { @@ -847,7 +855,7 @@ text { font-size: 1.1em; font-weight: bold; background-color: #111 !important; - color: #fff; + color: var(--text-color); } .cluetip-default h3#cluetip-title { @@ -855,11 +863,11 @@ text { height: 0px; margin: 0; padding: 0; - color: #fff; + color: var(--text-color); } .cluetip-default #cluetip-title a { - color: #fff; + color: var(--text-color); font-size: 0.95em; } @@ -879,7 +887,7 @@ text { } .card { border: 1px solid #e2e2e2; - background-color: #222; + background-color: var(--secondary-color); display: flex; flex-direction: column; padding: 0; @@ -900,7 +908,7 @@ text { min-width: 360px; margin-left: 50px; padding: 0px 0px 0px 30px; - background-color: #222; + background-color: var(--secondary-color); border: 1px solid #e2e2e2; border-radius: 4px; } @@ -917,7 +925,7 @@ text { border-radius: 5px; padding: 10px; opacity: 0.9; - color: #fff; + color: var(--text-color); } .notification-subtitle_black { @@ -962,7 +970,7 @@ button.submit-next.ui-button.ui-corner-all.ui-widget, input[type="button"].submit-next { color: #82b92e; border: 1px solid #82b92e; - background-color: #222 !important; + background-color: var(--secondary-color) !important; padding: 5px; font-size: 1.3em; @@ -979,7 +987,7 @@ button.submit-cancel.ui-button.ui-corner-all.ui-widget, button.submit-cancel { color: #fb4444; border: 1px solid #fb4444; - background-color: #222 !important; + background-color: var(--secondary-color) !important; padding: 5px; font-size: 1.3em; margin: 0.5em 1em 0.5em 0; @@ -1011,7 +1019,7 @@ div#dashboard-controls { flex-wrap: wrap; justify-content: center; align-items: center; - background-color: #222; + background-color: var(--secondary-color); border-radius: 15px; padding: 10px; } @@ -1028,15 +1036,15 @@ div#dashboard-controls { text-align: center; text-anchor: middle; fill: #fff; - color: #fff; + color: var(--text-color); } .tickLabel { - color: #fff; + color: var(--text-color); } .ITSM_details_shadow { - background-color: #222; + background-color: var(--secondary-color); border-bottom: 1px solid #e2e2e2; border-left: 1px solid #e2e2e2; border-top-left-radius: 5px; @@ -1047,41 +1055,41 @@ div#dashboard-controls { div.ITSM_details_description textarea { width: 100%; background-color: #111; - color: #fff; + color: var(--text-color); resize: vertical; } .grid-stack-item-content { - color: #fff !important; + color: var(--text-color) !important; } .widget-groups-status h1 a { font-size: 1.1em; font-weight: bold; line-height: 20px; - color: #fff; + color: var(--text-color); letter-spacing: 0.03pt; text-decoration: none; text-transform: capitalize; } .widget_groups_status { - background-color: #222; + background-color: var(--secondary-color); } .flot-text { - color: #fff !important; + color: var(--text-color) !important; } .table.group_modules_status_box tr td { letter-spacing: 0.03pt; font-size: 11pt; text-decoration: none; - color: #fff !important; + color: var(--text-color) !important; font-weight: bolder; text-align: justify; border-bottom: 0px; } .bg_222_important { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } .networkconsole { @@ -1096,7 +1104,7 @@ div.ITSM_details_description textarea { } .module_graph_menu_header, .module_graph_menu_content { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } .invert_filter_important { @@ -1104,8 +1112,8 @@ div.ITSM_details_description textarea { } fieldset { border-color: #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } input, @@ -1119,49 +1127,49 @@ select, .white_box, .white-box-content { border: 1px solid #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .white_table_graph_header { border: 1px solid #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; border-radius: 0; } .white_table_graph { - background-color: #222 !important; + background-color: #111 !important; } table.databox { border-color: #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .info_table > tbody > tr { border-bottom: 1px solid #303030; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .status_tactical { border-color: #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .status_tactical, .tactical_set { border-color: #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } li.ui-tabs-tab.ui-corner-top.ui-state-default.ui-tab { border: 1px solid #707070; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .chartLegend { width: 100%; @@ -1181,7 +1189,7 @@ li.ui-tabs-tab.ui-corner-top.ui-state-default.ui-tab { } table.alternate tr:nth-child(2n + 1) td { - background-color: #222; + background-color: var(--secondary-color); } table.alternate tr:nth-child(2n) td { @@ -1191,7 +1199,7 @@ table.alternate tr:nth-child(2n) td { .header_title { font-weight: 600; font-size: 10.5pt; - color: #fff; + color: var(--text-color); } .header_subtitle { font-size: 10pt; @@ -1204,7 +1212,7 @@ table.alternate tr:nth-child(2n) td { } .flot-base { - background-color: #222; + background-color: var(--secondary-color); } li > input[type="number"], li > input[type="text"]:not(.search_input), @@ -1281,12 +1289,12 @@ a.pandora_pagination:hover { .show_result_interpreter, #menu_tab li.nomn_high { background-color: #111 !important; - color: #fff; + color: var(--text-color); } #graph_container { background-color: #111 !important; - color: #fff; + color: var(--text-color); } #elasticsearch_editor, @@ -1296,12 +1304,12 @@ a.pandora_pagination:hover { #header_table { padding-right: 35px; - background-color: #222; + background-color: var(--secondary-color); } .legend_background { - background-color: #222; - color: #fff !important; + background-color: var(--secondary-color); + color: var(--text-color) !important; } .bg_ccc { background-color: #50505050 !important; @@ -1335,14 +1343,14 @@ input:not(div.login_pass > input):not(div.login_nick > input[type="image"]) { /* Table about dialog */ .table-about { - background-color: #222 !important; + background-color: var(--secondary-color) !important; width: 100%; border-collapse: collapse; border-color: #222 !important; } .table-about th { - background-color: #222 !important; + background-color: var(--secondary-color) !important; width: 100%; } @@ -1432,7 +1440,7 @@ button.submitButton { button.buttonButton.secondary, button.submitButton.secondary { background-color: #999; - color: #fff; + color: var(--text-color); border-color: #fff; } @@ -1452,7 +1460,7 @@ button.submitButton.secondary:hover > div { background-color: #ddd !important; } .fixed_filter_bar { - background-color: #222; + background-color: var(--secondary-color); } .section_table_title_line { @@ -1471,7 +1479,7 @@ select[multiple] option:hover { .select2-search.select2-search--dropdown, .select2-results > .select2-results__options > .select2-results__option { - background-color: #222; + background-color: var(--secondary-color); } .select2-results @@ -1486,19 +1494,19 @@ select[multiple] option:hover { .filter_summary > div, .filter_summary > div > div.content { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } ul.datatable_filter:has(li > div.action-buttons) { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } ul.datatable_filter { - background-color: #222 !important; + background-color: var(--secondary-color) !important; } span.ui-dialog-title { - color: #fff !important; + color: var(--text-color) !important; } span.select2-dropdown.select2-dropdown--below { @@ -1523,7 +1531,7 @@ table.filter-table-adv td > div label:not(.inputFile) { } #principal_action_buttons { - background: #111111; + background: #222; } div.fixed-bottom-box, div.fixed-bottom-box @@ -1543,7 +1551,7 @@ span.select2 { .ui-dialog .tips_header.ui-dialog-titlebar { color: white !important; - background-color: #222222 !important; + background-color: var(--secondary-color) 222 !important; } #tips_window_modal > div.window > div.description > #title_tip, @@ -1552,26 +1560,26 @@ span.select2 { } .agent_details_header span.subsection_header_title { - color: #fff; + color: var(--text-color); } pre code.hljs { - background-color: #222222; - color: #fff; + background-color: var(--secondary-color) 222; + color: var(--text-color); } a.autorefresh_txt, #refrcounter { - color: #ffffff; + color: var(--text-color) fff; font-size: 8.5pt; } .container-custom-graph { - background-color: #222; + background-color: var(--secondary-color); } .header-widget { - background-color: #222; + background-color: var(--secondary-color); } .grid-stack-item-content { @@ -1590,8 +1598,8 @@ a.autorefresh_txt, .white_box, .white-box-content { border: 0px; - background-color: #222 !important; - color: #fff !important; + background-color: var(--secondary-color) !important; + color: var(--text-color) !important; } .info_table, @@ -1642,7 +1650,7 @@ a.pandora_pagination, } .font-title-font { - color: #fff; + color: var(--text-color); } #visual-console-container a p { @@ -1650,7 +1658,7 @@ a.pandora_pagination, } /* News Blacktheme */ .new-board { - background-color: #222; + background-color: var(--secondary-color); border: 1px solid #333; border-radius: 4px; margin-bottom: 15px; @@ -1670,12 +1678,12 @@ a.pandora_pagination, font-weight: 600; font-size: 16px; line-height: 24px; - color: #fff; + color: var(--text-color); margin: 15px; } .new-board-author { - color: #fff; + color: var(--text-color); margin: 15px; } @@ -1702,7 +1710,7 @@ a.pandora_pagination, } .default-new > div.default-text-new > p { - color: #fff; + color: var(--text-color); font-size: 15px; line-height: 24px; } @@ -1712,7 +1720,7 @@ a.pandora_pagination, } .default-new > div.default-text-new > span { - color: #fff; + color: var(--text-color); font-size: 11px; line-height: 20px; } @@ -1755,18 +1763,18 @@ a.pandora_pagination, .tox-menu, .tox-collection, .tox-collection--list { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-mbtn:hover { - color: #fff !important; + color: var(--text-color) !important; background-color: #000 !important; } .tox .tox-menu-nav__js:hover > div, .tox-menu-nav__js:hover { - color: #fff !important; + color: var(--text-color) !important; background-color: #000 !important; } @@ -1775,22 +1783,22 @@ a.pandora_pagination, } .tox-insert-table-picker__label { - color: #fff !important; + color: var(--text-color) !important; } .tox .tox-toolbar-overlord > div, .tox-toolbar-overlord { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-toolbar__group > button { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-toolbar__group > button:hover { - color: #fff !important; + color: var(--text-color) !important; background-color: #000 !important; } @@ -1818,27 +1826,27 @@ a.pandora_pagination, .tox .tox-sidebar-wrap > div, .tox-sidebar-wrap { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-edit-area__iframe { - color: #fff !important; + color: var(--text-color) !important; background-color: #666 !important; } .tox .tox-statusbar { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-statusbar__text-container { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } .tox .tox-statusbar__path > div { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } @@ -1849,7 +1857,7 @@ a.pandora_pagination, .tox-dialog, .tox-dialog__header, .tox-dialog__footer { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } @@ -1857,7 +1865,7 @@ a.pandora_pagination, background-color: transparent !important; border-color: transparent !important; box-shadow: unset !important; - color: #fff !important; + color: var(--text-color) !important; } .tox-button:not(.tox-button--secondary):not(.tox-button--naked) { @@ -1870,11 +1878,11 @@ a.pandora_pagination, } .tox .tox-listboxfield .tox-listbox--select { background-color: #111 !important; - color: #fff !important; + color: var(--text-color) !important; } .mce-content-body { - color: #fff !important; + color: var(--text-color) !important; background-color: #333 !important; } @@ -1971,6 +1979,36 @@ input.button_task:not(div.login_pass > input):not(div.login_nick filter: brightness(0.85); } +#menu_full::after, +.white_table_graph.fixed_filter_bar::before { + background-color: #111; +} + +.white_table_graph.fixed_filter_bar > div:nth-child(1)[data-close="true"], +.white_table_graph.fixed_filter_bar > div:nth-child(1), +.white_table_graph.fixed_filter_bar > div:nth-child(2) > div { + border: 1px solid var(--border-color); +} + +.white_table_graph.fixed_filter_bar > div:nth-child(2) > div { + border-top: 0px; +} + +.action_buttons_background_mask { + border-top: 1px solid var(--border-color); + background-color: #111; +} + +#button_collapse { + background-color: #111; +} + +div.show_result_interpreter { + box-shadow: 0px 13px 13px 0px #dadada26; + border: 1px solid var(--border-color); + border-top: 0; +} + li.agent-autocomplete-li-text-color a { color: #333 !important; } diff --git a/pandora_console/index.php b/pandora_console/index.php index c3c3ac642a..37081d970d 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1565,6 +1565,9 @@ while (ob_get_length() > 0) { ob_end_flush(); } +// Results search header. +echo '
    '; + db_print_database_debug(); echo ''; diff --git a/pandora_console/install.php b/pandora_console/install.php index dc871e7bde..37a72c0535 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
    [ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 1b6dc1efcd..9a11e1ac05 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -7,7 +7,7 @@ %define debug_package %{nil} %define name pandorafms_server %define version 7.0NG.776 -%define release 240410 +%define release 240411 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index ac39093af0..87f07c18c0 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.776 -%define release 240410 +%define release 240411 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index a359767ded..cce068a0d0 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.776" -PI_BUILD="240410" +PI_BUILD="240411" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 129231cd49..35b68e1f1d 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -38,7 +38,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.776 Build 240410"; +my $version = "7.0NG.776 Build 240411"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index f4403289b9..5a75fb0226 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.776 Build 240410"; +my $version = "7.0NG.776 Build 240411"; # save program name for logging my $progname = basename($0);