From 8fd1f3c99e9d0349aac6254e944095eb6dd5ebdb Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Thu, 29 Aug 2019 10:07:50 +0200 Subject: [PATCH 01/19] Added compact mode to show timestamp - #4233 --- pandora_console/godmode/setup/setup_visuals.php | 17 ++++++++++++----- pandora_console/include/functions_ui.php | 4 ++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index 0e7e41e7d6..e07326fe6e 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -1169,16 +1169,23 @@ $row++; if ($config['prominent_time'] == 'comparation') { $timestamp = false; $comparation = true; + $compact = false; } else if ($config['prominent_time'] == 'timestamp') { $timestamp = true; $comparation = false; + $compact = false; + } else if ($config['prominent_time'] == 'compact') { + $timestamp = false; + $comparation = false; + $compact = true; } - $table_other->data[$row][0] = __('Timestamp or time comparation'); - $table_other->data[$row][1] = __('Comparation in rollover').' '; - $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'comparation', '', $comparation, true); - $table_other->data[$row][1] .= '
'.__('Timestamp in rollover').' '; - $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', '', $timestamp, true); + $table_other->data[$row][0] = __('Timestamp, time comparation, or Compact mode'); + $table_other->data[$row][1] = '
'; + $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'comparation', __('Comparation in rollover'), $comparation, true); + $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', __('Timestamp in rollover'), $timestamp, true); + $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'compact', __('Compact mode'), $compact, true); + $table_other->data[$row][1] .= '
'; $row++; diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 008c05b8d7..9f897767df 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -535,6 +535,10 @@ function ui_print_timestamp($unixtime, $return=false, $option=[]) date2strftime_format($config['date_format']), $unixtime ); + } else if ($prominent == 'compact') { + $units = 'tiny'; + $title = human_time_comparation($unixtime); + $data = human_time_comparation($unixtime, $units); } else { $title = date($config['date_format'], $unixtime); $units = 'large'; From bb093482a79adb116ff7d068b749bb4660ea5fc2 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Wed, 11 Dec 2019 13:04:45 +0100 Subject: [PATCH 02/19] Fix: ws session extraction --- pandora_console/include/lib/WSManager.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/lib/WSManager.php b/pandora_console/include/lib/WSManager.php index f1e4fc6524..a8144c43c0 100644 --- a/pandora_console/include/lib/WSManager.php +++ b/pandora_console/include/lib/WSManager.php @@ -271,12 +271,20 @@ class WSManager extends WebSocketServer { global $config; - $php_session_id = \str_replace( - 'PHPSESSID=', - '', - $user->headers['cookie'] + $match; + $php_session_id = ''; + \preg_match( + '/PHPSESSID=(.*)/', + $user->headers['cookie'], + $match ); + if (is_array($match) === true) { + $php_session_id = $match[1]; + } + + $php_session_id = \preg_replace('/;.*$/', '', $php_session_id); + // If being redirected from proxy. if (isset($user->headers['x-forwarded-for']) === true) { $user->address = $user->headers['x-forwarded-for']; From 3b5ebd0bf7f41cd772cb9e5d355f6a2deded4fc0 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 13 Dec 2019 11:46:44 +0100 Subject: [PATCH 03/19] Better quickshell integration and fixes --- pandora_console/extensions/quick_shell.php | 31 ++-------------------- pandora_console/godmode/menu.php | 7 +++++ pandora_console/godmode/setup/setup.php | 18 +++++++++++++ 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/pandora_console/extensions/quick_shell.php b/pandora_console/extensions/quick_shell.php index a8cce0b8de..08d002f55e 100644 --- a/pandora_console/extensions/quick_shell.php +++ b/pandora_console/extensions/quick_shell.php @@ -65,17 +65,13 @@ function quickShell() ui_require_css_file('discovery'); // Settings. - // WebSocket host, where to connect. - if (isset($config['ws_host']) === false) { - config_update_value('ws_host', $_SERVER['SERVER_ADDR']); - } - + // WebSocket host, where client should connect. if (isset($config['ws_port']) === false) { config_update_value('ws_port', 8080); } if (empty($config['ws_proxy_url']) === true) { - $ws_url = 'http://'.$config['ws_host'].':'.$config['ws_port']; + $ws_url = 'http://'.$_SERVER['SERVER_ADDR'].':'.$config['ws_port']; } else { preg_match('/\/\/(.*)/', $config['ws_proxy_url'], $matches); if (isset($_SERVER['HTTPS']) === true) { @@ -381,14 +377,6 @@ function quickShellSettings() } } - // Interface. - ui_print_page_header( - __('QuickShell settings'), - '', - false, - 'quickshell_settings' - ); - if ($changes > 0) { $msg = __('%d Updated', $changes); if ($critical > 0) { @@ -523,19 +511,4 @@ if (empty($agent_id) === false } } -extensions_add_godmode_menu_option( - // Name. - __('QuickShell settings'), - // Acl. - 'PM', - // FatherId. - 'gextensions', - // Icon. - 'images/ehorus/terminal.png', - // Version. - 'N/A', - // SubfatherId. - null -); - extensions_add_godmode_function('quickShellSettings'); diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index af09d9ff0d..b1f8685ada 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -316,6 +316,13 @@ if (check_acl($config['id_user'], 0, 'PM')) { $sub2['godmode/setup/setup&section=notifications']['text'] = __('Notifications'); $sub2['godmode/setup/setup&section=notifications']['refr'] = 0; + + // Enable only if quickshell is enabled. + if (function_exists('quickShellSettings') === true) { + $sub2['godmode/setup/setup&section=quickshell']['text'] = __('QuickShell'); + $sub2['godmode/setup/setup&section=quickshell']['refr'] = 0; + } + if ($config['activate_gis']) { $sub2['godmode/setup/gis']['text'] = __('Map conections GIS'); } diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index a46d7bc832..d396bbd953 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -133,6 +133,14 @@ $buttons['notifications'] = [ 'text' => ''.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'', ]; +// Enable only if quickshell is enabled. +if (function_exists('quickShellSettings') === true) { + $buttons['quickshell'] = [ + 'active' => false, + 'text' => ''.html_print_image('images/ehorus/terminal.png', true, ['title' => __('Quickshell')]).'', + ]; +} + $help_header = ''; if (enterprise_installed()) { $subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header); @@ -183,6 +191,12 @@ switch ($section) { $subpage = ' » '.__('Notifications'); break; + case 'quickshell': + $buttons['quickshell']['active'] = true; + $subpage = ' » '.__('QuickShell'); + $help_header = 'quickshell_settings'; + break; + case 'enterprise': $buttons['enterprise']['active'] = true; $subpage = ' » '.__('Enterprise'); @@ -247,6 +261,10 @@ switch ($section) { include_once $config['homedir'].'/godmode/setup/setup_notifications.php'; break; + case 'quickshell': + quickShellSettings(); + break; + default: enterprise_hook('setup_enterprise_select_tab', [$section]); break; From 5f32bfdb64d30bb725ed896a50540cc5a978f913 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 13 Dec 2019 11:58:12 +0100 Subject: [PATCH 04/19] Datatype fix - ws engine --- pandora_console/include/lib/WSManager.php | 2 +- pandora_console/ws.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/lib/WSManager.php b/pandora_console/include/lib/WSManager.php index a8144c43c0..f7ab3dbddc 100644 --- a/pandora_console/include/lib/WSManager.php +++ b/pandora_console/include/lib/WSManager.php @@ -152,7 +152,7 @@ class WSManager extends WebSocketServer */ public function __construct( $listen_addr, - $listen_port, + int $listen_port, $connected=[], $process=[], $processRaw=[], diff --git a/pandora_console/ws.php b/pandora_console/ws.php index 5eebe58aad..6c7a513185 100644 --- a/pandora_console/ws.php +++ b/pandora_console/ws.php @@ -139,7 +139,7 @@ $ws = new WSManager( // Bind address. $config['ws_bind_address'], // Bind port. - $config['ws_port'], + (int) $config['ws_port'], // Connected handlers. ['gotty' => 'proxyConnected'], // Process handlers. From bd1954ce382a9784ff85dc750642109513339321 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 13 Dec 2019 13:11:38 +0100 Subject: [PATCH 05/19] Setup Websocket engine, unified --- pandora_console/extensions/quick_shell.php | 186 +++++++++--------- pandora_console/godmode/extensions.php | 1 + pandora_console/godmode/setup/setup.php | 21 +- .../godmode/setup/setup_general.php | 44 ----- .../godmode/setup/setup_websocket_engine.php | 89 +++++++++ pandora_console/images/websocket_big.png | Bin 0 -> 7441 bytes pandora_console/images/websocket_small.png | Bin 0 -> 3486 bytes pandora_console/include/styles/pandora.css | 4 + 8 files changed, 198 insertions(+), 147 deletions(-) create mode 100644 pandora_console/godmode/setup/setup_websocket_engine.php create mode 100644 pandora_console/images/websocket_big.png create mode 100644 pandora_console/images/websocket_small.png diff --git a/pandora_console/extensions/quick_shell.php b/pandora_console/extensions/quick_shell.php index 08d002f55e..8228c9f59d 100644 --- a/pandora_console/extensions/quick_shell.php +++ b/pandora_console/extensions/quick_shell.php @@ -309,7 +309,7 @@ function quickShellSettings() } // Parser. - if (get_parameter('qs_update', false) !== false) { + if (get_parameter('update_config', false) !== false) { // Gotty settings. Internal communication (WS). $gotty = get_parameter( 'gotty', @@ -389,100 +389,104 @@ function quickShellSettings() ui_print_success_message($msg); } - // Form. - $wiz = new Wizard(); + // Form. Using old style. + echo '
'; + echo ''.__('Quickshell').''; - $wiz->printForm( - [ - 'form' => [ - 'action' => '#', - 'class' => 'wizard', - 'method' => 'post', - ], - 'inputs' => [ - [ - 'label' => __('Gotty path').ui_print_help_tip( - __('Leave blank if using an external Gotty service'), - true - ), - 'arguments' => [ - 'type' => 'text', - 'name' => 'gotty', - 'value' => $config['gotty'], - ], - ], - [ - 'label' => __('Gotty host'), - 'arguments' => [ - 'type' => 'text', - 'name' => 'gotty_host', - 'value' => $config['gotty_host'], - ], - ], - [ - 'label' => __('Gotty ssh port'), - 'arguments' => [ - 'type' => 'text', - 'name' => 'gotty_ssh_port', - 'value' => $config['gotty_ssh_port'], - ], - ], - [ - 'label' => __('Gotty telnet port'), - 'arguments' => [ - 'type' => 'text', - 'name' => 'gotty_telnet_port', - 'value' => $config['gotty_telnet_port'], - ], - ], - [ - 'toggle' => true, - 'toggle_name' => 'Advanced', - 'block_content' => [ - [ - 'label' => __('Gotty user').ui_print_help_tip( - __('Optional, set a user to access gotty service'), - true - ), - 'arguments' => [ - 'type' => 'text', - 'name' => 'gotty_user', - 'value' => $config['gotty_user'], - ], - ], - [ - 'label' => __('Gotty password').ui_print_help_tip( - __('Optional, set a password to access gotty service'), - true - ), - 'arguments' => [ - 'type' => 'password', - 'name' => 'gotty_pass', - 'value' => io_output_password($config['gotty_pass']), - ], - ], - ], - ], - [ - 'arguments' => [ - 'type' => 'hidden', - 'name' => 'qs_update', - 'value' => 1, - ], - ], - [ - 'arguments' => [ - 'type' => 'submit', - 'label' => __('Update'), - 'attributes' => 'class="sub next"', - ], - ], - ], - ], - false, + $t = new StdClass(); + $t->data = []; + $t->width = '100%'; + $t->class = 'databox filters'; + $t->data = []; + $t->style[0] = 'font-weight: bold'; + + $t->data[0][0] = __('Gotty path'); + $t->data[0][1] = html_print_input_text( + 'gotty', + $config['gotty'], + '', + 30, + 100, true ); + $t->data[1][0] = __('Gotty host'); + $t->data[1][1] = html_print_input_text( + 'gotty_host', + $config['gotty_host'], + '', + 30, + 100, + true + ); + + $t->data[2][0] = __('Gotty ssh port'); + $t->data[2][1] = html_print_input_text( + 'gotty_ssh_port', + $config['gotty_ssh_port'], + '', + 30, + 100, + true + ); + + $t->data[3][0] = __('Gotty telnet port'); + $t->data[3][1] = html_print_input_text( + 'gotty_telnet_port', + $config['gotty_telnet_port'], + '', + 30, + 100, + true + ); + + $hidden = new StdClass(); + $hidden->data = []; + $hidden->width = '100%'; + $hidden->class = 'databox filters'; + $hidden->data = []; + $hidden->style[0] = 'font-weight: bold'; + + $hidden->data[0][0] = __('Gotty user').ui_print_help_tip( + __('Optional, set a user to access gotty service'), + true + ); + $hidden->data[0][1] = html_print_input_text( + 'gotty_user', + $config['gotty_user'], + '', + 30, + 100, + true + ); + + $hidden->data[1][0] = __('Gotty password').ui_print_help_tip( + __('Optional, set a password to access gotty service'), + true + ); + $hidden->data[1][1] = html_print_input_password( + 'gotty_pass', + io_output_password($config['gotty_pass']), + '', + 30, + 100, + true + ); + + html_print_table($t); + + ui_print_toggle( + [ + 'content' => html_print_table($hidden, true), + 'name' => __('Advanced options'), + 'clean' => false, + 'main_class' => 'no-border-imp', + 'container_class' => 'no-border-imp', + ] + ); + + echo '
'; + } diff --git a/pandora_console/godmode/extensions.php b/pandora_console/godmode/extensions.php index abb41cd60e..9a86444910 100644 --- a/pandora_console/godmode/extensions.php +++ b/pandora_console/godmode/extensions.php @@ -129,6 +129,7 @@ if ($disabled != '') { $extensions = extensions_get_extension_info(); +$table = new StdClass; $table->width = '98%'; $table->head = []; diff --git a/pandora_console/godmode/setup/setup.php b/pandora_console/godmode/setup/setup.php index d396bbd953..e9b8160fdd 100644 --- a/pandora_console/godmode/setup/setup.php +++ b/pandora_console/godmode/setup/setup.php @@ -133,13 +133,10 @@ $buttons['notifications'] = [ 'text' => ''.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'', ]; -// Enable only if quickshell is enabled. -if (function_exists('quickShellSettings') === true) { - $buttons['quickshell'] = [ - 'active' => false, - 'text' => ''.html_print_image('images/ehorus/terminal.png', true, ['title' => __('Quickshell')]).'', - ]; -} +$buttons['websocket_engine'] = [ + 'active' => false, + 'text' => ''.html_print_image('images/websocket_small.png', true, ['title' => __('Websocket engine')]).'', +]; $help_header = ''; if (enterprise_installed()) { @@ -191,9 +188,9 @@ switch ($section) { $subpage = ' » '.__('Notifications'); break; - case 'quickshell': - $buttons['quickshell']['active'] = true; - $subpage = ' » '.__('QuickShell'); + case 'websocket_engine': + $buttons['websocket_engine']['active'] = true; + $subpage = ' » '.__('Pandora Websocket Engine'); $help_header = 'quickshell_settings'; break; @@ -261,8 +258,8 @@ switch ($section) { include_once $config['homedir'].'/godmode/setup/setup_notifications.php'; break; - case 'quickshell': - quickShellSettings(); + case 'websocket_engine': + include_once $config['homedir'].'/godmode/setup/setup_websocket_engine.php'; break; default: diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 46c2c00e44..def984d6af 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -403,50 +403,6 @@ html_print_table($table_mail_conf); echo ''; echo '
'; -echo ''.__('WebSocket settings').''; - -$t = new StdClass(); -$t->data = []; -$t->width = '100%'; -$t->class = 'databox filters'; -$t->data = []; -$t->style[0] = 'font-weight: bold'; - -$t->data[0][0] = __('Bind address'); -$t->data[0][1] = html_print_input_text( - 'ws_bind_address', - $config['ws_bind_address'], - '', - 30, - 100, - true -); - -$t->data[1][0] = __('Bind port'); -$t->data[1][2] = html_print_input_text( - 'ws_port', - $config['ws_port'], - '', - 30, - 100, - true -); - -$t->data[2][0] = __('WebSocket proxy url').ui_print_help_tip(__('If you had configured a wsproxy set here target URL (for instance ws://your.public.fqdn/ws).'), true); -$t->data[2][2] = html_print_input_text( - 'ws_proxy_url', - $config['ws_proxy_url'], - '', - 30, - 100, - true -); - -html_print_input_hidden('update_config', 1); -html_print_table($t); - - -echo '
'; echo '
'; html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"'); diff --git a/pandora_console/godmode/setup/setup_websocket_engine.php b/pandora_console/godmode/setup/setup_websocket_engine.php new file mode 100644 index 0000000000..4dec1ac9e7 --- /dev/null +++ b/pandora_console/godmode/setup/setup_websocket_engine.php @@ -0,0 +1,89 @@ +'; + +echo '
'; +echo ''.__('WebSocket settings').''; + +$t = new StdClass(); +$t->data = []; +$t->width = '100%'; +$t->class = 'databox filters'; +$t->data = []; +$t->style[0] = 'font-weight: bold'; + +$t->data[0][0] = __('Bind address'); +$t->data[0][1] = html_print_input_text( + 'ws_bind_address', + $config['ws_bind_address'], + '', + 30, + 100, + true +); + +$t->data[1][0] = __('Bind port'); +$t->data[1][2] = html_print_input_text( + 'ws_port', + $config['ws_port'], + '', + 30, + 100, + true +); + +$t->data[2][0] = __('WebSocket proxy url').ui_print_help_tip(__('If you had configured a wsproxy set here target URL (for instance ws://your.public.fqdn/ws).'), true); +$t->data[2][2] = html_print_input_text( + 'ws_proxy_url', + $config['ws_proxy_url'], + '', + 30, + 100, + true +); + +html_print_input_hidden('update_config', 1); +html_print_table($t); + + +echo '
'; + +quickShellSettings(); + + +echo '
'; +html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"'); +echo '
'; +echo ''; diff --git a/pandora_console/images/websocket_big.png b/pandora_console/images/websocket_big.png new file mode 100644 index 0000000000000000000000000000000000000000..0caac15bb8008f468e07a25d5db8a4ade9f3d567 GIT binary patch literal 7441 zcmd^@c{J4jyTCs)24igoiL#8blp;&AC5FbnWGhSdUDVh`mXU1`Eh5Sm5m_Q3TL?{y zY-tfn$dWx|jr*QS-#_lX=bn4+@0@$?Id{&P^Lc;X&-1*V=l#5&=lz+_#2FfBvM}yv zgdm7TTMKUtL2xjHLr6MsS-#Y_0p_`bP0js`?E^7hJ_HwcPiKr@ke4&Y`I5T}1YP<( zn{IJaP=OV{6BMtYh8n!q`o4r9NzSI%&=M8RfB1TCox4)|jHnP@4aCDr?>yeLV>xcS zweD8ADDd6fL1}HNeP23X6M>d7sspCwqsc46Pxt6%FFBLwXz7zgeH~FmGIIVAMZ@OJHub$)_|(= zb|Sp%uCVv1iB-3W+llCMZ(@8D(w8@y;k}%<_@mmq<;WXzLTqV3f9<28fa*zSosq-6 z?X%T0H#w#Td~Iw4w4cYeI&Xb&-ap}%x@j|GQ!}$t_qIey%(`7Vy>4Ul&DM|c(>5-p zWg?F?pAE!^#$j(?D4bZ%w2^Nsdqc24u=cBtes*!#JeIyy)^{8>-P0**S#JBuXP_%7 zEMl5_?}z)|`ouW%6Xo2~3(e?KCfUz|aY7yyjxSVGG82}17lu&LkuCc=ZZ@?-dla+ZIy35DJ4vMZ$97lIUs;dsm-+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gdg32;bRa{vGf6951U69E94oEQKA00(qQO+^Re3=In{6kR))BLDya zlu1NER5;7k)xB#~K@i5_Cn~7eij{KIPC>AVU@@H}0iyvCD=kE$`3pp_7Hfk9g0Z%; zHfV&%*a%*OA7Jfm1ho^Q0a2U1u;%7|l^IxA-hI!Ho!QwvY?l~|h*LxO-e=~oVWGQl z5{m31d(F@xhw zXdRPP2B$Y2xhVZxZT+}raG5ls8^~7 z^l*V49O1=V#ih*rHrC5gu4m%V2;enLjP-Lw#1Y)WpAo div { + border: none !important; +} .no-padding { padding: 0; } From ad6ea431bf8619cec70560a7d2e6ef711316b89a Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 13 Dec 2019 13:13:09 +0100 Subject: [PATCH 06/19] minor fix, hide quickshell settings while disabled --- pandora_console/godmode/setup/setup_websocket_engine.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/setup/setup_websocket_engine.php b/pandora_console/godmode/setup/setup_websocket_engine.php index 4dec1ac9e7..2fcfaec302 100644 --- a/pandora_console/godmode/setup/setup_websocket_engine.php +++ b/pandora_console/godmode/setup/setup_websocket_engine.php @@ -80,8 +80,9 @@ html_print_table($t); echo ''; -quickShellSettings(); - +if (function_exists('quickShellSettings') === true) { + quickShellSettings(); +} echo '
'; html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"'); From a558152cb2fd1951d08e38739c890dc1e55b45b2 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 13 Dec 2019 13:20:44 +0100 Subject: [PATCH 07/19] minor fix --- .../godmode/setup/setup_websocket_engine.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/setup/setup_websocket_engine.php b/pandora_console/godmode/setup/setup_websocket_engine.php index 2fcfaec302..fecc60a33c 100644 --- a/pandora_console/godmode/setup/setup_websocket_engine.php +++ b/pandora_console/godmode/setup/setup_websocket_engine.php @@ -64,7 +64,10 @@ $t->data[1][2] = html_print_input_text( true ); -$t->data[2][0] = __('WebSocket proxy url').ui_print_help_tip(__('If you had configured a wsproxy set here target URL (for instance ws://your.public.fqdn/ws).'), true); +$t->data[2][0] = __('WebSocket proxy url').ui_print_help_tip( + __('If you had configured a wsproxy set here target URL (for instance ws://your.public.fqdn/ws).'), + true +); $t->data[2][2] = html_print_input_text( 'ws_proxy_url', $config['ws_proxy_url'], @@ -84,7 +87,12 @@ if (function_exists('quickShellSettings') === true) { quickShellSettings(); } -echo '
'; -html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"'); +echo '
'; +html_print_submit_button( + __('Update'), + 'update_button', + false, + 'class="sub upd"' +); echo '
'; echo ''; From b38c396837d93eedf550e4fec0dd4642bcc6458c Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Fri, 13 Dec 2019 13:40:19 +0100 Subject: [PATCH 08/19] Change date in hover in compact mode --- pandora_console/godmode/setup/setup_visuals.php | 2 +- pandora_console/include/functions_ui.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index e07326fe6e..a5355ce148 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -1180,7 +1180,7 @@ $row++; $compact = true; } - $table_other->data[$row][0] = __('Timestamp, time comparation, or Compact mode'); + $table_other->data[$row][0] = __('Timestamp, time comparison, or compact mode'); $table_other->data[$row][1] = '
'; $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'comparation', __('Comparation in rollover'), $comparation, true); $table_other->data[$row][1] .= html_print_radio_button('prominent_time', 'timestamp', __('Timestamp in rollover'), $timestamp, true); diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 9f897767df..f4c9a8b1d4 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -537,7 +537,7 @@ function ui_print_timestamp($unixtime, $return=false, $option=[]) ); } else if ($prominent == 'compact') { $units = 'tiny'; - $title = human_time_comparation($unixtime); + $title = date($config['date_format'], $unixtime); $data = human_time_comparation($unixtime, $units); } else { $title = date($config['date_format'], $unixtime); From d30c2c9b3b1c956e7a8c92dc89695b01807aeba4 Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Fri, 13 Dec 2019 14:17:25 +0100 Subject: [PATCH 09/19] Fix bug when updating ACL IP list --- pandora_console/include/functions_config.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 429c740dfd..0e4dd9940d 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1911,14 +1911,6 @@ function config_process_config() * Parse the ACL IP list for access API */ - $temp_list_ACL_IPs_for_API = []; - if (isset($config['list_ACL_IPs_for_API'])) { - if (!empty($config['list_ACL_IPs_for_API'])) { - $temp_list_ACL_IPs_for_API = explode(';', $config['list_ACL_IPs_for_API']); - } - } - - $config['list_ACL_IPs_for_API'] = $temp_list_ACL_IPs_for_API; $keysConfig = array_keys($config); /* @@ -2976,6 +2968,15 @@ function config_process_config() // Finally, check if any value was overwritten in a form. config_update_config(); + + $temp_list_ACL_IPs_for_API = []; + if (isset($config['list_ACL_IPs_for_API'])) { + if (!empty($config['list_ACL_IPs_for_API'])) { + $temp_list_ACL_IPs_for_API = explode(';', $config['list_ACL_IPs_for_API']); + } + } + + $config['list_ACL_IPs_for_API'] = $temp_list_ACL_IPs_for_API; } From a203da5a26f6b2613808fa88cebdcbf5676f69da Mon Sep 17 00:00:00 2001 From: Daniel Barbero Date: Fri, 13 Dec 2019 16:01:24 +0100 Subject: [PATCH 10/19] Fixed errors --- pandora_console/include/chart_generator.php | 2 +- pandora_console/include/functions.php | 12 ++++--- .../include/functions_reporting.php | 32 +++++++++---------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php index 79242ace64..6ca2caa53b 100644 --- a/pandora_console/include/chart_generator.php +++ b/pandora_console/include/chart_generator.php @@ -101,7 +101,7 @@ $params = json_decode($_REQUEST['data'], true); // Metaconsole connection to the node. $server_id = $params['server_id']; -if ($config['metaconsole'] && !empty($server_id)) { +if (is_metaconsole() && !empty($server_id)) { $server = metaconsole_get_connection_by_id($server_id); // Error connecting. if (metaconsole_connect($server) !== NOERR) { diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index a3cbaabdf4..f2e350dc8f 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -3851,9 +3851,11 @@ function generator_chart_to_pdf($type_graph_pdf, $params, $params_combined=false $file_js = $config['homedir'].'/include/web2image.js'; $url = ui_get_full_url(false).$hack_metaconsole.'/include/chart_generator.php'; - $img_file = 'img_'.uniqid().'.png'; - $img_path = $config['homedir'].'/attachment/'.$img_file; - $img_url = ui_get_full_url(false).$hack_metaconsole.'/attachment/'.$img_file; + if (!$params['return_img_base_64']) { + $img_file = 'img_'.uniqid().'.png'; + $img_path = $config['homedir'].'/attachment/'.$img_file; + $img_url = ui_get_full_url(false).$hack_metaconsole.'/attachment/'.$img_file; + } $width_img = 500; @@ -3866,8 +3868,8 @@ function generator_chart_to_pdf($type_graph_pdf, $params, $params_combined=false } if ($type_graph_pdf === 'slicebar') { - $height_img = 70; - $params['height'] = 70; + $height_img = 90; + $params['height'] = 90; } $params_encode_json = urlencode(json_encode($params)); diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 2f1c481679..3dd290e59e 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -291,16 +291,18 @@ function reporting_make_reporting_data( $agents_to_macro = $content['id_agent']; } - // Metaconsole connection. - if (is_metaconsole()) { - $server = metaconsole_get_connection_names(); - $connection = metaconsole_get_connection($server); - if (metaconsole_connect($connection) != NOERR) { - continue; - } - } - if (isset($content['style']['name_label'])) { + $server_name = $content['server_name']; + $metaconsole_on = is_metaconsole(); + + // Metaconsole connection. + if ($metaconsole_on && $server_name != '') { + $connection = metaconsole_get_connection($server_name); + if (!metaconsole_load_external_db($connection)) { + continue; + } + } + // Add macros name. $items_label = []; $items_label['type'] = $content['type']; @@ -309,8 +311,6 @@ function reporting_make_reporting_data( $items_label['modules'] = $modules_to_macro; $items_label['agents'] = $agents_to_macro; $items_label['visual_format'] = $visual_format; - $metaconsole_on = is_metaconsole(); - $server_name = $content['server_name']; $items_label['agent_description'] = agents_get_description( $content['id_agent'] @@ -7551,12 +7551,10 @@ function reporting_custom_graph( if ($type_report == 'custom_graph') { if (is_metaconsole()) { - $servers = metaconsole_get_connection_names(); - foreach ($servers as $server) { - $connection = metaconsole_get_connection($server); - if (metaconsole_connect($connection) != NOERR) { - continue; - } + $id_meta = metaconsole_get_id_server($content['server_name']); + $server = metaconsole_get_connection_by_id($id_meta); + if (metaconsole_connect($server) != NOERR) { + return false; } } } From e43d8914aa83fa1c43d2ad04fc9e4329ded7afa3 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 16 Dec 2019 10:46:37 +0100 Subject: [PATCH 11/19] RPMBUILD console updated with gotty binary file --- extras/build_rpm.sh | 12 ++++++++++++ extras/build_rpm_redhat.sh | 12 ++++++++++++ extras/build_rpm_rhel7.sh | 16 ++++++++++++++-- pandora_console/pandora_console.redhat.spec | 4 ++++ pandora_console/pandora_console.rhel7.spec | 4 ++++ pandora_console/pandora_console.spec | 4 ++++ 6 files changed, 50 insertions(+), 2 deletions(-) diff --git a/extras/build_rpm.sh b/extras/build_rpm.sh index f523eeaa7d..054434de71 100755 --- a/extras/build_rpm.sh +++ b/extras/build_rpm.sh @@ -8,8 +8,20 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console +# Extra files to be added to rpm. +if [ "$X86_64" == "" ]; then + # Fake gotty. + echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty + chmod +x pandora_console/gotty +else + cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ +fi + rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1 +# Cleanup. +rm -f pandora_console/gotty + # Server rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1 diff --git a/extras/build_rpm_redhat.sh b/extras/build_rpm_redhat.sh index 7f45bc6773..001120ae4d 100755 --- a/extras/build_rpm_redhat.sh +++ b/extras/build_rpm_redhat.sh @@ -8,8 +8,20 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console +# Extra files to be added to rpm. +if [ "$X86_64" == "" ]; then + # Fake gotty. + echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty + chmod +x pandora_console/gotty +else + cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ +fi + rpmbuild -ba $CODEHOME/pandora_console/pandora_console.redhat.spec || exit 1 +# Cleanup. +rm -f pandora_console/gotty + # Server rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1 diff --git a/extras/build_rpm_rhel7.sh b/extras/build_rpm_rhel7.sh index 3684bd42e5..9ddb0aedf7 100755 --- a/extras/build_rpm_rhel7.sh +++ b/extras/build_rpm_rhel7.sh @@ -8,13 +8,25 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console +# Extra files to be added to rpm. +if [ "$X86_64" == "" ]; then + # Fake gotty. + echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty + chmod +x pandora_console/gotty +else + cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ +fi + rpmbuild -ba $CODEHOME/pandora_console/pandora_console.rhel7.spec || exit 1 +# Cleanup. +rm -f pandora_console/gotty + # Server -#rpmbuild -ba $CODEHOME/pandora_server/pandora_server.rhel7.spec || exit 1 +rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1 # Unix agent -#rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.rhel7.spec || exit 1 +rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec || exit 1 # Enterprise console rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1 diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index 1d2c818edf..a9e4dc262a 100644 --- a/pandora_console/pandora_console.redhat.spec +++ b/pandora_console/pandora_console.redhat.spec @@ -57,6 +57,10 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l rm -rf $RPM_BUILD_ROOT %post +# Install GoTTY binary file. +cp -pf %{prefix}/pandora_console/gotty /usr/bin/ +chmod +x /usr/bin/gotty + # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine diff --git a/pandora_console/pandora_console.rhel7.spec b/pandora_console/pandora_console.rhel7.spec index d74a29fa16..f8aab6db42 100644 --- a/pandora_console/pandora_console.rhel7.spec +++ b/pandora_console/pandora_console.rhel7.spec @@ -57,6 +57,10 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l rm -rf $RPM_BUILD_ROOT %post +# Install GoTTY binary file. +cp -pf %{prefix}/pandora_console/gotty /usr/bin/ +chmod +x /usr/bin/gotty + # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec index 96594c4f5b..8017b1f295 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -58,6 +58,10 @@ fi rm -rf $RPM_BUILD_ROOT %post +# Install GoTTY binary file. +cp -pf %{prefix}/pandora_console/gotty /usr/bin/ +chmod +x /usr/bin/gotty + # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine From d370fa560a86cb78f91fad53949a49d59cc847bf Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 16 Dec 2019 10:51:24 +0100 Subject: [PATCH 12/19] DEBIAN console updated with gotty binary file --- extras/build_deb.sh | 11 +++++++++++ pandora_console/DEBIAN/postinst | 3 +++ 2 files changed, 14 insertions(+) diff --git a/extras/build_deb.sh b/extras/build_deb.sh index 788eb72536..543469d473 100755 --- a/extras/build_deb.sh +++ b/extras/build_deb.sh @@ -8,8 +8,19 @@ fi echo "Creating DEB packages in $RPMHOME/DEB" # Console +# Extra files to be added to rpm. +if [ "$X86_64" == "" ]; then + # Fake gotty. + echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty + chmod +x pandora_console/gotty +else + cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ +fi cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1 +# Cleanup. +rm -f pandora_console/gotty + # Server cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1 diff --git a/pandora_console/DEBIAN/postinst b/pandora_console/DEBIAN/postinst index a899c6bf0a..f6fe667ff5 100755 --- a/pandora_console/DEBIAN/postinst +++ b/pandora_console/DEBIAN/postinst @@ -10,6 +10,9 @@ if [ -f /etc/init.d/apache2 ]; then echo Restart the apache. /etc/init.d/apache2 restart fi +# Install GoTTY binary file. +cp -pf %{prefix}/pandora_console/gotty /usr/bin/ +chmod +x /usr/bin/gotty # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ From 79cad3eaa97c7cc01ad2effed24f92f6a48bda9f Mon Sep 17 00:00:00 2001 From: artica Date: Mon, 16 Dec 2019 11:43:58 +0100 Subject: [PATCH 13/19] Updated version and build strings. --- pandora_agents/pc/AIX/pandora_agent.conf | 2 +- pandora_agents/pc/FreeBSD/pandora_agent.conf | 2 +- pandora_agents/pc/HP-UX/pandora_agent.conf | 2 +- pandora_agents/pc/Linux/pandora_agent.conf | 2 +- pandora_agents/pc/NT4/pandora_agent.conf | 2 +- pandora_agents/pc/SunOS/pandora_agent.conf | 2 +- pandora_agents/pc/Win32/pandora_agent.conf | 2 +- pandora_agents/shellscript/aix/pandora_agent.conf | 2 +- pandora_agents/shellscript/bsd-ipso/pandora_agent.conf | 2 +- pandora_agents/shellscript/hp-ux/pandora_agent.conf | 2 +- pandora_agents/shellscript/linux/pandora_agent.conf | 2 +- pandora_agents/shellscript/mac_osx/pandora_agent.conf | 2 +- pandora_agents/shellscript/openWRT/pandora_agent.conf | 2 +- pandora_agents/shellscript/solaris/pandora_agent.conf | 2 +- pandora_agents/unix/AIX/pandora_agent.conf | 2 +- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/Darwin/pandora_agent.conf | 2 +- pandora_agents/unix/FreeBSD/pandora_agent.conf | 2 +- pandora_agents/unix/HP-UX/pandora_agent.conf | 2 +- pandora_agents/unix/Linux/pandora_agent.conf | 2 +- pandora_agents/unix/NT4/pandora_agent.conf | 2 +- pandora_agents/unix/NetBSD/pandora_agent.conf | 2 +- pandora_agents/unix/SunOS/pandora_agent.conf | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 4 ++-- pandora_agents/unix/pandora_agent.spec | 4 ++-- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/bin/pandora_agent.conf | 2 +- pandora_agents/win32/installer/pandora.mpi | 4 ++-- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 4 ++-- pandora_console/pandora_console.rhel7.spec | 4 ++-- pandora_console/pandora_console.spec | 4 ++-- pandora_console/pandora_console_install | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/conf/pandora_server.conf.new | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 4 ++-- pandora_server/pandora_server.spec | 4 ++-- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 50 files changed, 58 insertions(+), 58 deletions(-) diff --git a/pandora_agents/pc/AIX/pandora_agent.conf b/pandora_agents/pc/AIX/pandora_agent.conf index bf26d33be8..b242e667c1 100644 --- a/pandora_agents/pc/AIX/pandora_agent.conf +++ b/pandora_agents/pc/AIX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/FreeBSD/pandora_agent.conf b/pandora_agents/pc/FreeBSD/pandora_agent.conf index fffddfa142..4fd4b92596 100644 --- a/pandora_agents/pc/FreeBSD/pandora_agent.conf +++ b/pandora_agents/pc/FreeBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, FreeBSD Version +# Version 7.0NG.742, FreeBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/HP-UX/pandora_agent.conf b/pandora_agents/pc/HP-UX/pandora_agent.conf index 3d22eafb0e..e0af4e7490 100644 --- a/pandora_agents/pc/HP-UX/pandora_agent.conf +++ b/pandora_agents/pc/HP-UX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, HP-UX Version +# Version 7.0NG.742, HP-UX Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/Linux/pandora_agent.conf b/pandora_agents/pc/Linux/pandora_agent.conf index 01359f33f5..fe67398b8a 100644 --- a/pandora_agents/pc/Linux/pandora_agent.conf +++ b/pandora_agents/pc/Linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/NT4/pandora_agent.conf b/pandora_agents/pc/NT4/pandora_agent.conf index ab8a35f9f8..092436f485 100644 --- a/pandora_agents/pc/NT4/pandora_agent.conf +++ b/pandora_agents/pc/NT4/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/SunOS/pandora_agent.conf b/pandora_agents/pc/SunOS/pandora_agent.conf index 90c1ba02a1..a2162ac29f 100644 --- a/pandora_agents/pc/SunOS/pandora_agent.conf +++ b/pandora_agents/pc/SunOS/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, Solaris Version +# Version 7.0NG.742, Solaris Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/Win32/pandora_agent.conf b/pandora_agents/pc/Win32/pandora_agent.conf index 61eab4edeb..e582bbd963 100644 --- a/pandora_agents/pc/Win32/pandora_agent.conf +++ b/pandora_agents/pc/Win32/pandora_agent.conf @@ -1,6 +1,6 @@ # Base config file for Pandora FMS Windows Agent # (c) 2006-2010 Artica Soluciones Tecnologicas -# Version 7.0NG.741 +# Version 7.0NG.742 # This program is Free Software, you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free Software diff --git a/pandora_agents/shellscript/aix/pandora_agent.conf b/pandora_agents/shellscript/aix/pandora_agent.conf index 3409d48740..80762acbb7 100644 --- a/pandora_agents/shellscript/aix/pandora_agent.conf +++ b/pandora_agents/shellscript/aix/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # General Parameters # ================== diff --git a/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf b/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf index b8306e30c3..4ac18ede49 100644 --- a/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf +++ b/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741 +# Version 7.0NG.742 # FreeBSD/IPSO version # Licenced under GPL licence, 2003-2007 Sancho Lerena diff --git a/pandora_agents/shellscript/hp-ux/pandora_agent.conf b/pandora_agents/shellscript/hp-ux/pandora_agent.conf index 15d2dab2d4..925081e62c 100644 --- a/pandora_agents/shellscript/hp-ux/pandora_agent.conf +++ b/pandora_agents/shellscript/hp-ux/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, HPUX Version +# Version 7.0NG.742, HPUX Version # General Parameters # ================== diff --git a/pandora_agents/shellscript/linux/pandora_agent.conf b/pandora_agents/shellscript/linux/pandora_agent.conf index dbe433408f..68ced2a378 100644 --- a/pandora_agents/shellscript/linux/pandora_agent.conf +++ b/pandora_agents/shellscript/linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # (c) 2003-2010 Artica Soluciones Tecnologicas # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/mac_osx/pandora_agent.conf b/pandora_agents/shellscript/mac_osx/pandora_agent.conf index 4ad2f0d8df..495c2516d4 100644 --- a/pandora_agents/shellscript/mac_osx/pandora_agent.conf +++ b/pandora_agents/shellscript/mac_osx/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # (c) 2003-2009 Artica Soluciones Tecnologicas # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/openWRT/pandora_agent.conf b/pandora_agents/shellscript/openWRT/pandora_agent.conf index 594f626617..f18f326a05 100644 --- a/pandora_agents/shellscript/openWRT/pandora_agent.conf +++ b/pandora_agents/shellscript/openWRT/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/solaris/pandora_agent.conf b/pandora_agents/shellscript/solaris/pandora_agent.conf index eace98cb90..e319d9695f 100644 --- a/pandora_agents/shellscript/solaris/pandora_agent.conf +++ b/pandora_agents/shellscript/solaris/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, Solaris version +# Version 7.0NG.742, Solaris version # General Parameters # ================== diff --git a/pandora_agents/unix/AIX/pandora_agent.conf b/pandora_agents/unix/AIX/pandora_agent.conf index 2a02b6133f..604509d18d 100644 --- a/pandora_agents/unix/AIX/pandora_agent.conf +++ b/pandora_agents/unix/AIX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 5e8c5557ea..9b2e9bf9d1 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.741-191216 +Version: 7.0NG.742 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 f67f7df6d8..82745deed0 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.741-191216" +pandora_version="7.0NG.742" 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/Darwin/pandora_agent.conf b/pandora_agents/unix/Darwin/pandora_agent.conf index adf05bac05..1daa7b6ddc 100644 --- a/pandora_agents/unix/Darwin/pandora_agent.conf +++ b/pandora_agents/unix/Darwin/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2012 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/FreeBSD/pandora_agent.conf b/pandora_agents/unix/FreeBSD/pandora_agent.conf index e5e3a2cc1b..e8d62cc68f 100644 --- a/pandora_agents/unix/FreeBSD/pandora_agent.conf +++ b/pandora_agents/unix/FreeBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, FreeBSD Version +# Version 7.0NG.742, FreeBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2016 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/HP-UX/pandora_agent.conf b/pandora_agents/unix/HP-UX/pandora_agent.conf index 409f06034b..05770c02aa 100644 --- a/pandora_agents/unix/HP-UX/pandora_agent.conf +++ b/pandora_agents/unix/HP-UX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, HP-UX Version +# Version 7.0NG.742, HP-UX Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 6340281c06..3aafa0fc85 100644 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2014 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/NT4/pandora_agent.conf b/pandora_agents/unix/NT4/pandora_agent.conf index c27a3f2da2..a99efbc9c8 100644 --- a/pandora_agents/unix/NT4/pandora_agent.conf +++ b/pandora_agents/unix/NT4/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/NetBSD/pandora_agent.conf b/pandora_agents/unix/NetBSD/pandora_agent.conf index ab0ca2ad46..228d95c9f1 100644 --- a/pandora_agents/unix/NetBSD/pandora_agent.conf +++ b/pandora_agents/unix/NetBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, NetBSD Version +# Version 7.0NG.742, NetBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/SunOS/pandora_agent.conf b/pandora_agents/unix/SunOS/pandora_agent.conf index 4b6654b6ef..7fc6e08f1d 100644 --- a/pandora_agents/unix/SunOS/pandora_agent.conf +++ b/pandora_agents/unix/SunOS/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, Solaris Version +# Version 7.0NG.742, Solaris Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index d47366fc63..044c66f77f 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -54,7 +54,7 @@ my $Sem = undef; # Semaphore used to control the number of threads my $ThreadSem = undef; -use constant AGENT_VERSION => '7.0NG.741'; +use constant AGENT_VERSION => '7.0NG.742'; use constant AGENT_BUILD => '191216'; # Agent log default file size maximum and instances diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index 92c4c50f60..07e664663b 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -2,8 +2,8 @@ #Pandora FMS Linux Agent # %define name pandorafms_agent_unix -%define version 7.0NG.741 -%define release 191216 +%define version 7.0NG.742 +%define release 1 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 2a3685a78a..8327d8401a 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -2,8 +2,8 @@ #Pandora FMS Linux Agent # %define name pandorafms_agent_unix -%define version 7.0NG.741 -%define release 191216 +%define version 7.0NG.742 +%define release 1 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 9419542f26..66ec9cce29 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -9,7 +9,7 @@ # Please see http://www.pandorafms.org. This code is licensed under GPL 2.0 license. # ********************************************************************** -PI_VERSION="7.0NG.741" +PI_VERSION="7.0NG.742" PI_BUILD="191216" OS_NAME=`uname -s` diff --git a/pandora_agents/win32/bin/pandora_agent.conf b/pandora_agents/win32/bin/pandora_agent.conf index 8b51fc94f1..3e519fa738 100644 --- a/pandora_agents/win32/bin/pandora_agent.conf +++ b/pandora_agents/win32/bin/pandora_agent.conf @@ -1,6 +1,6 @@ # Base config file for Pandora FMS Windows Agent # (c) 2006-2017 Artica Soluciones Tecnologicas -# Version 7.0NG.741 +# Version 7.0NG.742 # This program is Free Software, you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free Software diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 69f4979360..fd13c838a3 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -3,7 +3,7 @@ AllowLanguageSelection {Yes} AppName -{Pandora FMS Windows Agent v7.0NG.741} +{Pandora FMS Windows Agent v7.0NG.742} ApplicationID {17E3D2CF-CA02-406B-8A80-9D31C17BD08F} @@ -2387,7 +2387,7 @@ Windows,BuildSeparateArchives {No} Windows,Executable -{<%AppName%>-<%Version%>-Setup<%Ext%>} +{<%AppName%>-Setup<%Ext%>} Windows,FileDescription {<%AppName%> <%Version%> Setup} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index c6cd764212..e02765f1a2 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.741(Build 191216)") +#define PANDORA_VERSION ("7.0NG.742(Build 191216)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index bac4f5bfb6..27f352a4e7 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", "(7.0NG.741(Build 191216))" + VALUE "ProductVersion", "(7.0NG.742(Build 191216))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 3e2057f671..6ad2a6df2b 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.741-191216 +Version: 7.0NG.742 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 f8c38969f7..7d8b4cc557 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.741-191216" +pandora_version="7.0NG.742" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 46ee41ed64..fae97667d2 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -21,7 +21,7 @@ * Pandora build version and version */ $build_version = 'PC191216'; -$pandora_version = 'v7.0NG.741'; +$pandora_version = 'v7.0NG.742'; // Do not overwrite default timezone set if defined. $script_tz = @date_default_timezone_get(); diff --git a/pandora_console/install.php b/pandora_console/install.php index 9322aa7ff5..fb95696ce2 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -128,7 +128,7 @@
Date: Mon, 16 Dec 2019 12:16:21 +0100 Subject: [PATCH 14/19] Revert "RPMBUILD console updated with gotty binary file" Undo Gotty in Pandora Console RPM This reverts commit e43d8914aa83fa1c43d2ad04fc9e4329ded7afa3. --- extras/build_rpm.sh | 12 ------------ extras/build_rpm_redhat.sh | 12 ------------ extras/build_rpm_rhel7.sh | 16 ++-------------- pandora_console/pandora_console.redhat.spec | 4 ---- pandora_console/pandora_console.rhel7.spec | 4 ---- pandora_console/pandora_console.spec | 4 ---- 6 files changed, 2 insertions(+), 50 deletions(-) diff --git a/extras/build_rpm.sh b/extras/build_rpm.sh index 054434de71..f523eeaa7d 100755 --- a/extras/build_rpm.sh +++ b/extras/build_rpm.sh @@ -8,20 +8,8 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console -# Extra files to be added to rpm. -if [ "$X86_64" == "" ]; then - # Fake gotty. - echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty - chmod +x pandora_console/gotty -else - cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ -fi - rpmbuild -ba $CODEHOME/pandora_console/pandora_console.spec || exit 1 -# Cleanup. -rm -f pandora_console/gotty - # Server rpmbuild -ba $CODEHOME/pandora_server/pandora_server.spec || exit 1 diff --git a/extras/build_rpm_redhat.sh b/extras/build_rpm_redhat.sh index 001120ae4d..7f45bc6773 100755 --- a/extras/build_rpm_redhat.sh +++ b/extras/build_rpm_redhat.sh @@ -8,20 +8,8 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console -# Extra files to be added to rpm. -if [ "$X86_64" == "" ]; then - # Fake gotty. - echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty - chmod +x pandora_console/gotty -else - cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ -fi - rpmbuild -ba $CODEHOME/pandora_console/pandora_console.redhat.spec || exit 1 -# Cleanup. -rm -f pandora_console/gotty - # Server rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1 diff --git a/extras/build_rpm_rhel7.sh b/extras/build_rpm_rhel7.sh index 9ddb0aedf7..3684bd42e5 100755 --- a/extras/build_rpm_rhel7.sh +++ b/extras/build_rpm_rhel7.sh @@ -8,25 +8,13 @@ fi echo "Creating RPM packages in $RPMHOME/RPMS" # Console -# Extra files to be added to rpm. -if [ "$X86_64" == "" ]; then - # Fake gotty. - echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty - chmod +x pandora_console/gotty -else - cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ -fi - rpmbuild -ba $CODEHOME/pandora_console/pandora_console.rhel7.spec || exit 1 -# Cleanup. -rm -f pandora_console/gotty - # Server -rpmbuild -ba $CODEHOME/pandora_server/pandora_server.redhat.spec || exit 1 +#rpmbuild -ba $CODEHOME/pandora_server/pandora_server.rhel7.spec || exit 1 # Unix agent -rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec || exit 1 +#rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.rhel7.spec || exit 1 # Enterprise console rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1 diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index a9e4dc262a..1d2c818edf 100644 --- a/pandora_console/pandora_console.redhat.spec +++ b/pandora_console/pandora_console.redhat.spec @@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l rm -rf $RPM_BUILD_ROOT %post -# Install GoTTY binary file. -cp -pf %{prefix}/pandora_console/gotty /usr/bin/ -chmod +x /usr/bin/gotty - # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine diff --git a/pandora_console/pandora_console.rhel7.spec b/pandora_console/pandora_console.rhel7.spec index f8aab6db42..d74a29fa16 100644 --- a/pandora_console/pandora_console.rhel7.spec +++ b/pandora_console/pandora_console.rhel7.spec @@ -57,10 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l rm -rf $RPM_BUILD_ROOT %post -# Install GoTTY binary file. -cp -pf %{prefix}/pandora_console/gotty /usr/bin/ -chmod +x /usr/bin/gotty - # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec index 8017b1f295..96594c4f5b 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -58,10 +58,6 @@ fi rm -rf $RPM_BUILD_ROOT %post -# Install GoTTY binary file. -cp -pf %{prefix}/pandora_console/gotty /usr/bin/ -chmod +x /usr/bin/gotty - # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ chmod +x /etc/init.d/pandora_websocket_engine From 89b97e340e5fd353e81fee052783263c00b179fd Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 16 Dec 2019 12:16:42 +0100 Subject: [PATCH 15/19] Revert "DEBIAN console updated with gotty binary file" Undo GoTTY in Pandora Console DEB packages This reverts commit d370fa560a86cb78f91fad53949a49d59cc847bf. --- extras/build_deb.sh | 11 ----------- pandora_console/DEBIAN/postinst | 3 --- 2 files changed, 14 deletions(-) diff --git a/extras/build_deb.sh b/extras/build_deb.sh index 543469d473..788eb72536 100755 --- a/extras/build_deb.sh +++ b/extras/build_deb.sh @@ -8,19 +8,8 @@ fi echo "Creating DEB packages in $RPMHOME/DEB" # Console -# Extra files to be added to rpm. -if [ "$X86_64" == "" ]; then - # Fake gotty. - echo 'Only x86_64 is supported' > $CODEHOME/pandora_console/gotty - chmod +x pandora_console/gotty -else - cp /root/bin/winexe/x64/gotty $CODEHOME/pandora_console/ -fi cd $CODEHOME/pandora_console/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1 -# Cleanup. -rm -f pandora_console/gotty - # Server cd $CODEHOME/pandora_server/DEBIAN && bash ./make_deb_package.sh && mv ../*.deb $RPMHOME/DEB || exit 1 diff --git a/pandora_console/DEBIAN/postinst b/pandora_console/DEBIAN/postinst index f6fe667ff5..a899c6bf0a 100755 --- a/pandora_console/DEBIAN/postinst +++ b/pandora_console/DEBIAN/postinst @@ -10,9 +10,6 @@ if [ -f /etc/init.d/apache2 ]; then echo Restart the apache. /etc/init.d/apache2 restart fi -# Install GoTTY binary file. -cp -pf %{prefix}/pandora_console/gotty /usr/bin/ -chmod +x /usr/bin/gotty # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ From abd2213e71168360b8298a79917f573c8a70a03a Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 16 Dec 2019 15:42:54 +0100 Subject: [PATCH 16/19] Menu entry for websocket engine settings --- pandora_console/godmode/menu.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index b1f8685ada..14b66eda3c 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -316,12 +316,8 @@ if (check_acl($config['id_user'], 0, 'PM')) { $sub2['godmode/setup/setup&section=notifications']['text'] = __('Notifications'); $sub2['godmode/setup/setup&section=notifications']['refr'] = 0; - - // Enable only if quickshell is enabled. - if (function_exists('quickShellSettings') === true) { - $sub2['godmode/setup/setup&section=quickshell']['text'] = __('QuickShell'); - $sub2['godmode/setup/setup&section=quickshell']['refr'] = 0; - } + $sub2['godmode/setup/setup&section=websocket_engine']['text'] = __('Websocket Engine'); + $sub2['godmode/setup/setup&section=websocket_engine']['refr'] = 0; if ($config['activate_gis']) { $sub2['godmode/setup/gis']['text'] = __('Map conections GIS'); From 8bde504fc23125c1bb38833f6b10eba0a47fd16e Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 16 Dec 2019 15:50:21 +0100 Subject: [PATCH 17/19] Fixed item sql --- .../reporting_builder.item_editor.php | 2 +- .../include/functions_reporting.php | 42 ++++--------------- 2 files changed, 8 insertions(+), 36 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 4bfe60814b..f95ba7cee9 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -1856,7 +1856,7 @@ $class = 'databox filters'; 'combo_server', $server_name, '', - __('Select server'), + __('Local metaconsole'), 0 ); ?> diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 3dd290e59e..8b2e6eb819 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -5092,37 +5092,13 @@ function reporting_sql($report, $content) } if ($content['treport_custom_sql_id'] != 0) { - switch ($config['dbtype']) { - case 'mysql': - $sql = io_safe_output( - db_get_value_filter( - '`sql`', - 'treport_custom_sql', - ['id' => $content['treport_custom_sql_id']] - ) - ); - break; - - case 'postgresql': - $sql = io_safe_output( - db_get_value_filter( - '"sql"', - 'treport_custom_sql', - ['id' => $content['treport_custom_sql_id']] - ) - ); - break; - - case 'oracle': - $sql = io_safe_output( - db_get_value_filter( - 'sql', - 'treport_custom_sql', - ['id' => $content['treport_custom_sql_id']] - ) - ); - break; - } + $sql = io_safe_output( + db_get_value_filter( + '`sql`', + 'treport_custom_sql', + ['id' => $content['treport_custom_sql_id']] + ) + ); } else { $sql = io_safe_output($content['external_source']); } @@ -5152,10 +5128,6 @@ function reporting_sql($report, $content) $historical_db = $content['historical_db']; } - if (is_metaconsole()) { - metaconsole_restore_db(); - } - $result = db_get_all_rows_sql($sql, $historical_db); if ($result !== false) { foreach ($result as $row) { From 4631d9ea644d8899a310ca883b604d12d8421e31 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 16 Dec 2019 16:48:29 +0100 Subject: [PATCH 18/19] minor style fix --- pandora_console/extensions/quick_shell.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/extensions/quick_shell.php b/pandora_console/extensions/quick_shell.php index 8228c9f59d..6b70ae21e8 100644 --- a/pandora_console/extensions/quick_shell.php +++ b/pandora_console/extensions/quick_shell.php @@ -398,7 +398,8 @@ function quickShellSettings() $t->width = '100%'; $t->class = 'databox filters'; $t->data = []; - $t->style[0] = 'font-weight: bold'; + $t->style = []; + $t->style[0] = 'font-weight: bold; width: 40%;'; $t->data[0][0] = __('Gotty path'); $t->data[0][1] = html_print_input_text( @@ -445,7 +446,7 @@ function quickShellSettings() $hidden->width = '100%'; $hidden->class = 'databox filters'; $hidden->data = []; - $hidden->style[0] = 'font-weight: bold'; + $hidden->style[0] = 'font-weight: bold;width: 40%;'; $hidden->data[0][0] = __('Gotty user').ui_print_help_tip( __('Optional, set a user to access gotty service'), From 0b0c38f9c0ab9a1cb7079a9b2c78d8d7be285019 Mon Sep 17 00:00:00 2001 From: artica Date: Tue, 17 Dec 2019 00:01:10 +0100 Subject: [PATCH 19/19] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 4 ++-- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 26 insertions(+), 26 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 9b2e9bf9d1..d0a9b4fc46 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.742 +Version: 7.0NG.742-191217 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 82745deed0..bbd81c6f51 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.742" +pandora_version="7.0NG.742-191217" 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 044c66f77f..59ab0b9530 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -55,7 +55,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.742'; -use constant AGENT_BUILD => '191216'; +use constant AGENT_BUILD => '191217'; # 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 07e664663b..10e99ce4dc 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 7.0NG.742 -%define release 1 +%define release 191217 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 8327d8401a..4bf932d9cd 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 7.0NG.742 -%define release 1 +%define release 191217 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 66ec9cce29..7c1a0f802b 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.742" -PI_BUILD="191216" +PI_BUILD="191217" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index fd13c838a3..774fa3d46e 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{191216} +{191217} ViewReadme {Yes} @@ -2387,7 +2387,7 @@ Windows,BuildSeparateArchives {No} Windows,Executable -{<%AppName%>-Setup<%Ext%>} +{<%AppName%>-<%Version%>-Setup<%Ext%>} Windows,FileDescription {<%AppName%> <%Version%> Setup} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index e02765f1a2..e4b720807c 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.742(Build 191216)") +#define PANDORA_VERSION ("7.0NG.742(Build 191217)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 27f352a4e7..32e28abb66 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", "(7.0NG.742(Build 191216))" + VALUE "ProductVersion", "(7.0NG.742(Build 191217))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 6ad2a6df2b..0c893684f3 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.742 +Version: 7.0NG.742-191217 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 7d8b4cc557..57885c0b67 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.742" +pandora_version="7.0NG.742-191217" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index fae97667d2..b1359e74d8 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC191216'; +$build_version = 'PC191217'; $pandora_version = 'v7.0NG.742'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index fb95696ce2..837221b102 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -129,7 +129,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index b1fb46aaa2..ac0ee07142 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 7.0NG.742 -%define release 1 +%define release 191217 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 7eaeb1c07f..a810430fca 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.742 -%define release 1 +%define release 191217 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index f8d92675ba..506f15bbb4 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.742" -PI_BUILD="191216" +PI_BUILD="191217" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 5d2fe5d1f2..6b98359173 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -34,7 +34,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.742 PS191216"; +my $version = "7.0NG.742 PS191217"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 2405c46140..9b3a3b3367 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.742 PS191216"; +my $version = "7.0NG.742 PS191217"; # save program name for logging my $progname = basename($0);